package { // See: http://go/android-license-faq // A large-scale-change added 'default_applicable_licenses' to import // all of the 'license_kinds' from "frameworks_native_license" // to get the below license kinds: // SPDX-license-identifier-Apache-2.0 default_applicable_licenses: ["frameworks_native_license"], } /**********************Keystone************************/ cc_prebuilt_library_shared { vendor_available: true, name: "librkgfx_dc", target: { android_arm: { srcs: ["Keystone/arm/librkgfx_dc.so"], }, android_arm64: { srcs: ["Keystone/arm64/librkgfx_dc.so"], }, }, shared_libs: ["libEGL", "libGLESv2", "libGLESv3", "libc", "libdl", "liblog", "libm", "libstdc++"], strip: { none: true, }, } /**********************Keystone************************/ cc_defaults { name: "renderengine_defaults", cflags: [ "-DLOG_TAG=\"RenderEngine\"", "-Wall", "-Werror", "-Wthread-safety", "-Wunused", "-Wunreachable-code", ], } cc_defaults { name: "librenderengine_defaults", defaults: ["renderengine_defaults"], cflags: [ "-DGL_GLEXT_PROTOTYPES", "-DEGL_EGLEXT_PROTOTYPES", "-DAFTER_ANDROID10=1", ], shared_libs: [ "libbase", "libcutils", "libEGL", "libGLESv1_CM", "libGLESv2", "libgui", "liblog", "libnativewindow", "libprocessgroup", "libsync", "libui", "libutils", "librkgfx_dc", ], local_include_dirs: ["include"], export_include_dirs: ["include"], } filegroup { name: "librenderengine_sources", srcs: [ "Description.cpp", "ExternalTexture.cpp", "Mesh.cpp", "RenderEngine.cpp", "Texture.cpp", ], } filegroup { name: "librenderengine_gl_sources", srcs: [ "gl/GLESRenderEngine.cpp", "gl/GLExtensions.cpp", "gl/GLFramebuffer.cpp", "gl/GLImage.cpp", "gl/GLShadowTexture.cpp", "gl/GLShadowVertexGenerator.cpp", "gl/GLSkiaShadowPort.cpp", "gl/GLVertexBuffer.cpp", "gl/ImageManager.cpp", "gl/Program.cpp", "gl/ProgramCache.cpp", "gl/filters/BlurFilter.cpp", "gl/filters/GenericProgram.cpp", ], } filegroup { name: "librenderengine_threaded_sources", srcs: [ "threaded/RenderEngineThreaded.cpp", ], } filegroup { name: "librenderengine_skia_sources", srcs: [ "skia/AutoBackendTexture.cpp", "skia/Cache.cpp", "skia/ColorSpaces.cpp", "skia/SkiaRenderEngine.cpp", "skia/SkiaGLRenderEngine.cpp", "skia/debug/CaptureTimer.cpp", "skia/debug/CommonPool.cpp", "skia/debug/SkiaCapture.cpp", "skia/debug/SkiaMemoryReporter.cpp", "skia/filters/BlurFilter.cpp", "skia/filters/LinearEffect.cpp", "skia/filters/StretchShaderFactory.cpp" ], } bootstrap_go_package { name: "soong-librenderengine", pkgPath: "android/soong/librenderengine", deps: [ "blueprint", "blueprint-pathtools", "soong", "soong-android", "soong-cc", "soong-genrule", ], srcs: [ "Android.go", ], pluginFor: ["soong_build"], } cc_librenderengine { name: "cc_librenderengine_defaults" } cc_library_static { name: "librenderengine", defaults: ["librenderengine_defaults", "cc_librenderengine_defaults"], double_loadable: true, clang: true, cflags: [ "-fvisibility=hidden", "-Werror=format", "-Wno-unused-parameter", ], srcs: [ ":librenderengine_sources", ":librenderengine_gl_sources", ":librenderengine_threaded_sources", ":librenderengine_skia_sources", ], include_dirs: [ "external/skia/src/gpu", ], whole_static_libs: ["libskia_renderengine"], lto: { thin: true, }, } cc_library_static { name: "librenderengine_mocks", defaults: ["librenderengine_defaults"], srcs: [ "mock/Framebuffer.cpp", "mock/Image.cpp", "mock/RenderEngine.cpp", ], static_libs: [ "libgtest", "libgmock", ], local_include_dirs: ["include"], export_include_dirs: ["include"], }