Sasha Smundak | 6a6bdad | 2019-01-24 23:20:47 -0800 | [diff] [blame] | 1 | //######################################################################## |
| 2 | // OpenGL ES JNI sample |
| 3 | // This makefile builds both an activity and a shared library. |
| 4 | //######################################################################## |
| 5 | // Build activity |
| 6 | |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 7 | package { |
| 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 | |
Sasha Smundak | 6a6bdad | 2019-01-24 23:20:47 -0800 | [diff] [blame] | 16 | android_app { |
| 17 | name: "GLJNI", |
| 18 | srcs: ["**/*.java"], |
| 19 | sdk_version: "current", |
| 20 | jni_libs: ["libgljni"], |
| 21 | } |
| 22 | |
| 23 | // Build JNI Shared Library |
| 24 | |
| 25 | cc_library_shared { |
| 26 | name: "libgljni", |
| 27 | cflags: [ |
| 28 | "-Werror", |
| 29 | "-Wno-error=unused-parameter", |
| 30 | ], |
Orion Hodson | 7c73c0e | 2020-04-11 21:17:05 +0100 | [diff] [blame] | 31 | header_libs: ["jni_headers"], |
Sasha Smundak | 6a6bdad | 2019-01-24 23:20:47 -0800 | [diff] [blame] | 32 | srcs: ["jni/gl_code.cpp"], |
| 33 | shared_libs: [ |
| 34 | "liblog", |
| 35 | "libEGL", |
| 36 | "libGLESv1_CM", |
| 37 | ], |
| 38 | sdk_version: "current", |
| 39 | arch: { |
| 40 | arm: { |
| 41 | instruction_set: "arm", |
| 42 | }, |
| 43 | }, |
| 44 | } |