• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package {
18    // See: http://go/android-license-faq
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22cc_library_headers {
23    name: "libgooglecamerahal_headers",
24    vendor: true,
25    host_supported: true,
26    export_include_dirs: [
27        "common",
28        "hwl_interface",
29        "utils",
30    ],
31    shared_libs: ["libcamera_metadata"],
32    export_shared_lib_headers: ["libcamera_metadata"],
33}
34
35cc_defaults {
36    name: "google_camera_hal_defaults",
37    defaults: ["hidl_defaults"],
38    cflags: [
39        "-O3",
40        "-Wall",
41        "-Werror",
42        "-Wextra"
43    ],
44    header_libs: [
45        "//hardware/google/camera:libgooglecamerahal_headers",
46        "libhardware_headers",
47    ],
48}
49
50soong_config_module_type {
51    name: "gch_hal_cc_defaults",
52    module_type: "cc_defaults",
53    config_namespace: "gch",
54    variables: ["hwl_library"],
55    properties: [
56        "cflags",
57        "enabled",
58        "shared_libs",
59        "srcs",
60    ],
61}
62
63// No value set (conditions_default) = load HWL with dlopen
64soong_config_string_variable {
65    name: "hwl_library",
66    values: ["lyric"],
67}
68