xref: /aosp_15_r20/frameworks/av/camera/cameraserver/Android.bp (revision ec779b8e0859a360c3d303172224686826e6e0e1)
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
25vintf_fragment {
26    name: "manifest_android.frameworks.cameraservice.service.xml",
27    src: "manifest_android.frameworks.cameraservice.service.xml",
28}
29
30cc_binary {
31    name: "cameraserver",
32
33    srcs: ["main_cameraserver.cpp"],
34
35    defaults: [
36        "libcameraservice_deps",
37    ],
38
39    header_libs: [
40        "libmedia_headers",
41    ],
42
43    shared_libs: [
44        "liblog",
45        "libutils",
46        "libui",
47        "libgui",
48        "libbinder",
49        "libbinder_ndk",
50        "libhidlbase",
51        "[email protected]",
52        "[email protected]",
53        "[email protected]",
54        "[email protected]",
55    ],
56    static_libs: [
57        "libcameraservice",
58    ],
59    compile_multilib: "first",
60    cflags: [
61        "-Wall",
62        "-Wextra",
63        "-Werror",
64        "-Wno-unused-parameter",
65    ],
66
67    init_rc: ["cameraserver.rc"],
68
69    vintf_fragment_modules: [
70        "manifest_android.frameworks.cameraservice.service.xml",
71    ],
72}
73