1//########################################################################
2// OpenGL ES JNI sample
3// This makefile builds both an activity and a shared library.
4//########################################################################
5// Build activity
6
7package {
8    // See: http://go/android-license-faq
9    // A large-scale-change added 'default_applicable_licenses' to import
10    // all of the 'license_kinds' from "frameworks_native_license"
11    // to get the below license kinds:
12    //   SPDX-license-identifier-Apache-2.0
13    default_applicable_licenses: ["frameworks_native_license"],
14}
15
16android_app {
17    name: "GLDual",
18    srcs: ["**/*.java"],
19    sdk_version: "current",
20    jni_libs: ["libgldualjni"],
21}
22
23//########################################################################
24// Build JNI Shared Library
25//########################################################################
26cc_library_shared {
27    name: "libgldualjni",
28    cflags: [
29        "-Werror",
30        "-Wno-error=unused-parameter",
31    ],
32    header_libs: ["jni_headers"],
33    srcs: ["jni/gl_code.cpp"],
34    shared_libs: [
35        "liblog",
36        "libEGL",
37        "libGLESv2",
38    ],
39    sdk_version: "current",
40}
41