Skip to content

Commit

Permalink
Add a custom Info.plist file for OS X. Refs #5379
Browse files Browse the repository at this point in the history
This sets the library search path for ParaView before the application
starts and allows the ParaView plugins to pick up the paraview libraries.
  • Loading branch information
martyngigg committed May 24, 2012
1 parent 6ff0eb7 commit 6989197
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Code/Mantid/Installers/MacInstaller/Info.plist.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSEnvironment</key>
<dict>
<key>DYLD_LIBRARY_PATH</key>
<string>@PARAVIEW_APP_LIB_DIR@</string>
</dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>MantidPlot</string>
<key>CFBundleGetInfoString</key>
<string></string>
<key>CFBundleIconFile</key>
<string>MantidPlot.icns</string>
<key>CFBundleIdentifier</key>
<string></string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundleName</key>
<string></string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string></string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string></string>
<key>CSResourcesFileMapped</key>
<true/>
<key>LSRequiresCarbon</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string></string>
</dict>
</plist>
10 changes: 10 additions & 0 deletions Code/Mantid/MantidPlot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,17 @@ target_link_libraries ( MantidPlot
${ZLIB_LIBRARIES}
)

###########################################################################
# Custom Info.plist file for OS X
###########################################################################
if( APPLE )
configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/../Installers/MacInstaller/Info.plist
${CMAKE_CURRENT_BINARY_DIR}/Info.plist
@ONLY )

set_target_properties( MantidPlot PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${CMAKE_CURRENT_BINARY_DIR}/Info.plist )
endif()

###########################################################################
# Entry point flag for Windows to ensure we always link to standard main
Expand Down

0 comments on commit 6989197

Please sign in to comment.