From 84fe582c1ea5ddd073a71064ffa9aa72fa35d7ca Mon Sep 17 00:00:00 2001 From: Bryan O'Sullivan Date: Thu, 5 Jun 2008 23:56:32 +0000 Subject: Don't add a package target on Windows or OS X by default. This improves build times, since most devs don't need to package stuff. Reviewed by that fine specimen of reviewerhood, Palange. --- indra/develop.py | 2 +- indra/newview/CMakeLists.txt | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'indra') diff --git a/indra/develop.py b/indra/develop.py index 5c8dc7f2bc..ecb0fa124b 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -477,7 +477,7 @@ class WindowsSetup(PlatformSetup): print 'Found: %s' % value return value except WindowsError, err: - print >> sys.stderr, "Didn't find ", self.gens[gen]['name'] + print >> sys.stderr, "Didn't find ", self.gens[gen]['gen'] return '' def get_build_cmd(self): diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 1ce41c044b..302470ce1b 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1211,6 +1211,9 @@ if (LLKDU_LIBRARY) add_dependencies(secondlife-bin ${LLKDU_LIBRARY}) endif (LLKDU_LIBRARY) +set(PACKAGE OFF CACHE BOOL + "Add a package target that builds an installer package.") + if (WINDOWS) if(MSVC71) set(release_flags "/MAP:Release/secondlife-bin.map /MAPINFO:LINES") @@ -1267,7 +1270,6 @@ if (WINDOWS) add_dependencies(secondlife-bin copy_win_scripts) endif (EXISTS ${CMAKE_SOURCE_DIR}/copy_win_scripts) - add_custom_target(package ALL DEPENDS ${CMAKE_CFG_INTDIR}/touched.bat) add_custom_command( OUTPUT ${CMAKE_CFG_INTDIR}/touched.bat COMMAND ${PYTHON_EXECUTABLE} @@ -1282,7 +1284,10 @@ if (WINDOWS) --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/touched.bat DEPENDS secondlife-bin ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py ) - add_dependencies(package windows-updater windows-crash-logger) + if (PACKAGE) + add_custom_target(package ALL DEPENDS ${CMAKE_CFG_INTDIR}/touched.bat) + add_dependencies(package windows-updater windows-crash-logger) + endif (PACKAGE) endif (WINDOWS) target_link_libraries(secondlife-bin @@ -1421,7 +1426,9 @@ if (DARWIN) DEPENDS secondlife-bin ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py ) - add_custom_target(package DEPENDS "${CMAKE_CFG_INTDIR}/.${product}.touched") + if (PACKAGE) + add_custom_target(package DEPENDS "${CMAKE_CFG_INTDIR}/.${product}.touched") + endif (PACKAGE) endif (DARWIN) if (INSTALL) -- cgit v1.2.3