blob: de4271d47d12f00c52b2eb292e8639935aeeaa2c [file] [log] [blame]
Bob Badour3c538232021-02-12 21:26:48 -08001package {
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 Moorec032c372023-05-24 22:05:47 +000010cc_defaults {
11 name: "libvkjson_deps",
12 shared_libs: [
13 "libjsoncpp",
14 "libvulkan",
15 ],
16}
17
18cc_library_static {
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070019 name: "libvkjson",
Devin Moorec032c372023-05-24 22:05:47 +000020 defaults: [
21 "libvkjson_deps",
22 ],
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070023 srcs: [
24 "vkjson.cc",
25 "vkjson_instance.cc",
26 ],
27 cflags: [
28 "-Wall",
29 "-Werror",
Yiwei Zhang59b492c2018-10-11 16:26:51 -070030 "-Wimplicit-fallthrough",
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070031 ],
32 cppflags: [
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070033 "-Wno-sign-compare",
34 ],
35 export_include_dirs: [
36 ".",
37 ],
Yiwei Zhang5de3ce62019-11-26 11:06:18 -080038 export_shared_lib_headers: [
39 "libvulkan",
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070040 ],
41}
42
43cc_library_static {
44 name: "libvkjson_ndk",
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070045 srcs: [
46 "vkjson.cc",
47 "vkjson_instance.cc",
48 ],
49 cflags: [
50 "-Wall",
51 "-Werror",
Yiwei Zhang59b492c2018-10-11 16:26:51 -070052 "-Wimplicit-fallthrough",
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070053 ],
54 cppflags: [
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070055 "-Wno-sign-compare",
56 ],
57 export_include_dirs: [
58 ".",
59 ],
60 whole_static_libs: [
Yiwei Zhangef64b2a2018-04-05 13:44:03 -070061 "libjsoncpp_ndk",
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070062 ],
63 header_libs: [
Jesse Halla33b3a52019-04-12 15:39:16 -070064 "vulkan_headers",
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070065 ],
66 sdk_version: "24",
67 stl: "libc++_static",
68}