anbox/android/CMakeLists.txt
2016-11-26 13:04:50 +01:00

48 lines
1.4 KiB
CMake

include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src)
set(ANBOXD_SOURCES
${CMAKE_SOURCE_DIR}/src/anbox/rpc/message_processor.cpp
${CMAKE_SOURCE_DIR}/src/anbox/rpc/pending_call_cache.cpp
${CMAKE_SOURCE_DIR}/src/anbox/common/fd.cpp
service/activity_manager_interface.cpp
service/platform_service.cpp
service/platform_service_interface.cpp
service/platform_api_stub.cpp
service/android_api_skeleton.cpp
service/message_processor.cpp
service/local_socket_connection.cpp
service/host_connector.cpp
service/daemon.cpp
service/main.cpp)
add_executable(anboxd ${ANBOXD_SOURCES})
target_link_libraries(anboxd
pthread
process-cpp
anbox-protobuf)
set(TEST_PLATFORM_SERVICE
service/test_platform_service.cpp)
add_executable(test_platform_service ${TEST_PLATFORM_SERVICE})
set(HWCOMPOSER_SOURCES
hwcomposer/hwcomposer.cpp)
add_library(hwcomposer.anbox SHARED ${HWCOMPOSER_SOURCES})
# As we're adding Android specific bits in this project we can't
# build this safely within default build anymore. We keep this
# for easy integration into used IDEs.
set_target_properties(anboxd
PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
set_target_properties(test_platform_service
PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
set_target_properties(hwcomposer.anbox
PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)