kludge for darwin builds on el capitan

Wed, 17 Feb 2016 16:46:40 -0800

author
JJ Linden <jj@lindenlab.com>
date
Wed, 17 Feb 2016 16:46:40 -0800
changeset 48912
867724594e3e
parent 48558
f87429781746
child 48913
45d214139f46

kludge for darwin builds on el capitan

indra/llcorehttp/CMakeLists.txt file | annotate | diff | revisions
     1.1 --- a/indra/llcorehttp/CMakeLists.txt	Fri Jan 15 14:19:20 2016 -0500
     1.2 +++ b/indra/llcorehttp/CMakeLists.txt	Wed Feb 17 16:46:40 2016 -0800
     1.3 @@ -141,6 +141,43 @@
     1.4                            "${CMAKE_CURRENT_SOURCE_DIR}/tests/test_llcorehttp_peer.py"
     1.5                            )
     1.6  
     1.7 +if (DARWIN)
     1.8 +  # Path inside the app bundle where we'll need to copy libraries
     1.9 +  set(LL_TEST_DESTINATION_DIR
    1.10 +    ${CMAKE_SOURCE_DIR}/../build-darwin-i386/sharedlibs/Resources
    1.11 +  )
    1.12 +
    1.13 +  # Create the Contents/Resources directory
    1.14 +  add_custom_command(
    1.15 +    TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD
    1.16 +    COMMAND ${CMAKE_COMMAND}
    1.17 +    ARGS
    1.18 +      -E
    1.19 +      make_directory
    1.20 +      ${LL_TEST_DESTINATION_DIR}
    1.21 +    COMMENT "Creating Resources directory in app bundle."
    1.22 +  )
    1.23 +  
    1.24 +  # Copy the required libraries to the package app
    1.25 +  add_custom_command(TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD
    1.26 +    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../build-darwin-i386/packages/lib/release/libapr-1.0.dylib ${LL_TEST_DESTINATION_DIR}
    1.27 +    DEPENDS ${CMAKE_SOURCE_DIR}/../build-darwin-i386/packages/lib/release/libapr-1.0.dylib
    1.28 +  )
    1.29 +  add_custom_command(TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD
    1.30 +    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../build-darwin-i386/packages/lib/release/libaprutil-1.0.dylib ${LL_TEST_DESTINATION_DIR}
    1.31 +    DEPENDS ${CMAKE_SOURCE_DIR}/../build-darwin-i386/packages/lib/release/libaprutil-1.0.dylib
    1.32 +  )
    1.33 +  add_custom_command(TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD
    1.34 +    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../build-darwin-i386/packages/lib/release/libexception_handler.dylib ${LL_TEST_DESTINATION_DIR}
    1.35 +    DEPENDS ${CMAKE_SOURCE_DIR}/../build-darwin-i386/packages/lib/release/libexception_handler.dylib
    1.36 +  )
    1.37 +  add_custom_command(TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD
    1.38 +    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../build-darwin-i386/packages/lib/release/libexpat.1.5.2.dylib ${LL_TEST_DESTINATION_DIR}
    1.39 +    DEPENDS ${CMAKE_SOURCE_DIR}/../build-darwin-i386/packages/lib/release/libexpat.1.5.2.dylib
    1.40 +  )
    1.41 +
    1.42 +endif (DARWIN)
    1.43 +
    1.44    #
    1.45    # Example Programs
    1.46    #

mercurial