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