• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
2//     CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
3//     DEPENDING ON IT IN YOUR PROJECT. ***
4package {
5    default_applicable_licenses: ["device_generic_vulkan-cereal_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: "device_generic_vulkan-cereal_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27        "SPDX-license-identifier-BSD",
28        "SPDX-license-identifier-CC-BY",
29        "SPDX-license-identifier-GPL",
30        "SPDX-license-identifier-GPL-2.0",
31        "SPDX-license-identifier-GPL-3.0",
32        "SPDX-license-identifier-ISC",
33        "SPDX-license-identifier-LGPL",
34        "SPDX-license-identifier-MIT",
35        "SPDX-license-identifier-OFL", // by exception only
36        "SPDX-license-identifier-Zlib",
37        "legacy_by_exception_only", // by exception only
38        "legacy_notice",
39        "legacy_unencumbered",
40    ],
41    // large-scale-change unable to identify any license_text files
42}
43
44cc_library_headers {
45    name: "gfxstream_headers",
46    host_supported: true,
47    export_include_dirs: [
48        ".",
49        "include",
50        "base",
51        "host-common",
52        "snapshot",
53        "stream-servers",
54        "stream-servers/vulkan",
55        "stream-servers/glestranslator/include",
56        "stream-servers/OpenGLESDispatch",
57    ],
58    apex_available: [
59        "//apex_available:platform",
60        "com.android.virt",
61    ],
62}
63
64cc_library_headers {
65    name: "gfxstream_x11_headers",
66    host_supported: true,
67    export_include_dirs: [
68        "stream-servers/apigen-codec-common",
69    ],
70    apex_available: [
71        "//apex_available:platform",
72        "com.android.virt",
73    ],
74}
75
76cc_defaults {
77    name: "gfxstream_defaults",
78    cflags: ["-D_FILE_OFFSET_BITS=64",
79             "-Wno-unreachable-code-loop-increment",
80             "-Wno-unused-parameter",
81             "-Wno-unused-function",
82             "-Wno-unused-variable",
83             "-Wno-ignored-qualifiers",
84             "-Wno-reorder-ctor",
85             "-Wno-mismatched-tags",
86             "-Wno-missing-field-initializers",
87             "-Wno-implicit-fallthrough",
88             "-Wno-unused-private-field",
89             "-Wno-macro-redefined",
90            ],
91    header_libs: [
92        "gfxstream_headers",
93        "gfxstream_x11_headers",
94    ],
95    target: {
96        host: {
97            compile_multilib: "64",
98            cflags: [
99                "-U__ANDROID__",
100                "-UANDROID",
101            ]
102        },
103        android: {
104            compile_multilib: "64",
105            shared_libs: [ "libnativewindow", ],
106        },
107        linux_bionic_arm64: {
108            enabled: true,
109            cflags: [ "-Dandroidbionic", ],
110        }
111    },
112    host_supported: true,
113
114    apex_available: [
115        "//apex_available:platform",
116        "com.android.virt",
117    ],
118}
119