Bob Badour | 3c53823 | 2021-02-12 21:26:48 -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 "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
| 8 | } |
| 9 | |
Devin Moore | c032c37 | 2023-05-24 22:05:47 +0000 | [diff] [blame] | 10 | cc_defaults { |
| 11 | name: "libvkjson_deps", |
| 12 | shared_libs: [ |
| 13 | "libjsoncpp", |
| 14 | "libvulkan", |
| 15 | ], |
| 16 | } |
| 17 | |
| 18 | cc_library_static { |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 19 | name: "libvkjson", |
Devin Moore | c032c37 | 2023-05-24 22:05:47 +0000 | [diff] [blame] | 20 | defaults: [ |
| 21 | "libvkjson_deps", |
| 22 | ], |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 23 | srcs: [ |
| 24 | "vkjson.cc", |
| 25 | "vkjson_instance.cc", |
| 26 | ], |
| 27 | cflags: [ |
| 28 | "-Wall", |
| 29 | "-Werror", |
Yiwei Zhang | 59b492c | 2018-10-11 16:26:51 -0700 | [diff] [blame] | 30 | "-Wimplicit-fallthrough", |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 31 | ], |
| 32 | cppflags: [ |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 33 | "-Wno-sign-compare", |
| 34 | ], |
| 35 | export_include_dirs: [ |
| 36 | ".", |
| 37 | ], |
Yiwei Zhang | 5de3ce6 | 2019-11-26 11:06:18 -0800 | [diff] [blame] | 38 | export_shared_lib_headers: [ |
| 39 | "libvulkan", |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 40 | ], |
| 41 | } |
| 42 | |
| 43 | cc_library_static { |
| 44 | name: "libvkjson_ndk", |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 45 | srcs: [ |
| 46 | "vkjson.cc", |
| 47 | "vkjson_instance.cc", |
| 48 | ], |
| 49 | cflags: [ |
| 50 | "-Wall", |
| 51 | "-Werror", |
Yiwei Zhang | 59b492c | 2018-10-11 16:26:51 -0700 | [diff] [blame] | 52 | "-Wimplicit-fallthrough", |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 53 | ], |
| 54 | cppflags: [ |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 55 | "-Wno-sign-compare", |
| 56 | ], |
| 57 | export_include_dirs: [ |
| 58 | ".", |
| 59 | ], |
| 60 | whole_static_libs: [ |
Yiwei Zhang | ef64b2a | 2018-04-05 13:44:03 -0700 | [diff] [blame] | 61 | "libjsoncpp_ndk", |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 62 | ], |
| 63 | header_libs: [ |
Jesse Hall | a33b3a5 | 2019-04-12 15:39:16 -0700 | [diff] [blame] | 64 | "vulkan_headers", |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 65 | ], |
| 66 | sdk_version: "24", |
| 67 | stl: "libc++_static", |
| 68 | } |