blob: f2db117b504ab800219f5c8aeb8036458001898f [file] [log] [blame]
Orion Hodson9b16e342019-10-09 13:29:16 +01001cc_defaults {
2 name: "libnativebridge-defaults",
Martin Stjernholm3bb009a2019-10-17 21:29:01 +01003 defaults: ["art_defaults"],
Orion Hodson9b16e342019-10-09 13:29:16 +01004 cppflags: [
5 "-fvisibility=protected",
6 ],
7 header_libs: ["libnativebridge-headers"],
8 export_header_lib_headers: ["libnativebridge-headers"],
9}
10
11cc_library_headers {
12 name: "libnativebridge-headers",
13
14 host_supported: true,
15 export_include_dirs: ["include"],
16}
17
18cc_library {
19 name: "libnativebridge",
20 defaults: ["libnativebridge-defaults"],
Orion Hodsonc78860b2019-10-11 11:30:01 +010021 visibility: [
Orion Hodsonc78860b2019-10-11 11:30:01 +010022 "//frameworks/base/cmds/app_process",
Martin Stjernholm3bb009a2019-10-17 21:29:01 +010023 // TODO(b/133140750): Clean this up.
Orion Hodsonc78860b2019-10-11 11:30:01 +010024 "//frameworks/base/native/webview/loader/libwebviewchromium_loader",
25 ],
Orion Hodson9b16e342019-10-09 13:29:16 +010026
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
54cc_library {
55 name: "libnativebridge_lazy",
56 defaults: ["libnativebridge-defaults"],
Orion Hodsonc78860b2019-10-11 11:30:01 +010057 visibility: [
58 "//art/libnativebridge/tests",
59 "//frameworks/base/core/jni",
60 "//frameworks/native/opengl/libs",
61 "//frameworks/native/vulkan/libvulkan",
62 ],
Orion Hodson9b16e342019-10-09 13:29:16 +010063
64 host_supported: false,
65 srcs: ["native_bridge_lazy.cc"],
66 required: ["libnativebridge"],
67}
68
69subdirs = ["tests"]