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 16cc_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 header_libs: ["jni_headers"], 33 34 shared_libs: [ 35 "libEGL", 36 "libGLESv2", 37 "libandroid", 38 "liblog", 39 ], 40 41 sdk_version: "current", 42 stl: "c++_static", 43} 44 45cc_library_host_static { 46 name: "libctsopengl_test", 47 48 srcs: ["graphics/Matrix.cpp"], 49 export_include_dirs: ["graphics"], 50 cflags: [ 51 "-Wall", 52 "-Werror", 53 ], 54 55 target: { 56 darwin: { 57 enabled: false, 58 }, 59 }, 60} 61