123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- cc_defaults {
- name: "libcompositionengine_defaults",
- defaults: ["surfaceflinger_defaults"],
- cflags: [
- "-DLOG_TAG=\"CompositionEngine\"",
- ],
- shared_libs: [
- "[email protected]",
- "[email protected]",
- "[email protected]",
- "[email protected]",
- "[email protected]",
- "[email protected]",
- "[email protected]",
- "libbase",
- "libcutils",
- "libgui",
- "liblayers_proto",
- "liblog",
- "libnativewindow",
- "libsync",
- "libtimestats_proto",
- "libui",
- "libutils",
- ],
- static_libs: [
- "libmath",
- "librenderengine",
- "libtrace_proto",
- ],
- header_libs: [
- "[email protected]",
- "[email protected]",
- "[email protected]",
- "libsurfaceflinger_headers",
- ],
- }
- cc_library {
- name: "libcompositionengine",
- defaults: ["libcompositionengine_defaults"],
- srcs: [
- "src/CompositionEngine.cpp",
- "src/Display.cpp",
- "src/DisplayColorProfile.cpp",
- "src/DisplaySurface.cpp",
- "src/DumpHelpers.cpp",
- "src/HwcBufferCache.cpp",
- "src/Layer.cpp",
- "src/LayerCompositionState.cpp",
- "src/Output.cpp",
- "src/OutputCompositionState.cpp",
- "src/OutputLayer.cpp",
- "src/OutputLayerCompositionState.cpp",
- "src/RenderSurface.cpp",
- ],
- local_include_dirs: ["include"],
- export_include_dirs: ["include"],
- }
- cc_library {
- name: "libcompositionengine_mocks",
- defaults: ["libcompositionengine_defaults"],
- srcs: [
- "mock/CompositionEngine.cpp",
- "mock/Display.cpp",
- "mock/DisplayColorProfile.cpp",
- "mock/DisplaySurface.cpp",
- "mock/Layer.cpp",
- "mock/LayerFE.cpp",
- "mock/NativeWindow.cpp",
- "mock/Output.cpp",
- "mock/OutputLayer.cpp",
- "mock/RenderSurface.cpp",
- ],
- static_libs: [
- "libgtest",
- "libgmock",
- "libcompositionengine",
- ],
- local_include_dirs: ["include"],
- export_include_dirs: ["include"],
- }
- cc_test {
- name: "libcompositionengine_test",
- test_suites: ["device-tests"],
- defaults: ["libcompositionengine_defaults"],
- srcs: [
- "tests/CompositionEngineTest.cpp",
- "tests/DisplayColorProfileTest.cpp",
- "tests/DisplayTest.cpp",
- "tests/HwcBufferCacheTest.cpp",
- "tests/LayerTest.cpp",
- "tests/MockHWC2.cpp",
- "tests/MockHWComposer.cpp",
- "tests/OutputTest.cpp",
- "tests/OutputLayerTest.cpp",
- "tests/RenderSurfaceTest.cpp",
- ],
- static_libs: [
- "libcompositionengine",
- "libcompositionengine_mocks",
- "librenderengine_mocks",
- "libgmock",
- "libgtest",
- ],
- sanitize: {
- // By using the address sanitizer, we not only uncover any issues
- // with the test, but also any issues with the code under test.
- //
- // Note: If you get an runtime link error like:
- //
- // CANNOT LINK EXECUTABLE "/data/local/tmp/libcompositionengine_test": library "libclang_rt.asan-aarch64-android.so" not found
- //
- // it is because the address sanitizer shared objects are not installed
- // by default in the system image.
- //
- // You can either "make dist tests" before flashing, or set this
- // option to false temporarily.
- address: true,
- },
- }
|