• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // the below license kinds from "system_media_license":
5    //   SPDX-license-identifier-Apache-2.0
6    default_applicable_licenses: ["system_media_license"],
7}
8
9subdirs = ["tests"]
10
11cc_library_shared {
12    name: "libcamera_metadata",
13    vendor_available: true,
14    product_available: true,
15    // TODO(b/153609531): remove when no longer needed.
16    native_bridge_supported: true,
17    host_supported: true,
18    vndk: {
19        enabled: true,
20    },
21    double_loadable: true,
22    srcs: ["src/camera_metadata.c"],
23
24    include_dirs: ["system/media/private/camera/include"],
25    local_include_dirs: ["include"],
26    export_include_dirs: ["include"],
27
28    header_libs: [
29        "libcutils_headers",
30    ],
31
32    export_header_lib_headers: [
33        "libcutils_headers",
34    ],
35
36    shared_libs: [
37        "liblog",
38    ],
39
40    cflags: [
41        "-Wall",
42        "-Wextra",
43        "-Werror",
44        "-fvisibility=hidden",
45        "-std=c11",
46    ],
47
48    product_variables: {
49        eng: {
50            // Enable assert()
51            cflags: [
52                "-UNDEBUG",
53                "-DLOG_NDEBUG=1",
54            ],
55        },
56    },
57}
58
59cc_library_shared {
60    name: "libcamera_metadata_asserts",
61
62    srcs: [
63        "src/camera_metadata_asserts.cpp",
64    ],
65
66    include_dirs: ["system/media/private/camera/include"],
67    local_include_dirs: ["include"],
68
69    static_libs: [
70        "android.hardware.camera.metadata-V2-ndk",
71    ],
72
73    cflags: [
74        "-Wall",
75        "-Wextra",
76        "-Werror",
77        "-fvisibility=hidden",
78        "-std=c11",
79    ],
80}
81
82filegroup {
83    name: "libcamera_metadata_tags_file",
84    srcs: ["include/system/camera_metadata_tags.h"],
85}
86