Jiyong Park | 00f2ebe | 2019-01-29 00:08:55 +0900 | [diff] [blame] | 1 | cc_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 Moreland | b2b88e3 | 2017-06-30 12:46:57 -0700 | [diff] [blame] | 14 | cc_library_headers { |
Jiyong Park | 00f2ebe | 2019-01-29 00:08:55 +0900 | [diff] [blame] | 15 | name: "libnativebridge-headers", |
Steven Moreland | b2b88e3 | 2017-06-30 12:46:57 -0700 | [diff] [blame] | 16 | |
| 17 | host_supported: true, |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 18 | export_include_dirs: ["include"], |
Steven Moreland | b2b88e3 | 2017-06-30 12:46:57 -0700 | [diff] [blame] | 19 | } |
| 20 | |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 21 | cc_library { |
| 22 | name: "libnativebridge", |
Jiyong Park | 00f2ebe | 2019-01-29 00:08:55 +0900 | [diff] [blame] | 23 | defaults: ["libnativebridge-defaults"], |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 24 | |
| 25 | host_supported: true, |
| 26 | srcs: ["native_bridge.cc"], |
Martin Stjernholm | 53aec48 | 2018-10-22 01:34:56 +0100 | [diff] [blame] | 27 | header_libs: [ |
| 28 | "libbase_headers", |
| 29 | ], |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 30 | shared_libs: [ |
| 31 | "liblog", |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 32 | ], |
Jiyong Park | 00f2ebe | 2019-01-29 00:08:55 +0900 | [diff] [blame] | 33 | // TODO(jiyong): remove this line after aosp/885921 lands |
| 34 | export_include_dirs: ["include"], |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 35 | |
dimitry | 8c934c7 | 2019-01-15 17:38:39 +0100 | [diff] [blame] | 36 | target: { |
| 37 | android: { |
| 38 | version_script: "libnativebridge.map.txt", |
| 39 | }, |
| 40 | linux: { |
| 41 | version_script: "libnativebridge.map.txt", |
| 42 | }, |
| 43 | }, |
| 44 | |
Nicolas Geoffray | d9b4d9b | 2019-01-10 16:27:54 +0000 | [diff] [blame] | 45 | stubs: { |
| 46 | symbol_file: "libnativebridge.map.txt", |
| 47 | versions: ["1"], |
| 48 | }, |
Jiyong Park | 00f2ebe | 2019-01-29 00:08:55 +0900 | [diff] [blame] | 49 | } |
Nicolas Geoffray | d9b4d9b | 2019-01-10 16:27:54 +0000 | [diff] [blame] | 50 | |
Jiyong Park | 00f2ebe | 2019-01-29 00:08:55 +0900 | [diff] [blame] | 51 | // TODO(b/124250621): eliminate the need for this library |
| 52 | cc_library { |
| 53 | name: "libnativebridge_lazy", |
| 54 | defaults: ["libnativebridge-defaults"], |
Steven Moreland | b2b88e3 | 2017-06-30 12:46:57 -0700 | [diff] [blame] | 55 | |
Jiyong Park | 00f2ebe | 2019-01-29 00:08:55 +0900 | [diff] [blame] | 56 | host_supported: false, |
| 57 | srcs: ["native_bridge_lazy.cc"], |
| 58 | required: ["libnativebridge"], |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 59 | } |
Tomasz Wasilczyk | e38d3a6 | 2017-05-08 15:29:10 -0700 | [diff] [blame] | 60 | |
Steven Moreland | b2b88e3 | 2017-06-30 12:46:57 -0700 | [diff] [blame] | 61 | subdirs = ["tests"] |