mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 23:40:11 +02:00
Remove PDB files, eliminate sixense
This commit is contained in:
parent
ae31df426c
commit
5a7a6bab70
5 changed files with 40 additions and 45 deletions
|
@ -24,21 +24,12 @@ macro(GENERATE_INSTALLERS)
|
||||||
set(CPACK_NSIS_PACKAGE_NAME ${_DISPLAY_NAME})
|
set(CPACK_NSIS_PACKAGE_NAME ${_DISPLAY_NAME})
|
||||||
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${_DISPLAY_NAME})
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${_DISPLAY_NAME})
|
||||||
|
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
# include CMake module that will install compiler system libraries
|
# Do not install the Visual Studio C runtime libraries. The installer will do this automatically
|
||||||
# so that we have msvcr120 and msvcp120 installed with targets
|
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
|
||||||
set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION ${INTERFACE_INSTALL_DIR})
|
|
||||||
|
|
||||||
# as long as we're including sixense plugin with installer
|
|
||||||
# we need re-distributables for VS 2011 as well
|
|
||||||
# this should be removed if/when sixense support is pulled
|
|
||||||
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
|
|
||||||
"${EXTERNALS_BINARY_DIR}/sixense/project/src/sixense/samples/win64/msvcr100.dll"
|
|
||||||
"${EXTERNALS_BINARY_DIR}/sixense/project/src/sixense/samples/win64/msvcp100.dll"
|
|
||||||
)
|
|
||||||
|
|
||||||
include(InstallRequiredSystemLibraries)
|
include(InstallRequiredSystemLibraries)
|
||||||
|
|
||||||
set(CPACK_NSIS_MUI_ICON "${HF_CMAKE_DIR}/installer/installer.ico")
|
set(CPACK_NSIS_MUI_ICON "${HF_CMAKE_DIR}/installer/installer.ico")
|
||||||
|
|
||||||
# install and reference the Add/Remove icon
|
# install and reference the Add/Remove icon
|
||||||
|
@ -90,3 +81,4 @@ macro(GENERATE_INSTALLERS)
|
||||||
|
|
||||||
include(CPack)
|
include(CPack)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,12 @@ macro(install_beside_console)
|
||||||
else ()
|
else ()
|
||||||
# setup install of executable and things copied by fixup/windeployqt
|
# setup install of executable and things copied by fixup/windeployqt
|
||||||
install(
|
install(
|
||||||
FILES "$<TARGET_FILE_DIR:${TARGET_NAME}>/"
|
DIRECTORY "$<TARGET_FILE_DIR:${TARGET_NAME}>/"
|
||||||
DESTINATION ${COMPONENT_INSTALL_DIR}
|
DESTINATION ${COMPONENT_INSTALL_DIR}
|
||||||
COMPONENT ${SERVER_COMPONENT}
|
COMPONENT ${SERVER_COMPONENT}
|
||||||
|
PATTERN "*.pdb" EXCLUDE
|
||||||
|
PATTERN "*.lib" EXCLUDE
|
||||||
|
PATTERN "*.exp" EXCLUDE
|
||||||
)
|
)
|
||||||
|
|
||||||
# on windows for PR and production builds, sign the executable
|
# on windows for PR and production builds, sign the executable
|
||||||
|
|
|
@ -11,34 +11,28 @@
|
||||||
|
|
||||||
include(BundleUtilities)
|
include(BundleUtilities)
|
||||||
|
|
||||||
# replace copy_resolved_item_into_bundle
|
function(gp_resolved_file_type_override resolved_file type_var)
|
||||||
#
|
if( file MATCHES ".*VCRUNTIME140.*" )
|
||||||
# The official version of copy_resolved_item_into_bundle will print out a "warning:" when
|
set(type "system" PARENT_SCOPE)
|
||||||
# the resolved item matches the resolved embedded item. This not not really an issue that
|
|
||||||
# should rise to the level of a "warning" so we replace this message with a "status:"
|
|
||||||
#
|
|
||||||
function(copy_resolved_item_into_bundle resolved_item resolved_embedded_item)
|
|
||||||
if (WIN32)
|
|
||||||
# ignore case on Windows
|
|
||||||
string(TOLOWER "${resolved_item}" resolved_item_compare)
|
|
||||||
string(TOLOWER "${resolved_embedded_item}" resolved_embedded_item_compare)
|
|
||||||
else()
|
|
||||||
set(resolved_item_compare "${resolved_item}")
|
|
||||||
set(resolved_embedded_item_compare "${resolved_embedded_item}")
|
|
||||||
endif()
|
endif()
|
||||||
|
if( file MATCHES ".*concrt140.*" )
|
||||||
if ("${resolved_item_compare}" STREQUAL "${resolved_embedded_item_compare}")
|
set(type "system" PARENT_SCOPE)
|
||||||
# this is our only change from the original version
|
endif()
|
||||||
message(STATUS "status: resolved_item == resolved_embedded_item - not copying...")
|
if( file MATCHES ".*msvcp140.*" )
|
||||||
else()
|
set(type "system" PARENT_SCOPE)
|
||||||
#message(STATUS "copying COMMAND ${CMAKE_COMMAND} -E copy ${resolved_item} ${resolved_embedded_item}")
|
endif()
|
||||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${resolved_item}" "${resolved_embedded_item}")
|
if( file MATCHES ".*vcruntime140.*" )
|
||||||
if(UNIX AND NOT APPLE)
|
set(type "system" PARENT_SCOPE)
|
||||||
file(RPATH_REMOVE FILE "${resolved_embedded_item}")
|
endif()
|
||||||
endif()
|
if( file MATCHES ".*api-ms-win-crt-conio.*" )
|
||||||
|
set(type "system" PARENT_SCOPE)
|
||||||
|
endif()
|
||||||
|
if( file MATCHES ".*api-ms-win-core-winrt.*" )
|
||||||
|
set(type "system" PARENT_SCOPE)
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
||||||
message(STATUS "FIXUP_LIBS for fixup_bundle called for bundle ${BUNDLE_EXECUTABLE} are @FIXUP_LIBS@")
|
message(STATUS "FIXUP_LIBS for fixup_bundle called for bundle ${BUNDLE_EXECUTABLE} are @FIXUP_LIBS@")
|
||||||
message(STATUS "Scanning for plugins from ${BUNDLE_PLUGIN_DIR}")
|
message(STATUS "Scanning for plugins from ${BUNDLE_PLUGIN_DIR}")
|
||||||
|
|
||||||
|
@ -52,3 +46,4 @@ endif()
|
||||||
|
|
||||||
file(GLOB EXTRA_PLUGINS "${BUNDLE_PLUGIN_DIR}/*.${PLUGIN_EXTENSION}")
|
file(GLOB EXTRA_PLUGINS "${BUNDLE_PLUGIN_DIR}/*.${PLUGIN_EXTENSION}")
|
||||||
fixup_bundle("${BUNDLE_EXECUTABLE}" "${EXTRA_PLUGINS}" "@FIXUP_LIBS@")
|
fixup_bundle("${BUNDLE_EXECUTABLE}" "${EXTRA_PLUGINS}" "@FIXUP_LIBS@")
|
||||||
|
|
||||||
|
|
|
@ -309,9 +309,12 @@ else (APPLE)
|
||||||
|
|
||||||
# setup install of executable and things copied by fixup/windeployqt
|
# setup install of executable and things copied by fixup/windeployqt
|
||||||
install(
|
install(
|
||||||
FILES "$<TARGET_FILE_DIR:${TARGET_NAME}>/"
|
DIRECTORY "$<TARGET_FILE_DIR:${TARGET_NAME}>/"
|
||||||
DESTINATION ${INTERFACE_INSTALL_DIR}
|
DESTINATION ${INTERFACE_INSTALL_DIR}
|
||||||
COMPONENT ${CLIENT_COMPONENT}
|
COMPONENT ${CLIENT_COMPONENT}
|
||||||
|
PATTERN "*.pdb" EXCLUDE
|
||||||
|
PATTERN "*.lib" EXCLUDE
|
||||||
|
PATTERN "*.exp" EXCLUDE
|
||||||
)
|
)
|
||||||
|
|
||||||
set(SCRIPTS_INSTALL_DIR "${INTERFACE_INSTALL_DIR}")
|
set(SCRIPTS_INSTALL_DIR "${INTERFACE_INSTALL_DIR}")
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
# See the accompanying file LICENSE or http:#www.apache.org/licenses/LICENSE-2.0.html
|
# See the accompanying file LICENSE or http:#www.apache.org/licenses/LICENSE-2.0.html
|
||||||
#
|
#
|
||||||
|
|
||||||
if (NOT ANDROID)
|
# FIXME if we want to re-enable this, we need to fix the mechanism for installing the
|
||||||
set(TARGET_NAME hifiSixense)
|
# dependency dlls `msvcr100` and `msvcp100` WITHOUT using CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
|
||||||
setup_hifi_plugin(Script Qml Widgets)
|
#if (NOT ANDROID)
|
||||||
link_hifi_libraries(shared controllers ui plugins ui-plugins input-plugins)
|
# set(TARGET_NAME hifiSixense)
|
||||||
target_sixense()
|
# setup_hifi_plugin(Script Qml Widgets)
|
||||||
endif ()
|
# link_hifi_libraries(shared controllers ui plugins ui-plugins input-plugins)
|
||||||
|
# target_sixense()
|
||||||
|
#endif ()
|
||||||
|
|
Loading…
Reference in a new issue