[gnome-control-center/wip/inigomartinez/meson: 1/2] build: Move libgd and gvc modules to subprojects



commit dd6a59c93cc9af98afd8c806f6536dd4090838d0
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Mon Jan 15 11:59:57 2018 +0100

    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                   |    3 ++-
 search-provider/Makefile.am        |    2 +-
 shell/Makefile.am                  |    4 ++--
 {panels/sound => subprojects}/gvc  |    0
 libgd => subprojects/libgd         |    0
 14 files changed, 39 insertions(+), 38 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 931625d..0e98980 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 = data libgd po panels shell search-provider
+SUBDIRS = data subprojects/gvc subprojects/libgd po panels shell search-provider
 if BUILD_DOCUMENTATION
 SUBDIRS += man
 endif
-DIST_SUBDIRS = data libgd po panels shell man search-provider
+DIST_SUBDIRS = data 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 a48b7d9..d9da753 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)
@@ -485,7 +485,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
@@ -559,11 +558,12 @@ panels/wacom/Makefile
 panels/wacom/calibrator/Makefile
 panels/wacom/gnome-wacom-panel.desktop.in
 po/Makefile.in
-libgd/Makefile
 search-provider/Makefile
 shell/appdata/Makefile
 shell/Makefile
 shell/gnome-control-center.desktop.in
+subprojects/gvc/Makefile
+subprojects/libgd/Makefile
 man/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 aa8e911..396577d 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -180,8 +180,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
@@ -231,3 +229,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..b8c40bd 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1,7 +1,6 @@
 # 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
 panels/background/gnome-background-panel.desktop.in
 panels/bluetooth/gnome-bluetooth-panel.desktop.in
 panels/color/gnome-color-panel.desktop.in
@@ -61,3 +60,5 @@ sub/panels/universal-access/gnome-universal-access-panel.desktop.in
 sub/panels/user-accounts/data/gnome-user-accounts-panel.desktop.in
 sub/panels/wacom/gnome-wacom-panel.desktop.in
 sub/shell/gnome-control-center.desktop.in
+
+subprojects/libgd/libgd/gd-header-bar.c
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 371d78a..7f274a1 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -11,7 +11,7 @@ AM_CPPFLAGS =                                 \
        $(CHEESE_CFLAGS)                        \
        $(WACOM_PANEL_CFLAGS)                   \
        -I$(top_srcdir)/panels/common/          \
-       -I$(top_srcdir)/libgd
+       -I$(top_srcdir)/subprojects/libgd
 
 all-local: check-local
 
@@ -63,7 +63,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/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]