Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "libnativebridge-defaults", |
Martin Stjernholm | 3bb009a | 2019-10-17 21:29:01 +0100 | [diff] [blame] | 3 | defaults: ["art_defaults"], |
Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 4 | cppflags: [ |
| 5 | "-fvisibility=protected", |
| 6 | ], |
| 7 | header_libs: ["libnativebridge-headers"], |
| 8 | export_header_lib_headers: ["libnativebridge-headers"], |
| 9 | } |
| 10 | |
| 11 | cc_library_headers { |
| 12 | name: "libnativebridge-headers", |
| 13 | |
| 14 | host_supported: true, |
| 15 | export_include_dirs: ["include"], |
| 16 | } |
| 17 | |
| 18 | cc_library { |
| 19 | name: "libnativebridge", |
| 20 | defaults: ["libnativebridge-defaults"], |
Orion Hodson | c78860b | 2019-10-11 11:30:01 +0100 | [diff] [blame] | 21 | visibility: [ |
Orion Hodson | c78860b | 2019-10-11 11:30:01 +0100 | [diff] [blame] | 22 | "//frameworks/base/cmds/app_process", |
Martin Stjernholm | 3bb009a | 2019-10-17 21:29:01 +0100 | [diff] [blame] | 23 | // TODO(b/133140750): Clean this up. |
Orion Hodson | c78860b | 2019-10-11 11:30:01 +0100 | [diff] [blame] | 24 | "//frameworks/base/native/webview/loader/libwebviewchromium_loader", |
| 25 | ], |
Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 26 | |
| 27 | host_supported: true, |
| 28 | srcs: ["native_bridge.cc"], |
| 29 | header_libs: [ |
| 30 | "libbase_headers", |
| 31 | ], |
| 32 | shared_libs: [ |
| 33 | "liblog", |
| 34 | ], |
| 35 | // TODO(jiyong): remove this line after aosp/885921 lands |
| 36 | export_include_dirs: ["include"], |
| 37 | |
| 38 | target: { |
| 39 | android: { |
| 40 | version_script: "libnativebridge.map.txt", |
| 41 | }, |
| 42 | linux: { |
| 43 | version_script: "libnativebridge.map.txt", |
| 44 | }, |
| 45 | }, |
| 46 | |
| 47 | stubs: { |
| 48 | symbol_file: "libnativebridge.map.txt", |
| 49 | versions: ["1"], |
| 50 | }, |
| 51 | } |
| 52 | |
| 53 | // TODO(b/124250621): eliminate the need for this library |
| 54 | cc_library { |
| 55 | name: "libnativebridge_lazy", |
| 56 | defaults: ["libnativebridge-defaults"], |
Orion Hodson | c78860b | 2019-10-11 11:30:01 +0100 | [diff] [blame] | 57 | visibility: [ |
| 58 | "//art/libnativebridge/tests", |
| 59 | "//frameworks/base/core/jni", |
| 60 | "//frameworks/native/opengl/libs", |
| 61 | "//frameworks/native/vulkan/libvulkan", |
| 62 | ], |
Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 63 | |
| 64 | host_supported: false, |
| 65 | srcs: ["native_bridge_lazy.cc"], |
| 66 | required: ["libnativebridge"], |
| 67 | } |
| 68 | |
| 69 | subdirs = ["tests"] |