Alex Light | 1cad527 | 2017-09-27 16:36:13 -0700 | [diff] [blame] | 1 | java_binary_host { |
| 2 | name: "jdwpgen", |
| 3 | srcs: ["make/src/classes/build/tools/jdwpgen/*.java"], |
| 4 | wrapper: "etc/jdwpgen.sh", |
| 5 | manifest: "etc/manifest.txt", |
| 6 | java_version: "1.8", |
| 7 | // This shouldn't be needed: b/68397812 |
| 8 | compile_multilib: "first", |
| 9 | } |
| 10 | |
| 11 | genrule { |
| 12 | name: "jdwp_generated_headers", |
| 13 | tools: ["jdwpgen"], |
Alex Light | 9ffbc91 | 2017-10-31 11:10:13 -0700 | [diff] [blame] | 14 | cmd: "$(location jdwpgen) $(in) -include $(out)", |
Alex Light | 1cad527 | 2017-09-27 16:36:13 -0700 | [diff] [blame] | 15 | srcs: ["make/data/jdwp/jdwp.spec"], |
| 16 | out: ["JDWPCommands.h"], |
| 17 | } |
| 18 | |
| 19 | cc_defaults { |
| 20 | name: "upstream-jdwp-defaults", |
| 21 | host_supported: true, |
| 22 | device_supported: true, |
| 23 | cflags: [ |
| 24 | // Every supported android platform is little-endian. |
| 25 | "-D_LITTLE_ENDIAN", |
| 26 | "-Wall", |
| 27 | "-Werror", |
| 28 | "-Wno-unused-parameter", |
| 29 | ], |
| 30 | notice: "LICENSE", |
Alex Light | 19ae8d9 | 2017-11-03 21:46:30 +0000 | [diff] [blame] | 31 | target: { |
| 32 | darwin: { |
| 33 | enabled: false, |
| 34 | }, |
| 35 | }, |
Alex Light | 1cad527 | 2017-09-27 16:36:13 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | cc_library_headers { |
| 39 | name: "javavm_headers", |
| 40 | export_include_dirs: [ |
| 41 | "src/share/javavm/export", |
Alex Light | 19ae8d9 | 2017-11-03 21:46:30 +0000 | [diff] [blame] | 42 | "src/solaris/javavm/export", |
Alex Light | 1cad527 | 2017-09-27 16:36:13 -0700 | [diff] [blame] | 43 | ], |
| 44 | host_supported: true, |
| 45 | device_supported: true, |
Alex Light | 1cad527 | 2017-09-27 16:36:13 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | cc_library_headers { |
| 49 | name: "libnpt_headers", |
| 50 | export_include_dirs: [ |
| 51 | "src/share/npt", |
| 52 | "src/solaris/npt", |
| 53 | ], |
| 54 | defaults: ["upstream-jdwp-defaults"], |
| 55 | } |
| 56 | |
| 57 | cc_library { |
| 58 | name: "libnpt", |
| 59 | srcs: [ |
| 60 | "src/share/npt/*.c", |
| 61 | "src/solaris/npt/*.c", |
| 62 | ], |
| 63 | header_libs: [ |
| 64 | "javavm_headers", |
| 65 | "libnpt_headers", |
| 66 | ], |
| 67 | defaults: ["upstream-jdwp-defaults"], |
| 68 | } |
| 69 | |
| 70 | cc_library_headers { |
| 71 | name: "libjdwp_headers", |
| 72 | export_include_dirs: [ |
| 73 | "src/share/back", |
| 74 | "src/share/back/export", |
| 75 | "src/solaris/back", |
| 76 | ], |
| 77 | generated_headers: ["jdwp_generated_headers"], |
| 78 | export_generated_headers: ["jdwp_generated_headers"], |
| 79 | defaults: ["upstream-jdwp-defaults"], |
| 80 | } |
| 81 | |
| 82 | cc_library { |
| 83 | name: "libjdwp", |
| 84 | srcs: [ |
| 85 | "src/share/back/*.c", |
| 86 | "src/solaris/back/*.c", |
| 87 | ], |
| 88 | cflags: [ |
| 89 | "-DLINUX", |
| 90 | "-DJDWP_LOGGING", |
| 91 | "-Wno-switch", |
| 92 | "-Wno-logical-op-parentheses", |
| 93 | "-Wno-logical-not-parentheses", |
| 94 | "-Wno-sometimes-uninitialized", |
| 95 | "-Wno-self-assign", |
| 96 | "-Wno-unused-variable", |
| 97 | "-Wno-unused-function", |
| 98 | ], |
| 99 | header_libs: [ |
| 100 | "javavm_headers", |
| 101 | "libjdwp_headers", |
| 102 | "libnpt_headers", |
| 103 | ], |
| 104 | required: [ |
| 105 | "libnpt", |
| 106 | "libdt_socket", |
| 107 | ], |
| 108 | defaults: ["upstream-jdwp-defaults"], |
| 109 | } |
| 110 | |
| 111 | cc_library { |
| 112 | name: "libdt_socket", |
| 113 | srcs: [ |
| 114 | "src/share/transport/socket/*.c", |
| 115 | "src/solaris/transport/socket/*.c", |
| 116 | ], |
| 117 | local_include_dirs: [ |
| 118 | "src/share/transport/socket", |
| 119 | "src/solaris/transport/socket", |
| 120 | ], |
| 121 | header_libs: [ |
| 122 | "javavm_headers", |
| 123 | "libjdwp_headers", |
| 124 | "libnpt_headers", |
| 125 | ], |
| 126 | required: ["libnpt"], |
| 127 | defaults: ["upstream-jdwp-defaults"], |
| 128 | } |