2024-05-11 21:14:14 -04:00
|
|
|
project(media-layer-trampoline)
|
|
|
|
|
2024-06-15 08:52:15 -04:00
|
|
|
# Common Sources
|
|
|
|
set(MEDIA_LAYER_TRAMPOLINE_SRC src/media-layer-core.cpp src/GLESv1_CM.cpp)
|
2024-05-11 21:14:14 -04:00
|
|
|
|
|
|
|
# Build
|
|
|
|
if(BUILD_NATIVE_COMPONENTS)
|
|
|
|
# Host Component
|
2024-06-04 18:29:13 -04:00
|
|
|
add_library(media-layer-trampoline src/host/host.cpp ${MEDIA_LAYER_TRAMPOLINE_SRC})
|
2024-11-22 22:02:55 -05:00
|
|
|
target_link_libraries(media-layer-trampoline
|
|
|
|
reborn-util
|
|
|
|
media-layer-core
|
|
|
|
trampoline-headers
|
|
|
|
)
|
2024-11-18 01:56:11 -05:00
|
|
|
target_compile_definitions(media-layer-trampoline PRIVATE MEDIA_LAYER_TRAMPOLINE_HOST)
|
2024-05-11 21:14:14 -04:00
|
|
|
# Install
|
2024-11-19 19:57:43 -05:00
|
|
|
setup_library(media-layer-trampoline TRUE TRUE)
|
2024-05-11 21:14:14 -04:00
|
|
|
elseif(BUILD_ARM_COMPONENTS)
|
|
|
|
# Guest Component
|
2024-10-20 01:19:08 -04:00
|
|
|
add_library(media-layer-core SHARED src/guest/guest.cpp ${MEDIA_LAYER_TRAMPOLINE_SRC})
|
2024-11-15 15:26:33 -05:00
|
|
|
target_link_libraries(media-layer-core
|
|
|
|
PUBLIC
|
|
|
|
media-layer-headers
|
|
|
|
PRIVATE
|
|
|
|
reborn-util
|
|
|
|
trampoline-headers
|
|
|
|
)
|
2024-11-18 01:56:11 -05:00
|
|
|
target_compile_definitions(media-layer-core PRIVATE MEDIA_LAYER_TRAMPOLINE_GUEST)
|
2024-05-11 21:14:14 -04:00
|
|
|
# Install
|
2024-11-22 22:02:55 -05:00
|
|
|
setup_library(media-layer-core TRUE TRUE)
|
2024-05-11 21:14:14 -04:00
|
|
|
endif()
|