| Bob Badour | 9150de6 | 2021-02-26 03:22:24 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "art_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["art_license"], |
| Martin Stjernholm | 3939bde | 2024-04-18 15:24:48 +0100 | [diff] [blame] | 8 | default_team: "trendy_team_art_mainline", |
| Bob Badour | 9150de6 | 2021-02-26 03:22:24 -0800 | [diff] [blame] | 9 | } |
| 10 | |
| Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 11 | cc_defaults { |
| 12 | name: "libnativebridge-defaults", |
| Martin Stjernholm | 3bb009a | 2019-10-17 21:29:01 +0100 | [diff] [blame] | 13 | defaults: ["art_defaults"], |
| Orion Hodson | 00cb81d | 2020-04-03 06:47:07 +0100 | [diff] [blame] | 14 | header_libs: [ |
| 15 | "jni_headers", |
| 16 | "libnativebridge-headers", |
| 17 | ], |
| 18 | export_header_lib_headers: [ |
| 19 | "jni_headers", |
| 20 | "libnativebridge-headers", |
| 21 | ], |
| Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | cc_library_headers { |
| 25 | name: "libnativebridge-headers", |
| Martin Stjernholm | e10abe7 | 2021-10-28 03:49:55 +0100 | [diff] [blame] | 26 | defaults: ["art_defaults"], |
| Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 27 | host_supported: true, |
| 28 | export_include_dirs: ["include"], |
| Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 29 | |
| 30 | apex_available: [ |
| 31 | "//apex_available:platform", |
| Martin Stjernholm | 3e9abfc | 2020-10-09 22:17:51 +0100 | [diff] [blame] | 32 | "com.android.art", |
| Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 33 | "com.android.art.debug", |
| Martin Stjernholm | 694f012 | 2020-10-30 02:23:24 +0000 | [diff] [blame] | 34 | "com.android.media", |
| Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 35 | ], |
| Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 36 | } |
| 37 | |
| David Srbecky | 1cf46a3 | 2020-06-22 15:39:00 +0100 | [diff] [blame] | 38 | art_cc_library { |
| Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 39 | name: "libnativebridge", |
| 40 | defaults: ["libnativebridge-defaults"], |
| Orion Hodson | c78860b | 2019-10-11 11:30:01 +0100 | [diff] [blame] | 41 | visibility: [ |
| Orion Hodson | c78860b | 2019-10-11 11:30:01 +0100 | [diff] [blame] | 42 | "//frameworks/base/cmds/app_process", |
| Martin Stjernholm | 3bb009a | 2019-10-17 21:29:01 +0100 | [diff] [blame] | 43 | // TODO(b/133140750): Clean this up. |
| Orion Hodson | c78860b | 2019-10-11 11:30:01 +0100 | [diff] [blame] | 44 | "//frameworks/base/native/webview/loader/libwebviewchromium_loader", |
| 45 | ], |
| Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 46 | apex_available: [ |
| Martin Stjernholm | 3e9abfc | 2020-10-09 22:17:51 +0100 | [diff] [blame] | 47 | "com.android.art", |
| Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 48 | "com.android.art.debug", |
| Cole Faust | e787f3e | 2023-03-13 16:03:39 -0700 | [diff] [blame] | 49 | "test_broken_com.android.art", |
| Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 50 | ], |
| Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 51 | |
| 52 | host_supported: true, |
| 53 | srcs: ["native_bridge.cc"], |
| 54 | header_libs: [ |
| 55 | "libbase_headers", |
| 56 | ], |
| 57 | shared_libs: [ |
| 58 | "liblog", |
| 59 | ], |
| 60 | // TODO(jiyong): remove this line after aosp/885921 lands |
| 61 | export_include_dirs: ["include"], |
| 62 | |
| 63 | target: { |
| 64 | android: { |
| Martin Stjernholm | 2665943 | 2021-04-16 19:55:03 +0100 | [diff] [blame] | 65 | header_libs: [ |
| 66 | "libnativeloader-headers", // For dlext_namespaces.h |
| 67 | ], |
| 68 | shared_libs: ["libdl_android"], |
| Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 69 | }, |
| 70 | }, |
| 71 | |
| 72 | stubs: { |
| 73 | symbol_file: "libnativebridge.map.txt", |
| 74 | versions: ["1"], |
| 75 | }, |
| 76 | } |
| 77 | |
| 78 | // TODO(b/124250621): eliminate the need for this library |
| 79 | cc_library { |
| 80 | name: "libnativebridge_lazy", |
| 81 | defaults: ["libnativebridge-defaults"], |
| Orion Hodson | c78860b | 2019-10-11 11:30:01 +0100 | [diff] [blame] | 82 | visibility: [ |
| 83 | "//art/libnativebridge/tests", |
| 84 | "//frameworks/base/core/jni", |
| 85 | "//frameworks/native/opengl/libs", |
| 86 | "//frameworks/native/vulkan/libvulkan", |
| 87 | ], |
| Martin Stjernholm | b5ed330 | 2020-10-30 02:27:23 +0000 | [diff] [blame] | 88 | apex_available: [ |
| 89 | "//apex_available:platform", |
| Martin Stjernholm | 694f012 | 2020-10-30 02:23:24 +0000 | [diff] [blame] | 90 | "com.android.media", |
| 91 | "com.android.media.swcodec", |
| Martin Stjernholm | b5ed330 | 2020-10-30 02:27:23 +0000 | [diff] [blame] | 92 | ], |
| Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 93 | |
| 94 | host_supported: false, |
| 95 | srcs: ["native_bridge_lazy.cc"], |
| Martin Stjernholm | b5ed330 | 2020-10-30 02:27:23 +0000 | [diff] [blame] | 96 | runtime_libs: ["libnativebridge"], |
| Mitch Phillips | 5472d6f | 2020-07-01 09:43:16 -0700 | [diff] [blame] | 97 | shared_libs: ["liblog"], |
| Orion Hodson | 9b16e34 | 2019-10-09 13:29:16 +0100 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | subdirs = ["tests"] |