diff options
Diffstat (limited to 'media/libaom/src/build/cmake/exports.cmake')
-rw-r--r-- | media/libaom/src/build/cmake/exports.cmake | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/media/libaom/src/build/cmake/exports.cmake b/media/libaom/src/build/cmake/exports.cmake index e0813dc0f2..fa7842c9d9 100644 --- a/media/libaom/src/build/cmake/exports.cmake +++ b/media/libaom/src/build/cmake/exports.cmake @@ -28,14 +28,19 @@ function(setup_exports_target) set(aom_sym_file "${AOM_CONFIG_DIR}/libaom.${symbol_file_ext}") add_custom_target(generate_exports - COMMAND ${CMAKE_COMMAND} -DAOM_ROOT="${AOM_ROOT}" + COMMAND ${CMAKE_COMMAND} + -DAOM_ROOT="${AOM_ROOT}" -DAOM_CONFIG_DIR="${AOM_CONFIG_DIR}" -DAOM_TARGET_SYSTEM=${AOM_TARGET_SYSTEM} - -DAOM_SYM_FILE="${aom_sym_file}" -DAOM_MSVC=${MSVC} - -DAOM_XCODE=${XCODE} -DCONFIG_NAME=$<CONFIG> + -DAOM_SYM_FILE="${aom_sym_file}" + -DAOM_MSVC=${MSVC} + -DAOM_XCODE=${XCODE} + -DCONFIG_NAME=$<CONFIG> -DCONFIG_AV1_DECODER=${CONFIG_AV1_DECODER} -DCONFIG_AV1_ENCODER=${CONFIG_AV1_ENCODER} - -DENABLE_TESTS=${ENABLE_TESTS} -P + -DCONFIG_INSPECTION=${CONFIG_INSPECTION} + -DENABLE_TESTS=${ENABLE_TESTS} + -P "${AOM_ROOT}/build/cmake/generate_exports.cmake" SOURCES ${AOM_EXPORTS_SOURCES} DEPENDS ${AOM_EXPORTS_SOURCES}) @@ -45,21 +50,25 @@ function(setup_exports_target) add_dependencies(aom generate_exports) if(APPLE) - set_property(TARGET aom APPEND_STRING + set_property(TARGET aom + APPEND_STRING PROPERTY LINK_FLAGS "-exported_symbols_list ${aom_sym_file}") elseif(WIN32) if(NOT MSVC) - set_property(TARGET aom APPEND_STRING + set_property(TARGET aom + APPEND_STRING PROPERTY LINK_FLAGS "-Wl,--version-script ${aom_sym_file}") else() - set_property(TARGET aom APPEND_STRING + set_property(TARGET aom + APPEND_STRING PROPERTY LINK_FLAGS "/DEF:${aom_sym_file}") endif() # TODO(tomfinegan): Sort out the import lib situation and flags for MSVC. else() - set_property(TARGET aom APPEND_STRING + set_property(TARGET aom + APPEND_STRING PROPERTY LINK_FLAGS "-Wl,--version-script,${aom_sym_file}") endif() endfunction() |