diff options
Diffstat (limited to 'indra/llplugin/slplugin')
| -rw-r--r-- | indra/llplugin/slplugin/CMakeLists.txt | 17 | ||||
| -rw-r--r-- | indra/llplugin/slplugin/slplugin.cpp | 6 | 
2 files changed, 19 insertions, 4 deletions
diff --git a/indra/llplugin/slplugin/CMakeLists.txt b/indra/llplugin/slplugin/CMakeLists.txt index 4df3e306cb..38f4c92b09 100644 --- a/indra/llplugin/slplugin/CMakeLists.txt +++ b/indra/llplugin/slplugin/CMakeLists.txt @@ -57,10 +57,25 @@ elseif (DARWIN)      COMMAND mkdir      ARGS        -p -      ${CMAKE_CURRENT_BINARY_DIR}/$<IF:$<BOOL:${LL_GENERATOR_IS_MULTI_CONFIG}>,$<CONFIG>,>/SLPlugin.app/Contents/Resources +      ${CMAKE_CURRENT_BINARY_DIR}/$<IF:$<BOOL:${LL_GENERATOR_IS_MULTI_CONFIG}>,$<CONFIG>,>/SLPlugin.app/Contents/Frameworks    )  endif () +if (BUILD_SHARED_LIBS) +  set_target_properties(SLPlugin PROPERTIES LINK_FLAGS_RELEASE +    "${LINK_FLAGS_RELEASE} -Wl,--allow-shlib-undefined") +endif () + +if (INSTALL) +  if (DARWIN OR WINDOWS) +    install(TARGETS ${PROJECT_NAME} DESTINATION .) +  elseif (${LINUX_DISTRO} MATCHES arch) +    install(TARGETS ${PROJECT_NAME} DESTINATION lib/${VIEWER_BINARY_NAME}) +  else () +    install(TARGETS ${PROJECT_NAME} DESTINATION libexec/${VIEWER_BINARY_NAME}) +  endif () +endif () +  if (LL_TESTS)    ll_deploy_sharedlibs_command(SLPlugin)  endif (LL_TESTS) diff --git a/indra/llplugin/slplugin/slplugin.cpp b/indra/llplugin/slplugin/slplugin.cpp index 81a27cf2e5..ae26b9d452 100644 --- a/indra/llplugin/slplugin/slplugin.cpp +++ b/indra/llplugin/slplugin/slplugin.cpp @@ -46,7 +46,7 @@ using namespace std;      #include "slplugin-objc.h"  #endif -#if LL_DARWIN || LL_LINUX +#if LL_DARWIN || LL_LINUX || __FreeBSD__      #include <signal.h>  #endif @@ -64,7 +64,7 @@ using namespace std;      Now that SLPlugin is a bundled app on the Mac, this is no longer necessary (it can just use a regular Info.plist file), but I'm leaving this comment in for posterity.  */ -#if LL_DARWIN || LL_LINUX +#if LL_DARWIN || LL_LINUX || __FreeBSD__  // Signal handlers to make crashes not show an OS dialog...  static void crash_handler(int sig)  { @@ -163,7 +163,7 @@ int main(int argc, char **argv)      // display a crash message if something bad happens. The host app will      // see the missing heartbeat and log appropriately.      initExceptionHandler(); -#elif LL_DARWIN || LL_LINUX +#elif LL_DARWIN || LL_LINUX || __FreeBSD__      if(argc < 2)      {          LL_ERRS("slplugin") << "usage: " << argv[0] << " launcher_port" << LL_ENDL;  | 
