* [test-runner]Add android render-test-runner NativeActivity app * [test-runner] Fix cmake for CI build failure * [test-runner] Update folder location, change app configureation * [test-runner] Add running instruction
52 lines
1.6 KiB
CMake
52 lines
1.6 KiB
CMake
add_library(
|
|
mbgl-render-test STATIC EXCLUDE_FROM_ALL
|
|
${MBGL_ROOT}/expression-test/test_runner_common.cpp
|
|
${MBGL_ROOT}/expression-test/test_runner_common.hpp
|
|
${MBGL_ROOT}/render-test/allocation_index.cpp
|
|
${MBGL_ROOT}/render-test/allocation_index.hpp
|
|
${MBGL_ROOT}/render-test/file_source.cpp
|
|
${MBGL_ROOT}/render-test/file_source.hpp
|
|
${MBGL_ROOT}/render-test/filesystem.hpp
|
|
${MBGL_ROOT}/render-test/include/mbgl/render_test.hpp
|
|
${MBGL_ROOT}/render-test/metadata.hpp
|
|
${MBGL_ROOT}/render-test/parser.cpp
|
|
${MBGL_ROOT}/render-test/parser.hpp
|
|
${MBGL_ROOT}/render-test/render_test.cpp
|
|
${MBGL_ROOT}/render-test/runner.cpp
|
|
${MBGL_ROOT}/render-test/runner.hpp
|
|
)
|
|
|
|
target_compile_definitions(
|
|
mbgl-render-test
|
|
PRIVATE TEST_RUNNER_ROOT_PATH="${MBGL_ROOT}"
|
|
)
|
|
|
|
# FIXME: Should not use core private interface
|
|
target_include_directories(
|
|
mbgl-render-test
|
|
PRIVATE ${MBGL_ROOT}/src ${MBGL_ROOT}/platform/default/include
|
|
)
|
|
|
|
target_include_directories(
|
|
mbgl-render-test
|
|
PUBLIC ${MBGL_ROOT}/render-test/include ${MBGL_ROOT}/include
|
|
)
|
|
|
|
include(${PROJECT_SOURCE_DIR}/vendor/boost.cmake)
|
|
|
|
target_link_libraries(
|
|
mbgl-render-test
|
|
PRIVATE
|
|
Mapbox::Base::Extras::args
|
|
Mapbox::Base::Extras::filesystem
|
|
Mapbox::Base::pixelmatch-cpp
|
|
mbgl-vendor-boost
|
|
PUBLIC mbgl-core
|
|
)
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL Android)
|
|
set_target_properties(mbgl-render-test PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=safe")
|
|
endif()
|
|
|
|
set_property(TARGET mbgl-render-test PROPERTY FOLDER Core)
|