• 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    export_include_dirs: [
26        "common",
27        "hwl_interface",
28        "utils",
29    ],
30}
31
32cc_defaults {
33    name: "google_camera_hal_defaults",
34    defaults: ["hidl_defaults"],
35    cflags: [
36        "-O3",
37        "-Wall",
38        "-Werror",
39        "-Wextra"
40    ],
41    header_libs: [
42        "//hardware/google/camera:libgooglecamerahal_headers",
43        "libhardware_headers",
44    ],
45}
46
47soong_config_module_type {
48    name: "gch_hal_cc_defaults",
49    module_type: "cc_defaults",
50    config_namespace: "gch",
51    variables: ["hwl_library"],
52    properties: [
53        "cflags",
54        "enabled",
55        "shared_libs",
56        "srcs",
57    ],
58}
59
60// No value set (conditions_default) = load HWL with dlopen
61soong_config_string_variable {
62    name: "hwl_library",
63    values: ["lyric"],
64}
65