1package { 2 default_applicable_licenses: ["hardware_google_gfxstream_license"], 3} 4 5cc_library_host_static { 6 name: "libgfxstream_graphics_detector_proto", 7 proto: { 8 export_proto_headers: true, 9 type: "full", 10 }, 11 strip: { 12 keep_symbols: true, 13 }, 14 srcs: ["GraphicsDetector.proto"], 15} 16 17cc_library_host_static { 18 name: "libgfxstream_graphics_detector", 19 srcs: [ 20 "Egl.cpp", 21 "Gles.cpp", 22 "Image.cpp", 23 "Lib.cpp", 24 "GraphicsDetector.cpp", 25 "GraphicsDetectorGl.cpp", 26 "GraphicsDetectorVk.cpp", 27 "GraphicsDetectorVkExternalMemoryHost.cpp", 28 "GraphicsDetectorVkPrecisionQualifiersOnYuvSamplers.cpp", 29 "Subprocess.cpp", 30 "Vulkan.cpp", 31 ], 32 header_libs: [ 33 "libgfxstream_vulkan_headers", 34 ], 35 static_libs: [ 36 "libgfxstream_graphics_detector_proto", 37 "libprotobuf-cpp-full", 38 ], 39 export_static_lib_headers: [ 40 "libgfxstream_graphics_detector_proto", 41 ], 42 local_include_dirs: [ 43 ".", 44 ], 45 cflags: ["-O0"], 46} 47 48cc_binary_host { 49 name: "gfxstream_graphics_detector", 50 srcs: [ 51 "DetectGraphics.cpp", 52 ], 53 static_libs: [ 54 "libgfxstream_graphics_detector_proto", 55 "libgfxstream_graphics_detector", 56 "libprotobuf-cpp-full", 57 ], 58 cflags: ["-O0"], 59 stl: "libc++_static", 60} 61