App bundle is now built in install-dir
[moonshot-ui.git] / Makefile.am
index c80c0e5..4af7a27 100644 (file)
@@ -52,7 +52,7 @@ src_moonshot_webp_SOURCES = \
         src/moonshot-webp-parser.vala \
         src/moonshot-id.vala
 
-src_moonshot_VALAFLAGS = --pkg gdk-2.0 --pkg gtk+-2.0 $(AM_VALAFLAGS)
+src_moonshot_VALAFLAGS = --pkg gdk-2.0 --pkg gtk+-2.0 --pkg gee-1.0 $(AM_VALAFLAGS)
 src_moonshot_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
 src_moonshot_LDADD = $(moonshot_LIBS)
 
@@ -66,7 +66,7 @@ libmoonshot_libmoonshot_la_LDFLAGS = -no-undefined
 
 src_moonshot_CFLAGS = -mwindows
 src_moonshot_webp_CFLAGS = -mwindows
-
+    
 AM_CPPFLAGS += -DOS_WIN32
 AM_VALAFLAGS += --define=OS_WIN32
 
@@ -79,6 +79,13 @@ libmoonshot/libmoonshot.lib: libmoonshot/libmoonshot.def
 
 endif
 
+if  OS_MACOS
+
+AM_CPPFLAGS += -DOS_MACOS
+AM_VALAFLAGS += --define=OS_MACOS
+
+endif
+
 if OS_LINUX
 
 ## Installing mime type data
@@ -211,3 +218,29 @@ moonshot.msi: windows/app.wxs windows/config.wxi $(bin_PROGRAMS)
        "${WIX_LIGHT}" -b ${prefix} -b ${prefix}/mingw -o moonshot.msi app.wixobj
 
 endif
+
+if  OS_MACOS
+## Mac-specific targets
+
+## 1. Icons. 
+
+icons:
+       mkdir -p share/icons
+       cp mac/icons/process-stop.png share/icons
+       cp mac/icons/edit-find.png share/icons
+       cp mac/icons/avatar-default.png share/icons
+       
+## 2. App bundle
+## gtk-app-bundler must be installed
+app-bundle:
+       gtk-mac-bundler ./mac/moonshot-ui.bundle
+
+moonshot-ui/
+
+## 3: Installer Package
+installer:
+
+## 4: Disk Image
+disk-image:
+
+endif