Skip to content
Snippets Groups Projects
Commit 642cdd95 authored by Kyle Ambroff's avatar Kyle Ambroff
Browse files

svn merge -r96049:96026 -r95956:95931 -r95867:95775 svn+ssh://svn/svn/linden/release

Reverting my changes to the package target. It subtly broke the windows build in a way I didn't want to try to fix in release. Will fix in another branch.
parent cfde9d56
No related branches found
No related tags found
No related merge requests found
...@@ -605,6 +605,9 @@ def cmake_commandline(self, src_dir, build_dir, opts, simple): ...@@ -605,6 +605,9 @@ def cmake_commandline(self, src_dir, build_dir, opts, simple):
Examples: Examples:
Set up a viewer-only project for your system: Set up a viewer-only project for your system:
develop.py configure -DSERVER:BOOL=OFF develop.py configure -DSERVER:BOOL=OFF
Set up a Visual Studio 2005 project with package target (to build installer):
develop.py -G vc80 configure -DPACKAGE:BOOL=ON
''' '''
def main(arguments): def main(arguments):
......
...@@ -1289,6 +1289,9 @@ if (LLKDU_LIBRARY) ...@@ -1289,6 +1289,9 @@ if (LLKDU_LIBRARY)
add_dependencies(${VIEWER_BINARY_NAME} ${LLKDU_LIBRARY}) add_dependencies(${VIEWER_BINARY_NAME} ${LLKDU_LIBRARY})
endif (LLKDU_LIBRARY) endif (LLKDU_LIBRARY)
set(PACKAGE OFF CACHE BOOL
"Add a package target that builds an installer package.")
if (WINDOWS) if (WINDOWS)
if(MSVC71) if(MSVC71)
set(release_flags "/MAP:Release/${VIEWER_BINARY_NAME}.map /MAPINFO:LINES") set(release_flags "/MAP:Release/${VIEWER_BINARY_NAME}.map /MAPINFO:LINES")
...@@ -1362,10 +1365,10 @@ if (WINDOWS) ...@@ -1362,10 +1365,10 @@ if (WINDOWS)
--touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/touched.bat --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/touched.bat
DEPENDS ${VIEWER_BINARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py DEPENDS ${VIEWER_BINARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
) )
if (PACKAGE)
add_custom_target(package ALL DEPENDS ${CMAKE_CFG_INTDIR}/touched.bat) add_custom_target(package ALL DEPENDS ${CMAKE_CFG_INTDIR}/touched.bat)
add_dependencies(package windows-updater windows-crash-logger) add_dependencies(package windows-updater windows-crash-logger)
set_target_properties(package PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD ON) endif (PACKAGE)
endif (WINDOWS) endif (WINDOWS)
target_link_libraries(${VIEWER_BINARY_NAME} target_link_libraries(${VIEWER_BINARY_NAME}
...@@ -1437,9 +1440,10 @@ if (LINUX) ...@@ -1437,9 +1440,10 @@ if (LINUX)
DEPENDS secondlife-stripped ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py DEPENDS secondlife-stripped ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
) )
add_custom_target(package ALL DEPENDS ${product}.tar.bz2) if (NOT INSTALL)
add_dependencies(package linux-crash-logger-stripped) add_custom_target(package ALL DEPENDS ${product}.tar.bz2)
set_target_properties(package PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD ON) add_dependencies(package linux-crash-logger-stripped)
endif (NOT INSTALL)
endif (LINUX) endif (LINUX)
if (DARWIN) if (DARWIN)
...@@ -1473,26 +1477,26 @@ if (DARWIN) ...@@ -1473,26 +1477,26 @@ if (DARWIN)
DEPENDS ${VIEWER_BINARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py DEPENDS ${VIEWER_BINARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
) )
add_custom_target(package if (PACKAGE)
COMMAND add_custom_target(package
${PYTHON_EXECUTABLE} COMMAND
${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py ${PYTHON_EXECUTABLE}
--grid=${GRID} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
--configuration=${CMAKE_CFG_INTDIR} --grid=${GRID}
--channel=${VIEWER_CHANNEL} --configuration=${CMAKE_CFG_INTDIR}
--login_channel=${VIEWER_LOGIN_CHANNEL} --channel=${VIEWER_CHANNEL}
--source=${CMAKE_CURRENT_SOURCE_DIR} --login_channel=${VIEWER_LOGIN_CHANNEL}
--artwork=${ARTWORK_DIR} --source=${CMAKE_CURRENT_SOURCE_DIR}
--build=${CMAKE_CURRENT_BINARY_DIR} --artwork=${ARTWORK_DIR}
--dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${product}.app --build=${CMAKE_CURRENT_BINARY_DIR}
--touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/.${product}.touched --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${product}.app
DEPENDS --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/.${product}.touched
${VIEWER_BINARY_NAME} DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py ${VIEWER_BINARY_NAME}
) ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
)
add_dependencies(package mac-updater mac-crash-logger) add_dependencies(package mac-updater mac-crash-logger)
set_target_properties(package PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD ON) endif (PACKAGE)
endif (DARWIN) endif (DARWIN)
if (INSTALL) if (INSTALL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment