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 "hardware_libhardware_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_libhardware_license"],
8}
9
10cc_library_static {
11    name: "libcnativewindow",
12    srcs: [
13        "cnativewindow.c",
14        "util.c",
15    ],
16    cflags: [
17        "-Wall",
18        "-Werror",
19        "-Wno-unused-parameter",
20    ],
21    shared_libs: [
22        "libEGL",
23        "libGLESv2",
24        "libdl",
25        "libhardware",
26        "libnativewindow",
27    ],
28}
29
30cc_binary {
31    name: "hwc-test-arrows",
32    srcs: ["test-arrows.c"],
33    static_libs: ["libcnativewindow"],
34    shared_libs: [
35        "libEGL",
36        "libGLESv2",
37        "libdl",
38        "libhardware",
39        "libnativewindow",
40    ],
41    cflags: [
42        "-DGL_GLEXT_PROTOTYPES",
43        "-Wall",
44        "-Werror",
45    ],
46}
47