mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 12:29:56 +02:00
add DDE component as downloadable optional
This commit is contained in:
parent
4f00982724
commit
55886d43f5
7 changed files with 77 additions and 38 deletions
|
@ -213,10 +213,6 @@ endif()
|
||||||
|
|
||||||
set_packaging_parameters()
|
set_packaging_parameters()
|
||||||
|
|
||||||
# setup component categories for installer
|
|
||||||
set(CLIENT_COMPONENT client)
|
|
||||||
set(SERVER_COMPONENT server)
|
|
||||||
|
|
||||||
# add subdirectories for all targets
|
# add subdirectories for all targets
|
||||||
if (NOT ANDROID)
|
if (NOT ANDROID)
|
||||||
add_subdirectory(assignment-client)
|
add_subdirectory(assignment-client)
|
||||||
|
|
|
@ -12,13 +12,16 @@
|
||||||
macro(fixup_interface)
|
macro(fixup_interface)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
|
||||||
string(REPLACE " " "\\" ESCAPED_BUNDLE_NAME ${_INTERFACE_BUNDLE_NAME})
|
string(REPLACE " " "\\ " ESCAPED_BUNDLE_NAME ${INTERFACE_BUNDLE_NAME})
|
||||||
set(INTERFACE_INSTALL_PATH "Applications/High\\ Fidelity/${ESCAPED_BUNDLE_NAME}.app")
|
string(REPLACE " " "\\ " ESCAPED_INSTALL_PATH ${INTERFACE_INSTALL_DIR})
|
||||||
|
set(_INTERFACE_INSTALL_PATH "${ESCAPED_INSTALL_PATH}/${ESCAPED_BUNDLE_NAME}.app")
|
||||||
|
|
||||||
|
message(${_INTERFACE_INSTALL_PATH})
|
||||||
|
|
||||||
# install QtWebProcess from Qt to the application bundle
|
# install QtWebProcess from Qt to the application bundle
|
||||||
# since it is missed by macdeployqt
|
# since it is missed by macdeployqt
|
||||||
# https://bugreports.qt.io/browse/QTBUG-35211
|
# https://bugreports.qt.io/browse/QTBUG-35211
|
||||||
set(LIBEXEC_PATH "${INTERFACE_INSTALL_PATH}/Contents/libexec")
|
set(LIBEXEC_PATH "${_INTERFACE_INSTALL_PATH}/Contents/libexec")
|
||||||
install(
|
install(
|
||||||
PROGRAMS "${QT_DIR}/libexec/QtWebProcess"
|
PROGRAMS "${QT_DIR}/libexec/QtWebProcess"
|
||||||
DESTINATION ${LIBEXEC_PATH}
|
DESTINATION ${LIBEXEC_PATH}
|
||||||
|
@ -46,9 +49,9 @@ macro(fixup_interface)
|
||||||
|
|
||||||
install(CODE "
|
install(CODE "
|
||||||
execute_process(COMMAND ${MACDEPLOYQT_COMMAND}\
|
execute_process(COMMAND ${MACDEPLOYQT_COMMAND}\
|
||||||
\${CMAKE_INSTALL_PREFIX}/${INTERFACE_INSTALL_PATH}/\
|
\${CMAKE_INSTALL_PREFIX}/${_INTERFACE_INSTALL_PATH}/\
|
||||||
-verbose=2 -qmldir=${CMAKE_SOURCE_DIR}/interface/resources/qml/\
|
-verbose=2 -qmldir=${CMAKE_SOURCE_DIR}/interface/resources/qml/\
|
||||||
-executable=\${CMAKE_INSTALL_PREFIX}/${INTERFACE_INSTALL_PATH}/Contents/libexec/QtWebProcess\
|
-executable=\${CMAKE_INSTALL_PREFIX}/${_INTERFACE_INSTALL_PATH}/Contents/libexec/QtWebProcess\
|
||||||
)"
|
)"
|
||||||
COMPONENT ${CLIENT_COMPONENT}
|
COMPONENT ${CLIENT_COMPONENT}
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,10 +20,39 @@ macro(GENERATE_INSTALLERS)
|
||||||
set(CPACK_PACKAGING_INSTALL_PREFIX /)
|
set(CPACK_PACKAGING_INSTALL_PREFIX /)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
cpack_add_component(${CLIENT_COMPONENT}
|
# setup downloads
|
||||||
DISPLAY_NAME "High Fidelity Client"
|
cpack_configure_downloads(
|
||||||
|
http://hifi-production.s3.amazonaws.com/optionals/
|
||||||
|
ADD_REMOVE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(CLIENT_GROUP client)
|
||||||
|
|
||||||
|
# add a component group for the client
|
||||||
|
cpack_add_component_group(
|
||||||
|
${CLIENT_GROUP}
|
||||||
|
DISPLAY_NAME "Client"
|
||||||
|
EXPANDED
|
||||||
|
)
|
||||||
|
|
||||||
|
cpack_add_component(
|
||||||
|
${CLIENT_COMPONENT}
|
||||||
|
DISPLAY_NAME "High Fidelity Client"
|
||||||
|
GROUP ${CLIENT_GROUP}
|
||||||
|
)
|
||||||
|
|
||||||
|
if (DDE_APP_PATH)
|
||||||
|
# add a download component for DDE
|
||||||
|
cpack_add_component(
|
||||||
|
${DDE_COMPONENT}
|
||||||
|
DISPLAY_NAME "Webcam Body Movement"
|
||||||
|
DEPENDS ${CLIENT_COMPONENT}
|
||||||
|
GROUP ${CLIENT_GROUP}
|
||||||
|
DOWNLOADED
|
||||||
|
ARCHIVE_FILE "DDE"
|
||||||
|
)
|
||||||
|
endif ()
|
||||||
|
|
||||||
cpack_add_component(${SERVER_COMPONENT}
|
cpack_add_component(${SERVER_COMPONENT}
|
||||||
DISPLAY_NAME "High Fidelity Server"
|
DISPLAY_NAME "High Fidelity Server"
|
||||||
)
|
)
|
||||||
|
|
|
@ -15,7 +15,7 @@ macro(install_beside_console)
|
||||||
set(SHELL_APP_CONTENTS "Components.app/Contents")
|
set(SHELL_APP_CONTENTS "Components.app/Contents")
|
||||||
set(COMPONENT_DESTINATION "${SHELL_APP_CONTENTS}/MacOS")
|
set(COMPONENT_DESTINATION "${SHELL_APP_CONTENTS}/MacOS")
|
||||||
else ()
|
else ()
|
||||||
set(COMPONENT_DESTINATION ${CONSOLE_INSTALL_PATH})
|
set(COMPONENT_DESTINATION ${CONSOLE_INSTALL_DIR})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
install(
|
install(
|
||||||
|
@ -26,9 +26,9 @@ macro(install_beside_console)
|
||||||
|
|
||||||
if (TARGET_NAME STREQUAL domain-server)
|
if (TARGET_NAME STREQUAL domain-server)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set(RESOURCES_DESTINATION ${CONSOLE_INSTALL_PATH}/Contents/MacOS)
|
set(RESOURCES_DESTINATION ${CONSOLE_INSTALL_APP_PATH}/Contents/MacOS)
|
||||||
else ()
|
else ()
|
||||||
set(RESOURCES_DESTINATION ${CONSOLE_INSTALL_PATH})
|
set(RESOURCES_DESTINATION ${CONSOLE_INSTALL_DIR})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# install the resources folder for the domain-server where its executable will be
|
# install the resources folder for the domain-server where its executable will be
|
||||||
|
@ -49,7 +49,7 @@ macro(install_beside_console)
|
||||||
|
|
||||||
# once installed copy the contents of the shell Components.app to the console application
|
# once installed copy the contents of the shell Components.app to the console application
|
||||||
|
|
||||||
set(INSTALLED_CONSOLE_CONTENTS "\${CMAKE_INSTALL_PREFIX}/${CONSOLE_INSTALL_PATH}/Contents")
|
set(INSTALLED_CONSOLE_CONTENTS "\${CMAKE_INSTALL_PREFIX}/${CONSOLE_INSTALL_APP_PATH}/Contents")
|
||||||
|
|
||||||
set(INSTALLED_SHELL_CONTENTS "\${CMAKE_INSTALL_PREFIX}/${SHELL_APP_CONTENTS}")
|
set(INSTALLED_SHELL_CONTENTS "\${CMAKE_INSTALL_PREFIX}/${SHELL_APP_CONTENTS}")
|
||||||
install(CODE "
|
install(CODE "
|
||||||
|
|
|
@ -12,13 +12,6 @@
|
||||||
# and decides how targets should be packaged.
|
# and decides how targets should be packaged.
|
||||||
|
|
||||||
macro(SET_PACKAGING_PARAMETERS)
|
macro(SET_PACKAGING_PARAMETERS)
|
||||||
|
|
||||||
if (APPLE)
|
|
||||||
set(CONSOLE_INSTALL_PATH "Applications/High Fidelity/Server Console.app")
|
|
||||||
else ()
|
|
||||||
set(CONSOLE_INSTALL_PATH ".")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (DEFINED ENV{JOB_ID})
|
if (DEFINED ENV{JOB_ID})
|
||||||
set(DEPLOY_PACKAGE TRUE)
|
set(DEPLOY_PACKAGE TRUE)
|
||||||
set(BUILD_SEQ $ENV{JOB_ID})
|
set(BUILD_SEQ $ENV{JOB_ID})
|
||||||
|
@ -26,6 +19,7 @@ macro(SET_PACKAGING_PARAMETERS)
|
||||||
set(INSTALLER_COMPANY "High Fidelity")
|
set(INSTALLER_COMPANY "High Fidelity")
|
||||||
set(INSTALLER_DIRECTORY "${INSTALLER_COMPANY}")
|
set(INSTALLER_DIRECTORY "${INSTALLER_COMPANY}")
|
||||||
set(INSTALLER_NAME "interface-win64-${BUILD_SEQ}.exe")
|
set(INSTALLER_NAME "interface-win64-${BUILD_SEQ}.exe")
|
||||||
|
set(INTERFACE_BUNDLE_NAME "High Fidelity")
|
||||||
set(INTERFACE_ICON "interface.ico")
|
set(INTERFACE_ICON "interface.ico")
|
||||||
set(CONSOLE_ICON "console.ico")
|
set(CONSOLE_ICON "console.ico")
|
||||||
elseif (DEFINED ENV{ghprbPullId})
|
elseif (DEFINED ENV{ghprbPullId})
|
||||||
|
@ -35,6 +29,7 @@ macro(SET_PACKAGING_PARAMETERS)
|
||||||
set(INSTALLER_COMPANY "High Fidelity - PR")
|
set(INSTALLER_COMPANY "High Fidelity - PR")
|
||||||
set(INSTALLER_DIRECTORY "${INSTALLER_COMPANY}\\${BUILD_SEQ}")
|
set(INSTALLER_DIRECTORY "${INSTALLER_COMPANY}\\${BUILD_SEQ}")
|
||||||
set(INSTALLER_NAME "pr-interface-win64-${BUILD_SEQ}.exe")
|
set(INSTALLER_NAME "pr-interface-win64-${BUILD_SEQ}.exe")
|
||||||
|
set(INTERFACE_BUNDLE_NAME "High Fidelity ${BUILD_SEQ}")
|
||||||
set(INTERFACE_ICON "interface-beta.ico")
|
set(INTERFACE_ICON "interface-beta.ico")
|
||||||
set(CONSOLE_ICON "console-beta.ico")
|
set(CONSOLE_ICON "console-beta.ico")
|
||||||
else ()
|
else ()
|
||||||
|
@ -43,10 +38,28 @@ macro(SET_PACKAGING_PARAMETERS)
|
||||||
set(INSTALLER_COMPANY "High Fidelity - Dev")
|
set(INSTALLER_COMPANY "High Fidelity - Dev")
|
||||||
set(INSTALLER_DIRECTORY "${INSTALLER_COMPANY}")
|
set(INSTALLER_DIRECTORY "${INSTALLER_COMPANY}")
|
||||||
set(INSTALLER_NAME "dev-interface-win64.exe")
|
set(INSTALLER_NAME "dev-interface-win64.exe")
|
||||||
|
set(INTERFACE_BUNDLE_NAME "Interface")
|
||||||
set(INTERFACE_ICON "interface-beta.ico")
|
set(INTERFACE_ICON "interface-beta.ico")
|
||||||
set(CONSOLE_ICON "console-beta.ico")
|
set(CONSOLE_ICON "console-beta.ico")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
set(CONSOLE_INSTALL_DIR "Applications/High Fidelity")
|
||||||
|
set(CONSOLE_APPLICATION_NAME "Server Console.app")
|
||||||
|
set(CONSOLE_INSTALL_APP_PATH "${CONSOLE_INSTALL_DIR}/${CONSOLE_APPLICATION_NAME}")
|
||||||
|
|
||||||
|
set(INTERFACE_INSTALL_DIR "Applications/High Fidelity")
|
||||||
|
set(INTERFACE_INSTALL_APP_PATH "${INTERFACE_INSTALL_DIR}/${INTERFACE_BUNDLE_NAME}.app")
|
||||||
|
else ()
|
||||||
|
set(CONSOLE_INSTALL_DIR ".")
|
||||||
|
set(INTERFACE_INSTALL_DIR ".")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# setup component categories for installer
|
||||||
|
set(DDE_COMPONENT dde)
|
||||||
|
set(CLIENT_COMPONENT client)
|
||||||
|
set(SERVER_COMPONENT server)
|
||||||
|
|
||||||
# create a header file our targets can use to find out the application version
|
# create a header file our targets can use to find out the application version
|
||||||
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/includes")
|
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/includes")
|
||||||
configure_file("${MACRO_DIR}/ApplicationVersion.h.in" "${CMAKE_BINARY_DIR}/includes/ApplicationVersion.h")
|
configure_file("${MACRO_DIR}/ApplicationVersion.h.in" "${CMAKE_BINARY_DIR}/includes/ApplicationVersion.h")
|
||||||
|
|
|
@ -12,8 +12,7 @@ macro(SETUP_HIFI_PLUGIN)
|
||||||
set_target_properties(${TARGET_NAME} PROPERTIES FOLDER "Plugins")
|
set_target_properties(${TARGET_NAME} PROPERTIES FOLDER "Plugins")
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
get_property(_INTERFACE_BUNDLE_NAME GLOBAL PROPERTY INTERFACE_BUNDLE_NAME)
|
set(PLUGIN_PATH "${INTERFACE_BUNDLE_NAME}.app/Contents/PlugIns")
|
||||||
set(PLUGIN_PATH "${_INTERFACE_BUNDLE_NAME}.app/Contents/PlugIns")
|
|
||||||
else()
|
else()
|
||||||
set(PLUGIN_PATH "plugins")
|
set(PLUGIN_PATH "plugins")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -101,19 +101,8 @@ endif()
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
add_executable(${TARGET_NAME} MACOSX_BUNDLE ${INTERFACE_SRCS} ${QM})
|
add_executable(${TARGET_NAME} MACOSX_BUNDLE ${INTERFACE_SRCS} ${QM})
|
||||||
|
|
||||||
# change the target name to the right thing depending on the type of build this is
|
# make sure the output name for the .app bundle is correct
|
||||||
# set a global INTERFACE_BUNDLE_NAME property so that we can have plugins copied to the right place
|
set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME ${INTERFACE_BUNDLE_NAME})
|
||||||
if (PRODUCTION_BUILD)
|
|
||||||
set(_INTERFACE_BUNDLE_NAME "High Fidelity")
|
|
||||||
elseif (PR_BUILD)
|
|
||||||
set(_INTERFACE_BUNDLE_NAME "High Fidelity ${BUILD_SEQ}")
|
|
||||||
elseif (DEV_BUILD)
|
|
||||||
set(_INTERFACE_BUNDLE_NAME "Interface")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set_property(GLOBAL PROPERTY INTERFACE_BUNDLE_NAME ${_INTERFACE_BUNDLE_NAME})
|
|
||||||
|
|
||||||
set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME ${_INTERFACE_BUNDLE_NAME})
|
|
||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
add_executable(${TARGET_NAME} WIN32 ${INTERFACE_SRCS} ${QM})
|
add_executable(${TARGET_NAME} WIN32 ${INTERFACE_SRCS} ${QM})
|
||||||
else()
|
else()
|
||||||
|
@ -221,7 +210,7 @@ if (APPLE)
|
||||||
|
|
||||||
# setup install of OS X interface bundle
|
# setup install of OS X interface bundle
|
||||||
install(TARGETS ${TARGET_NAME}
|
install(TARGETS ${TARGET_NAME}
|
||||||
BUNDLE DESTINATION "Applications/High Fidelity"
|
BUNDLE DESTINATION ${INTERFACE_INSTALL_DIR}
|
||||||
COMPONENT ${CLIENT_COMPONENT}
|
COMPONENT ${CLIENT_COMPONENT}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -248,6 +237,16 @@ endif (APPLE)
|
||||||
# call the fixup_interface macro to add required bundling commands for installation
|
# call the fixup_interface macro to add required bundling commands for installation
|
||||||
fixup_interface()
|
fixup_interface()
|
||||||
|
|
||||||
|
# if present, add an install of the DDE components
|
||||||
|
# which will be presented as an option during install
|
||||||
|
if (APPLE AND DDE_APP_PATH)
|
||||||
|
install(
|
||||||
|
PROGRAMS ${DDE_APP_PATH}
|
||||||
|
DESTINATION ${INTERFACE_INSTALL_PATH}/Contents/MacOS
|
||||||
|
COMPONENT ${DDE_COMPONENT}
|
||||||
|
)
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(EXTRA_DEPLOY_OPTIONS "--qmldir ${PROJECT_SOURCE_DIR}/resources/qml")
|
set(EXTRA_DEPLOY_OPTIONS "--qmldir ${PROJECT_SOURCE_DIR}/resources/qml")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue