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



commit 0e8d0da15c211578593a922b7f446ca7b0c8abfc
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Thu Jul 20 14:02:25 2017 +0200

    build: Moved libgd and gvc modules to subprojects
    
    In order to share the libgd and gvc modules between autotools and
    meson, directories have been moved and autotools configuration has
    been updated.

 .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.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
 14 files changed, 38 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 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 116b711..2d35fae 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
@@ -555,7 +554,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.skip b/po/POTFILES.skip
index 6c8905b..93581bd 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 6af3199..01a06ed 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
 
@@ -74,7 +74,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 8e84811..fc08d93 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
 
@@ -17,7 +17,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]