aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorJacek Antonelli2011-05-20 20:37:38 -0500
committerJacek Antonelli2011-05-20 22:09:31 -0500
commit13b3170509117b6e00e612137afab1ec7a543cd3 (patch)
tree514adb46ff6a783059a579ab987f7eb83385ce4b /linden/indra/newview
parentPorted viewer_info.py and BuildVersion.cmake from Kokua. (diff)
downloadmeta-impy-13b3170509117b6e00e612137afab1ec7a543cd3.zip
meta-impy-13b3170509117b6e00e612137afab1ec7a543cd3.tar.gz
meta-impy-13b3170509117b6e00e612137afab1ec7a543cd3.tar.bz2
meta-impy-13b3170509117b6e00e612137afab1ec7a543cd3.tar.xz
Ported Linux packaging system from Kokua.
Run "make package" in the build directory to create a tarball.
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/CMakeLists.txt73
1 files changed, 42 insertions, 31 deletions
diff --git a/linden/indra/newview/CMakeLists.txt b/linden/indra/newview/CMakeLists.txt
index 7ffb32b..7389075 100644
--- a/linden/indra/newview/CMakeLists.txt
+++ b/linden/indra/newview/CMakeLists.txt
@@ -3,6 +3,7 @@
3project(viewer) 3project(viewer)
4 4
5include(00-Common) 5include(00-Common)
6include(AddPackageTarget)
6include(Boost) 7include(Boost)
7include(BuildVersion) 8include(BuildVersion)
8include(DBusGlib) 9include(DBusGlib)
@@ -1290,6 +1291,10 @@ add_executable(${VIEWER_BINARY_NAME}
1290 ) 1291 )
1291check_message_template(${VIEWER_BINARY_NAME}) 1292check_message_template(${VIEWER_BINARY_NAME})
1292 1293
1294
1295# NOTE: This variable is DEPRECATED, and should not be used anymore.
1296# The package target should always be added. The variable AUTOPACKAGE
1297# (in AddPackageTarget.cmake) controls whether package is auto-built.
1293set(PACKAGE OFF CACHE BOOL 1298set(PACKAGE OFF CACHE BOOL
1294 "Add a package target that builds an installer package.") 1299 "Add a package target that builds an installer package.")
1295 1300
@@ -1431,43 +1436,49 @@ set(ARTWORK_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH
1431 1436
1432 1437
1433if (LINUX) 1438if (LINUX)
1434 add_custom_command(
1435 OUTPUT imprudence-stripped
1436 COMMAND strip
1437 ARGS --strip-debug -o imprudence-stripped ${VIEWER_BINARY_NAME}
1438 DEPENDS imprudence-bin
1439 )
1440 1439
1441 set(product Imprudence-${ARCH}-${viewer_VERSION}) 1440 string(REPLACE "-bin" "-stripped"
1441 VIEWER_STRIPPED_NAME ${VIEWER_BINARY_NAME})
1442
1443 add_dependencies(${VIEWER_BINARY_NAME}
1444 SLPlugin
1445 media_plugin_gstreamer010
1446 media_plugin_webkit)
1442 1447
1443 add_custom_command( 1448 add_custom_command(
1444 OUTPUT ${product}.tar.bz2 1449 OUTPUT ${VIEWER_STRIPPED_NAME}
1445 COMMAND ${PYTHON_EXECUTABLE} 1450 COMMAND strip
1446 ARGS 1451 ARGS --strip-debug -o ${VIEWER_STRIPPED_NAME} ${VIEWER_BINARY_NAME}
1447 ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py 1452 DEPENDS ${VIEWER_BINARY_NAME}
1448 --standalone=${STANDALONE} 1453 )
1449 --buildtype=${CMAKE_BUILD_TYPE} 1454
1450 --grid=${GRID} 1455 add_custom_target(
1451 --channel=${VIEWER_CHANNEL} 1456 viewer-manifest-target
1452 --login_channel=${VIEWER_LOGIN_CHANNEL} 1457 COMMAND
1453 --installer_name=${product} 1458 ${PYTHON_EXECUTABLE}
1454 --arch=${ARCH} 1459 ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
1455 --source=${CMAKE_CURRENT_SOURCE_DIR} 1460 --standalone=${STANDALONE}
1456 --artwork=${ARTWORK_DIR} 1461 --buildtype=${CMAKE_BUILD_TYPE}
1457 --build=${CMAKE_CURRENT_BINARY_DIR} 1462 --grid=${GRID}
1458 --dest=${CMAKE_CURRENT_BINARY_DIR}/packaged 1463 --channel=${VIEWER_CHANNEL}
1459 --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/.${product}.touched 1464 --login_channel=${VIEWER_LOGIN_CHANNEL}
1460 DEPENDS imprudence-stripped ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py 1465 --arch=${ARCH}
1461 ) 1466 --source=${CMAKE_CURRENT_SOURCE_DIR}
1462 1467 --artwork=${ARTWORK_DIR}
1463 add_dependencies(${VIEWER_BINARY_NAME} SLPlugin media_plugin_gstreamer010 media_plugin_webkit) 1468 --build=${CMAKE_CURRENT_BINARY_DIR}
1469 --dest=${CMAKE_CURRENT_BINARY_DIR}/packaged
1470 DEPENDS
1471 ${VIEWER_STRIPPED_NAME}
1472 linux-crash-logger
1473 ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
1474 )
1475
1476 add_package_target()
1477 add_dependencies(package viewer-manifest-target)
1464 1478
1465 if (NOT INSTALL)
1466 add_custom_target(package ALL DEPENDS ${product}.tar.bz2)
1467 add_dependencies(package linux-crash-logger-strip-target)
1468 endif (NOT INSTALL)
1469endif (LINUX) 1479endif (LINUX)
1470 1480
1481
1471if (DARWIN) 1482if (DARWIN)
1472 set(product "Imprudence") 1483 set(product "Imprudence")
1473 set_target_properties( 1484 set_target_properties(