1package {
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
10cc_defaults {
11    name: "libvkjson_deps",
12    shared_libs: [
13        "libjsoncpp",
14        "libvulkan",
15    ],
16}
17
18cc_library_static {
19    name: "libvkjson",
20    defaults: [
21        "libvkjson_deps",
22    ],
23    srcs: [
24        "vkjson.cc",
25        "vkjson_instance.cc",
26    ],
27    cflags: [
28        "-Wall",
29        "-Werror",
30        "-Wimplicit-fallthrough",
31    ],
32    cppflags: [
33        "-Wno-sign-compare",
34    ],
35    export_include_dirs: [
36        ".",
37    ],
38    export_shared_lib_headers: [
39        "libvulkan",
40    ],
41}
42
43cc_library_static {
44    name: "libvkjson_ndk",
45    srcs: [
46        "vkjson.cc",
47        "vkjson_instance.cc",
48    ],
49    cflags: [
50        "-Wall",
51        "-Werror",
52        "-Wimplicit-fallthrough",
53    ],
54    cppflags: [
55        "-Wno-sign-compare",
56    ],
57    export_include_dirs: [
58        ".",
59    ],
60    whole_static_libs: [
61        "libjsoncpp_ndk",
62    ],
63    header_libs: [
64        "vulkan_headers",
65    ],
66    sdk_version: "24",
67    stl: "libc++_static",
68}
69