CMakeLists.txt 1.4 KB
Newer Older
1 2 3 4 5
include_directories(
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/src
  ${CMAKE_BINARY_DIR}/src)

S
Simon Fels 已提交
6
set(ANBOXD_SOURCES
7 8
    ${CMAKE_SOURCE_DIR}/src/anbox/rpc/message_processor.cpp
    ${CMAKE_SOURCE_DIR}/src/anbox/rpc/pending_call_cache.cpp
9
    ${CMAKE_SOURCE_DIR}/src/anbox/common/fd.cpp
10 11 12 13
    service/platform_service.cpp
    service/platform_service_interface.cpp
    service/platform_api_stub.cpp
    service/android_api_skeleton.cpp
14 15 16 17
    service/message_processor.cpp
    service/local_socket_connection.cpp
    service/host_connector.cpp
    service/daemon.cpp
S
Simon Fels 已提交
18
    service/main.cpp)
19

S
Simon Fels 已提交
20
add_executable(anboxd ${ANBOXD_SOURCES})
21 22 23 24
target_link_libraries(anboxd
    pthread
    process-cpp
    anbox-protobuf)
25

26 27 28 29
set(TEST_PLATFORM_SERVICE
    service/test_platform_service.cpp)

add_executable(test_platform_service ${TEST_PLATFORM_SERVICE})
30 31 32 33 34 35

set(HWCOMPOSER_SOURCES
    hwcomposer/hwcomposer.cpp)

add_library(hwcomposer.anbox SHARED ${HWCOMPOSER_SOURCES})

36 37 38
# 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.
39 40 41
set_target_properties(anboxd
    PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)

42 43
set_target_properties(test_platform_service
    PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
44 45 46 47

set_target_properties(hwcomposer.anbox
    PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)