2021-06-17 17:32:24 -04:00
|
|
|
project(media-layer-proxy)
|
|
|
|
|
|
|
|
# Configuration
|
|
|
|
set(MEDIA_LAYER_PROXY_SRC src/common/common.c src/media-layer-core.c src/GLESv1_CM.c) # Media Layer Proxy Source
|
|
|
|
|
2022-05-29 18:44:27 -04:00
|
|
|
# Build
|
2021-06-17 17:32:24 -04:00
|
|
|
if(BUILD_NATIVE_COMPONENTS)
|
|
|
|
# Build Media Layer Proxy Client
|
|
|
|
add_executable(media-layer-proxy-client src/client/client.cpp ${MEDIA_LAYER_PROXY_SRC})
|
2022-07-02 18:14:23 -04:00
|
|
|
target_link_libraries(media-layer-proxy-client media-layer-headers reborn-util media-layer-core GLESv1_CM)
|
2021-06-17 17:32:24 -04:00
|
|
|
target_compile_definitions(media-layer-proxy-client PRIVATE -DMEDIA_LAYER_PROXY_CLIENT)
|
|
|
|
# Install
|
2022-03-11 20:02:38 -05:00
|
|
|
install(TARGETS media-layer-proxy-client DESTINATION "${MCPI_BIN_DIR}")
|
2022-07-02 18:14:23 -04:00
|
|
|
elseif(BUILD_ARM_COMPONENTS)
|
2021-06-17 17:32:24 -04:00
|
|
|
# Build Media Layer Proxy Server
|
2022-07-02 18:14:23 -04:00
|
|
|
add_library(media-layer-core SHARED src/server/server.cpp ${MEDIA_LAYER_PROXY_SRC} $<TARGET_OBJECTS:media-layer-extras>)
|
|
|
|
target_link_libraries(media-layer-core media-layer-headers reborn-util)
|
|
|
|
target_compile_definitions(media-layer-core PRIVATE -DMEDIA_LAYER_PROXY_SERVER)
|
|
|
|
# Install
|
|
|
|
install(TARGETS media-layer-core DESTINATION "${MCPI_LIB_DIR}")
|
|
|
|
install(TARGETS media-layer-core EXPORT sdk DESTINATION "${MCPI_SDK_LIB_DIR}")
|
2021-06-17 17:32:24 -04:00
|
|
|
endif()
|