diff options
author | Bryan O'Sullivan <bos@lindenlab.com> | 2008-06-05 23:56:32 +0000 |
---|---|---|
committer | Bryan O'Sullivan <bos@lindenlab.com> | 2008-06-05 23:56:32 +0000 |
commit | 84fe582c1ea5ddd073a71064ffa9aa72fa35d7ca (patch) | |
tree | 9bb0291b68e594f8239b5d41c5cb06eb8094161c | |
parent | 0e047070543d23eb70f32d7df3d6b51f6997c6e1 (diff) |
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.
-rwxr-xr-x | indra/develop.py | 2 | ||||
-rw-r--r-- | indra/newview/CMakeLists.txt | 13 |
2 files changed, 11 insertions, 4 deletions
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) |