1// Copyright (C) 2015 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 16package { 17 default_team: "trendy_team_camera_framework", 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_library_shared { 22 name: "libctscamera2_jni", 23 srcs: [ 24 "native-camera-jni.cpp", 25 "dng-validate-jni.cpp", 26 "dynamic-depth-validate-jni.cpp", 27 ], 28 // Flags needed by DNG SDK 29 cflags: [ 30 "-DUNIX_ENV=1", 31 "-DqDNGBigEndian=0", 32 "-DqDNGThreadSafe=1", 33 "-DqDNGUseLibJPEG=1", 34 "-DqDNGUseXMP=0", 35 "-DqDNGValidate=1", 36 "-DqDNGValidateTarget=1", 37 "-DqAndroid=1", 38 "-fexceptions", 39 "-Wsign-compare", 40 "-Wno-reorder", 41 "-Wframe-larger-than=20000", 42 // Flags to avoid warnings from DNG SDK 43 "-Wno-unused-parameter", 44 "-Wno-unused-value", 45 "-Wno-unused-variable", 46 // Flags related to dynamic depth 47 "-Wno-ignored-qualifiers", 48 "-DSTATIC_LIBXML=1", 49 ], 50 header_libs: [ 51 "jni_headers", 52 "liblog_headers", 53 ], 54 static_libs: [ 55 "libdng_sdk_validate", 56 "libjpeg_static_ndk", 57 "libdynamic_depth_ndk", 58 "libimage_io_ndk", 59 "libbase_ndk", 60 "libxml2_ndk", 61 ], 62 // Dynamic depth libraries 63 shared_libs: [ 64 "libandroid", 65 "libnativehelper_compat_libc++", 66 "liblog", 67 "libcamera2ndk", 68 "libmediandk", 69 "libz", 70 ], 71 // NDK build, shared C++ runtime 72 sdk_version: "current", 73 stl: "c++_shared", 74} 75