1// Copyright 2018 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 15package { 16 default_team: "trendy_team_camera_framework", 17 // See: http://go/android-license-faq 18 // A large-scale-change added 'default_applicable_licenses' to import 19 // all of the 'license_kinds' from "frameworks_av_camera_license" 20 // to get the below license kinds: 21 // SPDX-license-identifier-Apache-2.0 22 default_applicable_licenses: ["frameworks_av_camera_license"], 23} 24 25cc_binary { 26 name: "cameraserver", 27 28 srcs: ["main_cameraserver.cpp"], 29 30 defaults: [ 31 "libcameraservice_deps", 32 ], 33 34 header_libs: [ 35 "libmedia_headers", 36 ], 37 38 shared_libs: [ 39 "liblog", 40 "libutils", 41 "libui", 42 "libgui", 43 "libbinder", 44 "libbinder_ndk", 45 "libhidlbase", 46 "android.hardware.camera.common@1.0", 47 "android.hardware.camera.device@1.0", 48 "android.hardware.camera.device@3.2", 49 "android.hardware.camera.device@3.4", 50 ], 51 static_libs: [ 52 "libcameraservice", 53 ], 54 compile_multilib: "first", 55 cflags: [ 56 "-Wall", 57 "-Wextra", 58 "-Werror", 59 "-Wno-unused-parameter", 60 ], 61 62 init_rc: ["cameraserver.rc"], 63 64 vintf_fragments: [ 65 "manifest_android.frameworks.cameraservice.service.xml", 66 ], 67} 68