blob: 2854350bd4b5cc866aefaef1778788054d283fc4 [file] [log] [blame]
Alex Light1cad5272017-09-27 16:36:13 -07001java_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
11genrule {
12 name: "jdwp_generated_headers",
13 tools: ["jdwpgen"],
Alex Light9ffbc912017-10-31 11:10:13 -070014 cmd: "$(location jdwpgen) $(in) -include $(out)",
Alex Light1cad5272017-09-27 16:36:13 -070015 srcs: ["make/data/jdwp/jdwp.spec"],
16 out: ["JDWPCommands.h"],
17}
18
19cc_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 Light19ae8d92017-11-03 21:46:30 +000031 target: {
32 darwin: {
33 enabled: false,
34 },
35 },
Alex Light1cad5272017-09-27 16:36:13 -070036}
37
38cc_library_headers {
39 name: "javavm_headers",
40 export_include_dirs: [
41 "src/share/javavm/export",
Alex Light19ae8d92017-11-03 21:46:30 +000042 "src/solaris/javavm/export",
Alex Light1cad5272017-09-27 16:36:13 -070043 ],
44 host_supported: true,
45 device_supported: true,
Alex Light1cad5272017-09-27 16:36:13 -070046}
47
48cc_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
57cc_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
70cc_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
82cc_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
111cc_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}