Permalink
Browse files

Add a little OS X App that launches the Slider example, allowing to l…

…aunch it multiple times.
  • Loading branch information...
1 parent 9371931 commit 1ad76b7935c91e32a18a6aee334ac13625522afb @radarsat1 radarsat1 committed Feb 18, 2011
Showing with 24 additions and 1 deletion.
  1. +1 −1 Makefile.am
  2. +10 −0 build_darwin_binaries.sh
  3. +2 −0 configure.ac
  4. +1 −0 extra/Makefile.am
  5. +2 −0 extra/osx/Makefile.am
  6. +8 −0 extra/osx/libmapper_slider_launcher.py
View
@@ -1,4 +1,4 @@
-SUBDIRS = src include test examples @SWIG@ @DOXYGEN@
+SUBDIRS = src include test examples @SWIG@ @DOXYGEN@ extra
EXTRA_DIST = libtool ltmain.sh autogen.sh libmapper.pc.in
View
@@ -196,6 +196,16 @@ function make_bundles()
info_plist $APP/Contents/Info.plist libmapper_Slider_Example tkgui.py
cp -v ../icons/libmapper_doc.icns $APP/Contents/Resources/
+ APP=bundles/libmapper_Slider_Launcher.app
+ mkdir -v $APP
+ mkdir -v $APP/Contents
+ mkdir -v $APP/Contents/MacOS
+ mkdir -v $APP/Contents/Resources
+ cp -v i386/libmapper-$LIBMAPPER_VERSION/extra/osx/libmapper_slider_launcher.py $APP/Contents/MacOS/
+ echo 'APPL????' >$APP/Contents/PkgInfo
+ info_plist $APP/Contents/Info.plist libmapper_Slider_Launcher libmapper_slider_launcher.py
+ cp -v ../icons/libmapper_doc.icns $APP/Contents/Resources/
+
FRAMEWORK=bundles/mapper.framework
mkdir -v $FRAMEWORK
mkdir -v $FRAMEWORK/Contents
View
@@ -189,6 +189,8 @@ AC_CONFIG_FILES([
examples/pwm_synth/Makefile
examples/py_tk_gui/Makefile
examples/py_tk_gui/setup.py
+ extra/Makefile
+ extra/osx/Makefile
libmapper.pc
])
AC_OUTPUT
View
@@ -0,0 +1 @@
+SUBDIRS=osx
View
@@ -0,0 +1,2 @@
+
+EXTRA_DIST=libmapper_slider_launcher.py
@@ -0,0 +1,8 @@
+#!/usr/bin/env python
+
+import os, sys
+
+slider_example = (os.path.abspath(os.path.dirname(sys.argv[0])+"/../../..")
+ + "/libmapper_Slider_Example.app")
+
+os.system("open -n "+slider_example)

0 comments on commit 1ad76b7

Please sign in to comment.