[cheese/build-system-rewrite: 7/8] Convert src subdirectory to build non-recursively
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/build-system-rewrite: 7/8] Convert src subdirectory to build non-recursively
- Date: Sun, 16 Oct 2011 16:30:53 +0000 (UTC)
commit ac623f0a849220be9dbe24132d8b98da48545228
Author: David King <amigadave amigadave com>
Date: Sun Oct 16 14:36:37 2011 +0200
Convert src subdirectory to build non-recursively
Makefile.am | 58 +++++++++++++++++++++++++++++++++++++++++++++++-
configure.ac | 1 -
src/cheese-window.vala | 2 +-
3 files changed, 58 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 600e9fa..1dde815 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
-SUBDIRS = src po help
+SUBDIRS = po help
marshal_data = \
libcheese/cheese-marshal.c \
@@ -59,6 +59,22 @@ AM_CPPFLAGS = \
$(CHEESE_GTK_FLAGS) \
$(CHEESE_WFLAGS)
+VALAFLAGS = \
+ --thread \
+ --vapidir $(top_srcdir)/src/vapi \
+ --pkg config \
+ --pkg gtk+-3.0 \
+ --pkg gmodule-2.0 \
+ --pkg gee-1.0 \
+ --pkg clutter-1.0 \
+ --pkg clutter-gtk-1.0 \
+ --pkg gstreamer-0.10 \
+ --pkg libcanberra-gtk \
+ --pkg libcanberra \
+ --pkg eogthumbnav \
+ --pkg cheese-thumbview \
+ --pkg cheese-common
+
lib_LTLIBRARIES = libcheese.la libcheese-gtk.la
libcheese_gtk_la_CFLAGS = \
@@ -177,6 +193,41 @@ typelibdir = $(libdir)/girepository-1.0
typelib_DATA = Cheese-3.0.typelib
endif
+bin_PROGRAMS = cheese
+
+# cheese-main.vala must go at the end of the Vala sources.
+cheese_SOURCES = \
+ src/cheese-countdown.vala \
+ src/cheese-effects-manager.vala \
+ src/cheese-preferences.vala \
+ src/cheese-window.vala \
+ src/cheese-main.vala \
+ src/thumbview/cheese-thumb-view.c \
+ src/thumbview/cheese-thumbnail.c \
+ src/thumbview/eog-thumb-nav.c
+
+noinst_HEADERS = \
+ src/thumbview/cheese-thumb-view.h \
+ src/thumbview/cheese-thumbnail.h \
+ src/thumbview/eog-thumb-nav.h
+
+cheese_CPPFLAGS = \
+ $(AM_CPPFLAGS) \
+ $(CHEESE_CFLAGS) \
+ $(CHEESE_GTK_CFLAGS) \
+ -include $(top_builddir)/$(CONFIG_HEADER) \
+ -I$(top_builddir) \
+ -I$(top_srcdir)/libcheese \
+ -I$(top_srcdir)/src
+
+cheese_CFLAGS = -export-dynamic
+
+cheese_LDADD = \
+ libcheese.la \
+ libcheese-gtk.la \
+ $(CHEESE_LIBS) \
+ $(CHEESE_GTK_LIBS)
+
EXAMPLES = \
tests/cheese-test-camera \
tests/cheese-test-chooser \
@@ -374,6 +425,11 @@ dist_noinst_DATA = \
libcheese/cheese-gtk.symbols \
libcheese/cheese-marshal.list \
m4/introspection.m4 \
+ src/vapi/cheese-common.deps \
+ src/vapi/cheese-common.vapi \
+ src/vapi/cheese-thumbview.vapi \
+ src/vapi/config.vapi \
+ src/vapi/eogthumbnav.vapi
dist_noinst_SCRIPTS = \
autogen.sh
diff --git a/configure.ac b/configure.ac
index 595cb4f..2f6f908 100644
--- a/configure.ac
+++ b/configure.ac
@@ -176,7 +176,6 @@ data/cheese.pc
data/cheese-gtk.pc
data/cheese.desktop.in
help/Makefile
-src/Makefile
po/Makefile.in
])
AC_OUTPUT
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index d0c8bb5..ea7758a 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -372,7 +372,7 @@ public class Cheese.MainWindow : Gtk.Window
about_dialog = (Gtk.AboutDialog)gtk_builder.get_object ("aboutdialog");
about_dialog.set_transient_for (this);
about_dialog.set_modal (true);
- about_dialog.version = Config.VERSION;
+ about_dialog.version = Config.PACKAGE_VERSION;
about_dialog.run ();
about_dialog.hide ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]