blob: 75075f17e00e0bd8fe0dd3ad34dc1b1b7f53f5b8 [file] [log] [blame]
// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Headers module is in frameworks/av/Android.bp because modules are not allowed
// to refer to headers in parent directories and the headers live in
// frameworks/av/include.
ndk_library {
name: "libcamera2ndk",
symbol_file: "libcamera2ndk.map.txt",
first_version: "24",
unversioned_until: "current",
}
ndk_headers {
name: "libcamera2ndk_headers",
from: "include/camera",
to: "camera",
srcs: ["include/camera/**/*.h"],
license: "NOTICE",
}
cc_library_shared {
name: "libcamera2ndk",
srcs: [
"NdkCameraManager.cpp",
"NdkCameraMetadata.cpp",
"NdkCameraDevice.cpp",
"NdkCaptureRequest.cpp",
"NdkCameraCaptureSession.cpp",
"impl/ACameraManager.cpp",
"impl/ACameraMetadata.cpp",
"impl/ACameraDevice.cpp",
"impl/ACameraCaptureSession.cpp",
],
shared_libs: [
"libbinder",
"liblog",
"libgui",
"libutils",
"libandroid_runtime",
"libcamera_client",
"libstagefright_foundation",
"libcutils",
"libcamera_metadata",
"libmediandk",
],
cflags: [
"-fvisibility=hidden",
"-DEXPORT=__attribute__ ((visibility (\"default\")))",
"-Wall",
"-Wextra",
"-Werror",
],
export_include_dirs: ["include"],
product_variables: {
pdk: {
enabled: false,
},
},
version_script: "libcamera2ndk.map.txt",
}