Mac OS: Enhanced the application bundle for the editor demo

so it is launchable by dropping any file on its icon. This is
done both for the configure/make and the CMake build systems
(the Xcode build system did that already).
The editor demo is the only one calling fl_open_callback().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2015-12-29 16:41:15 +00:00
parent fdd1369292
commit 8ac33d6b71
3 changed files with 5 additions and 1 deletions

View File

@ -132,6 +132,9 @@ macro(CREATE_EXAMPLE NAME SOURCES LIBRARIES)
endif(NOT ${tname} STREQUAL "demo")
set_target_properties(${tname} PROPERTIES RESOURCE ${RESOURCE_PATH})
endif(APPLE AND DEFINED RESOURCE_PATH)
if(${tname} STREQUAL "editor")
set_target_properties("editor" PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/ide/Xcode4/plists/editor-Info.plist" )
endif(${tname} STREQUAL "editor")
target_link_libraries(${tname} ${LIBRARIES})

View File

@ -22,7 +22,7 @@
</dict>
</array>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<string>editor</string>
<key>CFBundleGetInfoString</key>
<string>Part of the FLTK library. Please visit www.fltk.org.</string>
<key>CFBundleIdentifier</key>

View File

@ -342,6 +342,7 @@ editor$(EXEEXT): editor.o
echo Linking $@...
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) editor.o -o $@ $(LINKFLTKIMG) $(LDLIBS)
$(OSX_ONLY) ../fltk-config --post $@
$(OSX_ONLY) cp -f ../ide/Xcode4/plists/editor-Info.plist editor.app/Contents/Info.plist
fast_slow$(EXEEXT): fast_slow.o
fast_slow.cxx: fast_slow.fl ../fluid/fluid$(EXEEXT)