2024-05-12 01:14:14 +00:00
|
|
|
project(media-layer-trampoline)
|
|
|
|
|
2024-06-15 12:52:15 +00:00
|
|
|
# Common Sources
|
|
|
|
set(MEDIA_LAYER_TRAMPOLINE_SRC src/media-layer-core.cpp src/GLESv1_CM.cpp)
|
2024-05-12 01:14:14 +00:00
|
|
|
|
|
|
|
# Build
|
|
|
|
if(BUILD_NATIVE_COMPONENTS)
|
|
|
|
# Host Component
|
2024-06-04 22:29:13 +00:00
|
|
|
add_library(media-layer-trampoline src/host/host.cpp ${MEDIA_LAYER_TRAMPOLINE_SRC})
|
2024-11-18 06:56:11 +00:00
|
|
|
target_link_libraries(media-layer-trampoline reborn-util media-layer-core trampoline-headers)
|
|
|
|
target_compile_definitions(media-layer-trampoline PRIVATE MEDIA_LAYER_TRAMPOLINE_HOST)
|
2024-05-12 01:14:14 +00:00
|
|
|
# Install
|
|
|
|
install(TARGETS media-layer-trampoline DESTINATION "${MCPI_LIB_DIR}")
|
|
|
|
elseif(BUILD_ARM_COMPONENTS)
|
|
|
|
# Guest Component
|
2024-10-20 05:19:08 +00:00
|
|
|
add_library(media-layer-core SHARED src/guest/guest.cpp ${MEDIA_LAYER_TRAMPOLINE_SRC})
|
2024-11-15 20:26:33 +00:00
|
|
|
target_link_libraries(media-layer-core
|
|
|
|
PUBLIC
|
|
|
|
media-layer-headers
|
|
|
|
PRIVATE
|
|
|
|
reborn-util
|
|
|
|
trampoline-headers
|
|
|
|
rt
|
|
|
|
)
|
2024-11-18 06:56:11 +00:00
|
|
|
target_compile_definitions(media-layer-core PRIVATE MEDIA_LAYER_TRAMPOLINE_GUEST)
|
2024-05-12 01:14:14 +00:00
|
|
|
# Install
|
|
|
|
if(MCPI_USE_MEDIA_LAYER_TRAMPOLINE)
|
|
|
|
install(TARGETS media-layer-core DESTINATION "${MCPI_LIB_DIR}")
|
|
|
|
endif()
|
|
|
|
install(TARGETS media-layer-core EXPORT sdk DESTINATION "${MCPI_SDK_LIB_DIR}")
|
|
|
|
endif()
|