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 "-DVIRGL_RENDERER_UNSTABLE_APIS", 80 "-Wno-unreachable-code-loop-increment", 81 "-Wno-unused-parameter", 82 "-Wno-unused-function", 83 "-Wno-unused-variable", 84 "-Wno-ignored-qualifiers", 85 "-Wno-reorder-ctor", 86 "-Wno-mismatched-tags", 87 "-Wno-missing-field-initializers", 88 "-Wno-implicit-fallthrough", 89 "-Wno-unused-private-field", 90 "-Wno-macro-redefined", 91 ], 92 header_libs: [ 93 "gfxstream_headers", 94 "gfxstream_x11_headers", 95 ], 96 target: { 97 host: { 98 compile_multilib: "64", 99 cflags: [ 100 "-U__ANDROID__", 101 "-UANDROID", 102 ] 103 }, 104 android: { 105 compile_multilib: "64", 106 shared_libs: [ "libnativewindow", ], 107 }, 108 linux_bionic_arm64: { 109 enabled: true, 110 cflags: [ "-Dandroidbionic", ], 111 } 112 }, 113 host_supported: true, 114 115 apex_available: [ 116 "//apex_available:platform", 117 "com.android.virt", 118 ], 119} 120