blob: c97845d16a18ad2f494c9efe0390b222568478ec [file] [log] [blame]
Jiyong Park00f2ebe2019-01-29 00:08:55 +09001cc_defaults {
2 name: "libnativebridge-defaults",
3 cflags: [
4 "-Werror",
5 "-Wall",
6 ],
7 cppflags: [
8 "-fvisibility=protected",
9 ],
10 header_libs: ["libnativebridge-headers"],
11 export_header_lib_headers: ["libnativebridge-headers"],
12}
13
Steven Morelandb2b88e32017-06-30 12:46:57 -070014cc_library_headers {
Jiyong Park00f2ebe2019-01-29 00:08:55 +090015 name: "libnativebridge-headers",
Steven Morelandb2b88e32017-06-30 12:46:57 -070016
17 host_supported: true,
Elliott Hughesdc699a22018-02-16 17:58:14 -080018 export_include_dirs: ["include"],
Steven Morelandb2b88e32017-06-30 12:46:57 -070019}
20
Dan Willemsen45f05242016-07-12 22:10:56 -070021cc_library {
22 name: "libnativebridge",
Jiyong Park00f2ebe2019-01-29 00:08:55 +090023 defaults: ["libnativebridge-defaults"],
Orion Hodsona65f3142019-10-08 16:42:58 +010024 // TODO(oth): remove after moving under art/ (b/137364733)
25 visibility: ["//visibility:public"],
Dan Willemsen45f05242016-07-12 22:10:56 -070026
27 host_supported: true,
28 srcs: ["native_bridge.cc"],
Martin Stjernholm53aec482018-10-22 01:34:56 +010029 header_libs: [
30 "libbase_headers",
31 ],
Elliott Hughesdc699a22018-02-16 17:58:14 -080032 shared_libs: [
33 "liblog",
Elliott Hughesdc699a22018-02-16 17:58:14 -080034 ],
Jiyong Park00f2ebe2019-01-29 00:08:55 +090035 // TODO(jiyong): remove this line after aosp/885921 lands
36 export_include_dirs: ["include"],
Dan Willemsen45f05242016-07-12 22:10:56 -070037
dimitry8c934c72019-01-15 17:38:39 +010038 target: {
39 android: {
40 version_script: "libnativebridge.map.txt",
41 },
42 linux: {
43 version_script: "libnativebridge.map.txt",
44 },
45 },
46
Nicolas Geoffrayd9b4d9b2019-01-10 16:27:54 +000047 stubs: {
48 symbol_file: "libnativebridge.map.txt",
49 versions: ["1"],
50 },
Jiyong Park00f2ebe2019-01-29 00:08:55 +090051}
Nicolas Geoffrayd9b4d9b2019-01-10 16:27:54 +000052
Jiyong Park00f2ebe2019-01-29 00:08:55 +090053// TODO(b/124250621): eliminate the need for this library
54cc_library {
55 name: "libnativebridge_lazy",
56 defaults: ["libnativebridge-defaults"],
Orion Hodsona65f3142019-10-08 16:42:58 +010057 // TODO(oth): remove after moving under art/ (b/137364733)
58 visibility: ["//visibility:public"],
Steven Morelandb2b88e32017-06-30 12:46:57 -070059
Jiyong Park00f2ebe2019-01-29 00:08:55 +090060 host_supported: false,
61 srcs: ["native_bridge_lazy.cc"],
62 required: ["libnativebridge"],
Dan Willemsen45f05242016-07-12 22:10:56 -070063}
Tomasz Wasilczyke38d3a62017-05-08 15:29:10 -070064
Steven Morelandb2b88e32017-06-30 12:46:57 -070065subdirs = ["tests"]