package { default_applicable_licenses: ["Android-Apache-2.0"], } cc_library_shared { name: "libjni_deviceAsWebcam", stl: "c++_static", shared_libs: [ "libandroid", "libjpeg", "liblog", "libmediandk", "libnativehelper", "libyuv", ], static_libs: [ "libbase_ndk", ], srcs: [ "Buffer.cpp", "DeviceAsWebcamNative.cpp", "DeviceAsWebcamServiceManager.cpp", "Encoder.cpp", "SdkFrameProvider.cpp", "UVCProvider.cpp", ], cflags: [ "-O3", "-Wextra", "-funroll-loops", ], // for including the jni.h file header_libs: ["jni_headers"], }