diff options
| author | Palmer <palmer@lindenlab.com> | 2009-07-15 15:29:45 -0700 | 
|---|---|---|
| committer | Palmer <palmer@lindenlab.com> | 2009-07-15 15:29:45 -0700 | 
| commit | 1c92d6bf28add28fe65772c5f9c254e5c7370ba0 (patch) | |
| tree | 925fa340ff6b0f8d45fa3e838848197e86e0e471 | |
| parent | 675ed878cffde81f5f7f371fa85abe652fde82c2 (diff) | |
DEV-35531
Cmake changes and fixes to python script to get it to work properly
Mani reviewed most of this
| -rw-r--r-- | indra/newview/CMakeLists.txt | 25 | 
1 files changed, 24 insertions, 1 deletions
| diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 82a1419210..341b74b6f8 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1196,6 +1196,11 @@ if (LLKDU_LIBRARY)    add_dependencies(${VIEWER_BINARY_NAME} ${LLKDU_LIBRARY})  endif (LLKDU_LIBRARY) +# add package files +file(GLOB EVENT_HOST_SCRIPT_GLOB_LIST +     ${CMAKE_CURRENT_SOURCE_DIR}/../viewer_components/*.py) +list(APPEND EVENT_HOST_SCRIPTS ${EVENT_HOST_SCRIPT_GLOB_LIST}) +  set(PACKAGE OFF CACHE BOOL      "Add a package target that builds an installer package.") @@ -1291,8 +1296,26 @@ if (WINDOWS)          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_command( +          OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/event_host.tar.bz2 +          COMMAND ${PYTHON_EXECUTABLE} +          ARGS +            ${CMAKE_CURRENT_SOURCE_DIR}/event_host_manifest.py +            ${CMAKE_CURRENT_SOURCE_DIR}/.. +            ${CMAKE_CFG_INTDIR} + +          DEPENDS  +            lleventhost  +            ${EVENT_HOST_SCRIPTS} +            ${CMAKE_CURRENT_SOURCE_DIR}/event_host_manifest.py) + +      add_custom_target(package ALL  +          DEPENDS  +            ${CMAKE_CFG_INTDIR}/touched.bat +            ${CMAKE_CURRENT_SOURCE_DIR}/event_host.tar.bz2)        add_dependencies(package windows-updater windows-crash-logger) + +      endif (PACKAGE)  endif (WINDOWS) | 
