mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
target/oxr: Mark the runtime target as a module, not a shared library.
This commit is contained in:
parent
69b8e8455c
commit
a11f5cc429
|
@ -18,7 +18,7 @@ set(SOURCE_FILES
|
||||||
)
|
)
|
||||||
|
|
||||||
# depends on above generated files
|
# depends on above generated files
|
||||||
add_library(${RUNTIME_TARGET} SHARED
|
add_library(${RUNTIME_TARGET} MODULE
|
||||||
${MANIFEST_DEV_PATH}
|
${MANIFEST_DEV_PATH}
|
||||||
${MANIFEST_PATH}
|
${MANIFEST_PATH}
|
||||||
${SOURCE_FILES}
|
${SOURCE_FILES}
|
||||||
|
@ -67,7 +67,7 @@ install(TARGETS ${RUNTIME_TARGET}
|
||||||
###
|
###
|
||||||
# Generate runtime manifest with absolute path to runtime intended for development without installing
|
# Generate runtime manifest with absolute path to runtime intended for development without installing
|
||||||
set(MANIFEST_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/openxr_monado.in.json)
|
set(MANIFEST_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/openxr_monado.in.json)
|
||||||
set(runtime_path $<TARGET_SONAME_FILE:${RUNTIME_TARGET}>)
|
set(runtime_path $<TARGET_FILE:${RUNTIME_TARGET}>)
|
||||||
|
|
||||||
# Need this step because file(GENERATE) only evaluates generator expressions, and not what configure_file does.
|
# Need this step because file(GENERATE) only evaluates generator expressions, and not what configure_file does.
|
||||||
configure_file(${MANIFEST_INPUT} ${CMAKE_CURRENT_BINARY_DIR}/intermediate_manifest.json)
|
configure_file(${MANIFEST_INPUT} ${CMAKE_CURRENT_BINARY_DIR}/intermediate_manifest.json)
|
||||||
|
|
Loading…
Reference in a new issue