1 // Copyright (C) 2013 The Android Open Source Project 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 // 15 16 cc_library_shared { 17 name: "libctsopengl_jni", 18 19 cflags: [ 20 // Needed in order to use fences for synchronization 21 "-DEGL_EGLEXT_PROTOTYPES", 22 "-funsigned-char", 23 24 "-Wall", 25 "-Werror", 26 "-Wno-unused-parameter", 27 ], 28 29 // Get all cpp files but not hidden files 30 srcs: ["**/*.cpp"], 31 32 shared_libs: [ 33 "libEGL", 34 "libGLESv2", 35 "libandroid", 36 "liblog", 37 ], 38 39 sdk_version: "current", 40 stl: "c++_static", 41 } 42 43 cc_library_host_static { 44 name: "libctsopengl_test", 45 46 srcs: ["graphics/Matrix.cpp"], 47 export_include_dirs: ["graphics"], 48 cflags: [ 49 "-Wall", 50 "-Werror", 51 ], 52 53 target: { 54 darwin: { 55 enabled: false, 56 }, 57 }, 58 } 59