[gnome-control-center/wip/inigomartinez/meson: 1/6] build: Move libgd and gvc modules to subprojects
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/inigomartinez/meson: 1/6] build: Move libgd and gvc modules to subprojects
- Date: Tue, 12 Sep 2017 17:14:54 +0000 (UTC)
commit 1f36555e19b84cbf07e526ec39762927815b4f32
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Thu Jul 20 14:02:25 2017 +0200
build: Move libgd and gvc modules to subprojects
In order to share the libgd and gvc modules between autotools and
meson, this patch moves their directories to subprojects
directory and updates autotools.
https://bugzilla.gnome.org/show_bug.cgi?id=785414
.gitmodules | 8 ++++----
Makefile.am | 6 +++---
autogen.sh | 2 +-
configure.ac | 6 +++---
panels/online-accounts/Makefile.am | 4 ++--
panels/region/Makefile.am | 4 ++--
panels/sound/Makefile.am | 16 ++++++++--------
panels/user-accounts/Makefile.am | 18 +++++++++---------
po/POTFILES.in | 4 ++--
po/POTFILES.skip | 2 +-
search-provider/Makefile.am | 2 +-
shell/Makefile.am | 4 ++--
shell/alt/Makefile.am | 4 ++--
{panels/sound => subprojects}/gvc | 0
libgd => subprojects/libgd | 0
15 files changed, 40 insertions(+), 40 deletions(-)
---
diff --git a/.gitmodules b/.gitmodules
index f096bd7..7dfb453 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,7 +1,7 @@
-[submodule "panels/sound/gvc"]
- path = panels/sound/gvc
+[submodule "subprojects/gvc"]
+ path = subprojects/gvc
url = git://git.gnome.org/libgnome-volume-control
-[submodule "libgd"]
- path = libgd
+[submodule "subprojects/libgd"]
+ path = subprojects/libgd
url = git://git.gnome.org/libgd
diff --git a/Makefile.am b/Makefile.am
index 0e8ceec..500bff5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,10 +1,10 @@
-ACLOCAL_AMFLAGS = -I m4 -I libgd ${ACLOCAL_FLAGS}
+ACLOCAL_AMFLAGS = -I m4 -I subprojects/gvc -I subprojects/libgd ${ACLOCAL_FLAGS}
-SUBDIRS = libgd po panels shell search-provider
+SUBDIRS = subprojects/gvc subprojects/libgd po panels shell search-provider
if BUILD_DOCUMENTATION
SUBDIRS += man
endif
-DIST_SUBDIRS = libgd po panels shell man search-provider
+DIST_SUBDIRS = subprojects/gvc subprojects/libgd po panels shell man search-provider
MAINTAINERCLEANFILES = \
$(srcdir)/INSTALL \
diff --git a/autogen.sh b/autogen.sh
index 268b3eb..1428add 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,7 +4,7 @@
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
-ACLOCAL_FLAGS="-I libgd $ACLOCAL_FLAGS"
+ACLOCAL_FLAGS="-I subprojects/gvc -I subprojects/libgd $ACLOCAL_FLAGS"
(test -f $srcdir/configure.ac \
&& test -f $srcdir/autogen.sh \
diff --git a/configure.ac b/configure.ac
index 666a9c0..c4c520c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -115,7 +115,7 @@ COMMON_MODULES="gtk+-3.0 >= $GTK_REQUIRED_VERSION
gio-unix-2.0
gsettings-desktop-schemas >= $SCHEMAS_REQUIRED_VERSION"
-LIBGD_INIT([_view-common static])
+LIBGD_INIT([_view-common static],[subprojects/libgd])
PKG_CHECK_MODULES(LIBLANGUAGE, $COMMON_MODULES gnome-desktop-3.0 fontconfig)
PKG_CHECK_MODULES(LIBSHORTCUTS, $COMMON_MODULES x11)
@@ -483,7 +483,6 @@ panels/search/gnome-search-panel.desktop.in
panels/sharing/Makefile
panels/sharing/gnome-sharing-panel.desktop.in
panels/sound/Makefile
-panels/sound/gvc/Makefile
panels/sound/data/Makefile
panels/sound/data/gnome-sound-panel.desktop.in
panels/sound/data/symbolic-icons/Makefile
@@ -558,7 +557,8 @@ panels/wacom/Makefile
panels/wacom/calibrator/Makefile
panels/wacom/gnome-wacom-panel.desktop.in
po/Makefile.in
-libgd/Makefile
+subprojects/gvc/Makefile
+subprojects/libgd/Makefile
search-provider/Makefile
shell/appdata/Makefile
shell/alt/Makefile
diff --git a/panels/online-accounts/Makefile.am b/panels/online-accounts/Makefile.am
index 45732f6..ed553f5 100644
--- a/panels/online-accounts/Makefile.am
+++ b/panels/online-accounts/Makefile.am
@@ -5,7 +5,7 @@ SUBDIRS = icons
AM_CPPFLAGS = \
$(PANEL_CFLAGS) \
$(ONLINE_ACCOUNTS_PANEL_CFLAGS) \
- -I$(top_srcdir)/libgd \
+ -I$(top_srcdir)/subprojects/libgd \
-DGNOMELOCALEDIR="\"$(datadir)/locale\"" \
$(NULL)
@@ -23,7 +23,7 @@ libonline_accounts_la_SOURCES = \
libonline_accounts_la_LIBADD = \
$(PANEL_LIBS) \
$(ONLINE_ACCOUNTS_PANEL_LIBS) \
- $(top_builddir)/libgd/libgd.la \
+ $(top_builddir)/subprojects/libgd/libgd.la \
$(NULL)
libonline_accounts_la_LDFLAGS = $(PANEL_LDFLAGS)
diff --git a/panels/region/Makefile.am b/panels/region/Makefile.am
index b463594..bdef769 100644
--- a/panels/region/Makefile.am
+++ b/panels/region/Makefile.am
@@ -5,7 +5,7 @@ AM_CPPFLAGS = \
$(PANEL_CFLAGS) \
$(REGION_PANEL_CFLAGS) \
-I$(srcdir)/../common/ \
- -I$(top_srcdir)/libgd/ \
+ -I$(top_srcdir)/subprojects/libgd/ \
$(NULL)
noinst_LTLIBRARIES = libregion.la
@@ -31,7 +31,7 @@ libregion_la_SOURCES = \
libregion_la_LIBADD = \
$(PANEL_LIBS) \
$(REGION_PANEL_LIBS) \
- $(top_builddir)/libgd/libgd.la \
+ $(top_builddir)/subprojects/libgd/libgd.la \
$(builddir)/../common/liblanguage.la
resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies
$(srcdir)/region.gresource.xml)
diff --git a/panels/sound/Makefile.am b/panels/sound/Makefile.am
index 709007f..fb66d37 100644
--- a/panels/sound/Makefile.am
+++ b/panels/sound/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = data gvc
+SUBDIRS = data
# This is used in PANEL_CFLAGS
cappletname = sound
@@ -7,7 +7,7 @@ NULL =
noinst_LTLIBRARIES = libsound.la libgvcgtk.la
AM_CPPFLAGS = \
- -I$(srcdir)/gvc/ \
+ -I$(top_srcdir)/subprojects/gvc/ \
$(PANEL_CFLAGS) \
$(SOUND_PANEL_CFLAGS) \
-DLOCALE_DIR=\""$(datadir)/locale"\" \
@@ -26,12 +26,12 @@ libgvcgtk_la_SOURCES = \
gvc-channel-bar.c \
$(NULL)
-libsound_la_LIBADD = \
- gvc/libgvc.la \
- libgvcgtk.la \
- $(PANEL_LIBS) \
- $(SOUND_PANEL_LIBS) \
- $(LIBM) \
+libsound_la_LIBADD = \
+ $(top_builddir)/subprojects/gvc/libgvc.la \
+ libgvcgtk.la \
+ $(PANEL_LIBS) \
+ $(SOUND_PANEL_LIBS) \
+ $(LIBM) \
$(NULL)
libsound_la_LDFLAGS = \
diff --git a/panels/user-accounts/Makefile.am b/panels/user-accounts/Makefile.am
index 4ef359a..bfa7821 100644
--- a/panels/user-accounts/Makefile.am
+++ b/panels/user-accounts/Makefile.am
@@ -12,7 +12,7 @@ AM_CPPFLAGS = \
-DHAVE_LIBPWQUALITY \
-I$(srcdir)/../common/ \
-I$(srcdir)/../../shell/ \
- -I$(top_srcdir)/libgd/ \
+ -I$(top_srcdir)/subprojects/libgd/ \
$(PANEL_CFLAGS) \
$(USER_ACCOUNTS_PANEL_CFLAGS)
@@ -60,14 +60,14 @@ libuser_accounts_la_SOURCES = \
um-cell-renderer-user-image.c \
$(BUILT_SOURCES)
-libuser_accounts_la_LIBADD = \
- $(PANEL_LIBS) \
- $(USER_ACCOUNTS_PANEL_LIBS) \
- $(builddir)/../common/liblanguage.la \
- -lpwquality \
- -lcrypt \
- $(LIBM) \
- $(top_builddir)/libgd/libgd.la
+libuser_accounts_la_LIBADD = \
+ $(PANEL_LIBS) \
+ $(USER_ACCOUNTS_PANEL_LIBS) \
+ $(builddir)/../common/liblanguage.la \
+ -lpwquality \
+ -lcrypt \
+ $(LIBM) \
+ $(top_builddir)/subprojects/libgd/libgd.la
if BUILD_CHEESE
libuser_accounts_la_LIBADD += $(CHEESE_LIBS)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5b1500f..4fb6b61 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -183,8 +183,6 @@ panels/sound/data/sounds/gnome-sounds-default.xml.in.in
panels/sound/gvc-balance-bar.c
panels/sound/gvc-channel-bar.c
panels/sound/gvc-combo-box.c
-# Please do not remove this file from POTFILES.in. Run "git submodule init && git submodule update" to get
it.
-panels/sound/gvc/gvc-mixer-control.c
panels/sound/gvc-mixer-dialog.c
panels/sound/gvc-sound-theme-chooser.c
panels/sound/gvc-speaker-test.c
@@ -235,3 +233,5 @@ shell/gnome-control-center.desktop.in.in
shell/hostname-helper.c
[type: gettext/glade]shell/panel-list.ui
[type: gettext/glade]shell/window.ui
+# Please do not remove this file from POTFILES.in. Run "git submodule init && git submodule update" to get
it.
+subprojects/gvc/gvc-mixer-control.c
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index 8a6c51d..cd69a93 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1,7 +1,7 @@
# List of source files that should *not* be translated.
# Please keep this file sorted alphabetically.
egg-list-box/egg-flow-box.c
-libgd/libgd/gd-header-bar.c
+subprojects/libgd/libgd/gd-header-bar.c
panels/background/gnome-background-panel.desktop.in
panels/bluetooth/gnome-bluetooth-panel.desktop.in
panels/color/gnome-color-panel.desktop.in
diff --git a/search-provider/Makefile.am b/search-provider/Makefile.am
index 5b7dd1f..9330ff9 100644
--- a/search-provider/Makefile.am
+++ b/search-provider/Makefile.am
@@ -17,7 +17,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir) \
$(SHELL_CFLAGS) \
-I$(top_srcdir)/panels/common/ \
- -I$(top_srcdir)/libgd
+ -I$(top_srcdir)/subprojects/libgd
libexec_PROGRAMS = gnome-control-center-search-provider
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 8099330..9d6f7e0 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -12,7 +12,7 @@ AM_CPPFLAGS = \
$(WACOM_PANEL_CFLAGS) \
-I$(top_srcdir)/panels/common/ \
-I$(top_srcdir)/shell/alt \
- -I$(top_srcdir)/libgd
+ -I$(top_srcdir)/subprojects/libgd
all-local: check-local
@@ -76,7 +76,7 @@ gnome_control_center_LDADD = \
libshell.la \
$(SHELL_LIBS) \
$(CHEESE_LIBS) \
- $(top_builddir)/libgd/libgd.la \
+ $(top_builddir)/subprojects/libgd/libgd.la \
$(top_builddir)/panels/common/liblanguage.la \
$(top_builddir)/panels/common/libdevice.la \
$(top_builddir)/panels/background/libbackground.la \
diff --git a/shell/alt/Makefile.am b/shell/alt/Makefile.am
index d740d51..a0da46a 100644
--- a/shell/alt/Makefile.am
+++ b/shell/alt/Makefile.am
@@ -7,7 +7,7 @@ AM_CPPFLAGS = \
$(WACOM_PANEL_CFLAGS) \
-I$(top_srcdir)/shell \
-I$(top_srcdir)/panels/common \
- -I$(top_srcdir)/libgd
+ -I$(top_srcdir)/subprojects/libgd
noinst_LTLIBRARIES = libshell_alt.la
@@ -15,7 +15,7 @@ libshell_alt_la_SOURCES = \
cc-window.c \
cc-window.h
-libshell_alt_la_LIBADD = $(top_builddir)/libgd/libgd.la
+libshell_alt_la_LIBADD = $(top_builddir)/subprojects/libgd/libgd.la
test:
diff --git a/panels/sound/gvc b/subprojects/gvc
similarity index 100%
rename from panels/sound/gvc
rename to subprojects/gvc
diff --git a/libgd b/subprojects/libgd
similarity index 100%
rename from libgd
rename to subprojects/libgd
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]