blob: 10d42e41f6756a7770c0fb09fa0eaf35eb6e7085 [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"],
Dan Willemsen45f05242016-07-12 22:10:56 -070024
25 host_supported: true,
26 srcs: ["native_bridge.cc"],
Martin Stjernholm53aec482018-10-22 01:34:56 +010027 header_libs: [
28 "libbase_headers",
29 ],
Elliott Hughesdc699a22018-02-16 17:58:14 -080030 shared_libs: [
31 "liblog",
Elliott Hughesdc699a22018-02-16 17:58:14 -080032 ],
Jiyong Park00f2ebe2019-01-29 00:08:55 +090033 // TODO(jiyong): remove this line after aosp/885921 lands
34 export_include_dirs: ["include"],
Dan Willemsen45f05242016-07-12 22:10:56 -070035
dimitry8c934c72019-01-15 17:38:39 +010036 target: {
37 android: {
38 version_script: "libnativebridge.map.txt",
39 },
40 linux: {
41 version_script: "libnativebridge.map.txt",
42 },
43 },
44
Nicolas Geoffrayd9b4d9b2019-01-10 16:27:54 +000045 stubs: {
46 symbol_file: "libnativebridge.map.txt",
47 versions: ["1"],
48 },
Jiyong Park00f2ebe2019-01-29 00:08:55 +090049}
Nicolas Geoffrayd9b4d9b2019-01-10 16:27:54 +000050
Jiyong Park00f2ebe2019-01-29 00:08:55 +090051// TODO(b/124250621): eliminate the need for this library
52cc_library {
53 name: "libnativebridge_lazy",
54 defaults: ["libnativebridge-defaults"],
Steven Morelandb2b88e32017-06-30 12:46:57 -070055
Jiyong Park00f2ebe2019-01-29 00:08:55 +090056 host_supported: false,
57 srcs: ["native_bridge_lazy.cc"],
58 required: ["libnativebridge"],
Dan Willemsen45f05242016-07-12 22:10:56 -070059}
Tomasz Wasilczyke38d3a62017-05-08 15:29:10 -070060
Steven Morelandb2b88e32017-06-30 12:46:57 -070061subdirs = ["tests"]