1soong_namespace {
2}
3
4package {
5    default_applicable_licenses: ["hardware_qcom_sm8150_display_license"],
6}
7
8// Added automatically by a large-scale-change that took the approach of
9// 'apply every license found to every target'. While this makes sure we respect
10// every license restriction, it may not be entirely correct.
11//
12// e.g. GPL in an MIT project might only apply to the contrib/ directory.
13//
14// Please consider splitting the single license below into multiple licenses,
15// taking care not to lose any license_kind information, and overriding the
16// default license using the 'licenses: [...]' property on targets as needed.
17//
18// For unused files, consider creating a 'fileGroup' with "//visibility:private"
19// to attach the license to, and including a comment whether the files may be
20// used in the current project.
21// See: http://go/android-license-faq
22license {
23    name: "hardware_qcom_sm8150_display_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27        "SPDX-license-identifier-BSD",
28        "legacy_not_a_contribution",
29    ],
30    license_text: [
31        "LICENSE",
32    ],
33}
34
35display_go_defaults {
36    name: "display_go_defaults",
37}
38
39cc_defaults {
40    name: "display_defaults",
41    defaults: ["display_go_defaults"],
42    cflags: [
43        "-Wno-missing-field-initializers",
44        "-Wconversion",
45        "-Wall",
46        "-Werror",
47	"-std=c++14",
48    ],
49    shared_libs: [
50        "liblog",
51        "libcutils",
52        "libutils",
53    ],
54    header_libs: ["display_headers"],
55    clang: true,
56}
57
58cc_library_headers {
59    name: "display_headers",
60    defaults: ["display_go_defaults"],
61    vendor: true,
62    export_include_dirs: [
63        "include",
64        "libcopybit",
65        "libdrmutils",
66        "libqdutils",
67        "libqservice",
68        "gpu_tonemapper",
69        "sdm/include",
70        "gralloc",
71        "libdebug",
72        "libhistogram",
73    ],
74    header_libs: ["libhardware_headers", "//vendor/qcom/sm8150:display_intf_headers"],
75    export_header_lib_headers: ["libhardware_headers", "//vendor/qcom/sm8150:display_intf_headers"],
76}
77
78subdirs = [
79    "libqservice",
80    "libqdutils",
81]
82