cc_defaults { name: "common_defaults", compile_multilib: "32", init_rc: ["bootvideo.rc"], host_ldlibs: [ "-lm", "-landroid", ], include_dirs: [ "system/core/include/utils", "system/core/libutils/include/utils", "bionic/libc/include/android", "frameworks/av/media/libstagefright/include", "frameworks/native/include/media/openmax", "external/freetype/include", "external/freetype/include/freetype", "external/tinyxml2", "vendor/platform/secure_c/include", ], shared_libs: [ "libcutils", "liblog", "libbinder", "libutils", "libbase", "libtinyxml2", "libmedia", "libpng", "libui", "libgui", "libnativewindow", "libdolgles", "libdftevent", "libuapi_securec", "libimtvclient", "android.hardware.graphics.common@1.1", "android.hardware.graphics.common@1.2", "android.hardware.graphics.bufferqueue@1.0", "android.hardware.graphics.bufferqueue@2.0", ], cflags: [ "-pipe", "-Wno-shadow", "-Wno-float-equal", "-fvisibility=hidden", "-Wno-inconsistent-missing-override", ], product_variables: { platform_sdk_version: { cflags :["-DPLATFORM_SDK_VERSION=%d"], }, } } cc_library_shared { name: "lib_bootvideo", vendor_available: false, defaults: [ "common_defaults", ], srcs: [ "BootvideoConfiger.cpp", "BootvideoManager.cpp", "BootvideoInput.cpp", "BootvideoUI.cpp", "BootvideoPlayer.cpp", "BootvideoApi.cpp", "SurfaceUI.cpp", "BootvideoDftevent.cpp", ], } cc_binary { name: "bootvideo", vendor_available: false, defaults: [ "common_defaults", ], srcs: [ "BootvideoConfiger.cpp", "BootvideoManager.cpp", "BootvideoInput.cpp", "BootvideoUI.cpp", "BootvideoPlayer.cpp", "BootvideoMain.cpp", "SurfaceUI.cpp", "BootvideoDftevent.cpp", ], } cc_binary { name: "bootvideo_demo", vendor_available: false, defaults: [ "common_defaults", ], srcs: [ "lib_demo/LibBootvideoDemo.cpp", ], }