[gtk+/wip/actor: 4/24] actors: Add skeleton build logic for actors directory
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/actor: 4/24] actors: Add skeleton build logic for actors directory
- Date: Sat, 5 Jan 2013 19:22:49 +0000 (UTC)
commit d85dacd40c41e25e12546d775ad931b895bbbcd1
Author: Benjamin Otte <otte redhat com>
Date: Sun Sep 23 17:35:22 2012 +0200
actors: Add skeleton build logic for actors directory
Copyright is added from ClutterActor, as that's where I intend to grab a
bunch of code from.
configure.ac | 1 +
gtk/Makefile.am | 6 ++-
gtk/actors/Makefile.am | 70 ++++++++++++++++++++++++++++++++++++++++++
gtk/actors/gtkactor.c | 22 +++++++++++++
gtk/actors/gtkactorprivate.h | 25 +++++++++++++++
5 files changed, 122 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 14d1c26..223a665 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1787,6 +1787,7 @@ gtk/makefile.msc
gtk/gtkversion.h
gtk/gtk-win32.rc
gtk/a11y/Makefile
+gtk/actors/Makefile
gtk/tests/Makefile
libgail-util/Makefile
modules/Makefile
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 9322eb3..623ae02 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -16,7 +16,7 @@ else
GTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f"
endif
-SUBDIRS = a11y . tests
+SUBDIRS = a11y actors . tests
if HAVE_PAPI_CUPS
GTK_PRINT_BACKENDS=file,papi,cups
@@ -108,11 +108,13 @@ libgtkincludedir = $(includedir)/gtk-3.0/gtk
libadd = \
$(top_builddir)/gdk/libgdk-3.la \
$(top_builddir)/gtk/a11y/libgtka11y.la \
+ $(top_builddir)/gtk/actors/libgtkactors.la \
$(GMODULE_LIBS) \
$(GTK_DEP_LIBS)
deps = \
$(top_builddir)/gdk/libgdk-3.la \
- $(top_builddir)/gtk/a11y/libgtka11y.la
+ $(top_builddir)/gtk/a11y/libgtka11y.la \
+ $(top_builddir)/gtk/actors/libgtkactors.la
# libtool stuff: set version and export symbols for resolving
# since automake doesn't support conditionalized libsomething_la_LDFLAGS
diff --git a/gtk/actors/Makefile.am b/gtk/actors/Makefile.am
new file mode 100644
index 0000000..e0d0542
--- /dev/null
+++ b/gtk/actors/Makefile.am
@@ -0,0 +1,70 @@
+include $(top_srcdir)/Makefile.decl
+
+noinst_LTLIBRARIES = libgtkactors.la
+
+gtkactors_c_sources = \
+ gtkactor.c
+
+gtkactors_private_h_sources = \
+ gtkactorprivate.h
+
+libgtkactors_la_SOURCES = \
+ $(gtkactors_c_sources) \
+ $(gtkactors_private_h_sources)
+
+libgtkactors_la_CPPFLAGS = \
+ -I$(top_srcdir) \
+ -I$(top_srcdir)/gdk \
+ -I$(top_builddir)/gdk \
+ -I$(top_srcdir)/gtk \
+ -I$(top_builddir)/gtk \
+ -DGTK_VERSION=\"$(GTK_VERSION)\"\
+ -DGTK_COMPILATION \
+ $(AM_CPPFLAGS)
+
+libgtkactors_la_CFLAGS = \
+ $(GTK_DEP_CFLAGS) \
+ $(GTK_DEBUG_FLAGS) \
+ $(AM_CFLAGS)
+
+libgtkactors_la_LIBADD = \
+ $(GTK_DEP_LIBS) \
+ $(INTLLIBS)
+
+libgtkactors_la_LDFLAGS = \
+ $(LDFLAGS)
+
+dist-hook: ../../build/win32/vs9/libgtkactors.vcproj ../../build/win32/vs10/libgtkactors.vcxproj ../../build/win32/vs10/libgtkactors.vcxproj.filters
+
+../../build/win32/vs9/libgtkactors.vcproj: ../../build/win32/vs9/libgtkactors.vcprojin
+ for F in $(libgtkactors_la_SOURCES); do \
+ case $$F in \
+ *.c) echo ' <File RelativePath="..\..\..\gtk\a11y\'$$F'" />' \
+ ;; \
+ esac; \
+ done >libgtkactors.sourcefiles
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs9/libgtkactors.vcprojin >$@
+ rm libgtkactors.sourcefiles
+
+../../build/win32/vs10/libgtkactors.vcxproj: ../../build/win32/vs10/libgtkactors.vcxprojin
+ for F in $(libgtkactors_la_SOURCES); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\gtk\a11y\'$$F'" />' \
+ ;; \
+ esac; \
+ done >libgtkactors.vs10.sourcefiles
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs10/libgtkactors.vcxprojin >$@
+ rm libgtkactors.vs10.sourcefiles
+
+../../build/win32/vs10/libgtkactors.vcxproj.filters: ../../build/win32/vs10/libgtkactors.vcxproj.filtersin
+ for F in $(libgtkactors_la_SOURCES); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\gtk\a11y\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
+ ;; \
+ esac; \
+ done >libgtkactors.vs10.sourcefiles.filters
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs10/libgtkactors.vcxproj.filtersin >$@
+ rm libgtkactors.vs10.sourcefiles.filters
+
+
+-include $(top_srcdir)/git.mk
diff --git a/gtk/actors/gtkactor.c b/gtk/actors/gtkactor.c
new file mode 100644
index 0000000..4e9de6c
--- /dev/null
+++ b/gtk/actors/gtkactor.c
@@ -0,0 +1,22 @@
+/*
+ * Copyright  2006, 2007, 2008 OpenedHand Ltd
+ * Copyright  2009, 2010 Intel Corp
+ * Copyright  2012 Red Hat Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors: Benjamin Otte <otte gnome org>
+ */
+
+#include "config.h"
diff --git a/gtk/actors/gtkactorprivate.h b/gtk/actors/gtkactorprivate.h
new file mode 100644
index 0000000..a058a6b
--- /dev/null
+++ b/gtk/actors/gtkactorprivate.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright  2006, 2007, 2008 OpenedHand Ltd
+ * Copyright  2009, 2010 Intel Corp
+ * Copyright  2012 Red Hat Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors: Benjamin Otte <otte gnome org>
+ */
+
+#ifndef __GTK_ACTOR_PRIVATE_H__
+#define __GTK_ACTOR_PRIVATE_H__
+
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]