summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-11-19 19:58:02 +0000
committerChristoph Reiter <reiter.christoph@gmail.com>2019-11-19 19:58:02 +0000
commit1a87249d1aeba6d5f96ae64504c60c2308826b0d (patch)
treeea87696e27a59a5e6898ba16fce0222308ff7056
parent75475effb16707e6075ed1f6c0106b4463dc5b54 (diff)
parent656adece004d255bdbdff6d5c8ec4791458756e3 (diff)
downloadgtk+-1a87249d1aeba6d5f96ae64504c60c2308826b0d.tar.gz
Merge branch 'dont-hardcode-shared-library-3.24' into 'gtk-3-24'
Dont hardcode shared library (gtk3) See merge request GNOME/gtk!1196
-rw-r--r--.gitlab-ci.yml7
-rwxr-xr-x.gitlab-ci/test-docker-meson.sh1
-rw-r--r--gdk/meson.build28
-rw-r--r--gtk/meson.build22
-rw-r--r--libgail-util/meson.build26
-rw-r--r--testsuite/reftests/meson.build4
6 files changed, 47 insertions, 41 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0d0f9ccd47..7475b1b0ad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,7 +20,7 @@ fedora-distcheck:
script:
- bash -x ./.gitlab-ci/test-docker-autotools.sh
-fedora-meson:
+fedora-meson: &fedora-meson-defaults
stage: build
script:
- bash -x ./.gitlab-ci/test-docker-meson.sh
@@ -31,6 +31,11 @@ fedora-meson:
- "_build/meson-logs"
- "_build/testsuite/reftests/output"
+fedora-meson-staticlibs:
+ variables:
+ EXTRA_MESON_FLAGS: "-Ddefault_library=both"
+ <<: *fedora-meson-defaults
+
msys2-mingw32-meson:
variables:
MSYSTEM: "MINGW32"
diff --git a/.gitlab-ci/test-docker-meson.sh b/.gitlab-ci/test-docker-meson.sh
index b7ac83e091..df3ed90ef8 100755
--- a/.gitlab-ci/test-docker-meson.sh
+++ b/.gitlab-ci/test-docker-meson.sh
@@ -16,6 +16,7 @@ meson \
-Dbroadway_backend=true \
-Dxinerama=yes \
-Dprint_backends="file,lpr,test,cloudprint,cups" \
+ ${EXTRA_MESON_FLAGS:-} \
_build
cd _build
diff --git a/gdk/meson.build b/gdk/meson.build
index fd234917cc..4bb1bf2b6c 100644
--- a/gdk/meson.build
+++ b/gdk/meson.build
@@ -286,20 +286,20 @@ if cc.get_id() == 'msvc'
gdk_link_args += [ '-export:gdk_win32_display_manager_get_type' ]
endif
-libgdk = shared_library('gdk-3',
- soversion: gtk_soversion,
- version: gtk_library_version,
- sources: [gdk_sources, gdk_backends_gen_headers, gdkconfig],
- dependencies: gdk_deps,
- include_directories: [confinc, gdkx11_inc, wlinc],
- c_args: [
- '-DGDK_COMPILATION',
- '-DG_LOG_DOMAIN="Gdk"',
- ] + common_cflags,
- link_whole: gdk_backends,
- link_args: gdk_link_args,
- darwin_versions : gtk_osxversions,
- install: true)
+libgdk = library('gdk-3',
+ soversion: gtk_soversion,
+ version: gtk_library_version,
+ sources: [gdk_sources, gdk_backends_gen_headers, gdkconfig],
+ dependencies: gdk_deps,
+ include_directories: [confinc, gdkx11_inc, wlinc],
+ c_args: [
+ '-DGDK_COMPILATION',
+ '-DG_LOG_DOMAIN="Gdk"',
+ ] + common_cflags,
+ link_whole: gdk_backends,
+ link_args: gdk_link_args,
+ darwin_versions : gtk_osxversions,
+ install: true)
gdk_dep_sources = [gdkconfig, gdkenum_h]
# Introspection
diff --git a/gtk/meson.build b/gtk/meson.build
index 573b65491c..5a0b1547d8 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -964,17 +964,17 @@ foreach l: immodules
endforeach
# Library
-libgtk = shared_library('gtk-3',
- soversion: gtk_soversion,
- version: gtk_library_version,
- sources: [typefuncs, gtk_sources, gtkmarshal_h, gtkprivatetypebuiltins_h],
- c_args: gtk_cargs + common_cflags,
- include_directories: [confinc, gdkinc, gtkinc],
- dependencies: gtk_deps + [libgdk_dep] + gtk_included_im_deps,
- link_with: libgdk,
- link_args: common_ldflags,
- darwin_versions : gtk_osxversions,
- install: true)
+libgtk = library('gtk-3',
+ soversion: gtk_soversion,
+ version: gtk_library_version,
+ sources: [typefuncs, gtk_sources, gtkmarshal_h, gtkprivatetypebuiltins_h],
+ c_args: gtk_cargs + common_cflags,
+ include_directories: [confinc, gdkinc, gtkinc],
+ dependencies: gtk_deps + [libgdk_dep] + gtk_included_im_deps,
+ link_with: libgdk,
+ link_args: common_ldflags,
+ darwin_versions : gtk_osxversions,
+ install: true)
# Introspection
if build_gir
diff --git a/libgail-util/meson.build b/libgail-util/meson.build
index ffce5788ea..940ea40ca9 100644
--- a/libgail-util/meson.build
+++ b/libgail-util/meson.build
@@ -17,16 +17,16 @@ if cc.get_id() == 'msvc'
gailutil_link_args += '-def:@0@/gailutil.def'.format(meson.current_source_dir())
endif
-libgailutil = shared_library('gailutil-3',
- soversion: gtk_soversion,
- version: gail_library_version,
- darwin_versions: ['1', '1.0'],
- sources: [gailutil_sources],
- dependencies: libgtk_dep,
- include_directories: [confinc, gtkinc],
- c_args: [
- '-DGDK_DISABLE_DEPRECATED',
- '-DGTK_DISABLE_DEPRECATED',
- ] + common_cflags,
- link_args: gailutil_link_args,
- install: true)
+libgailutil = library('gailutil-3',
+ soversion: gtk_soversion,
+ version: gail_library_version,
+ darwin_versions: ['1', '1.0'],
+ sources: [gailutil_sources],
+ dependencies: libgtk_dep,
+ include_directories: [confinc, gtkinc],
+ c_args: [
+ '-DGDK_DISABLE_DEPRECATED',
+ '-DGTK_DISABLE_DEPRECATED',
+ ] + common_cflags,
+ link_args: gailutil_link_args,
+ install: true)
diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build
index dd72ced5e5..680ee0c89d 100644
--- a/testsuite/reftests/meson.build
+++ b/testsuite/reftests/meson.build
@@ -1,6 +1,6 @@
testexecdir = join_paths(installed_test_bindir, 'reftests')
-libgtkreftestprivate = shared_library('gtkreftestprivate', [
+libgtkreftestprivate = library('gtkreftestprivate', [
'reftest-compare.c',
'reftest-module.c',
'reftest-snapshot.c'],
@@ -483,4 +483,4 @@ if get_option('installed_tests')
endforeach
install_data(test_data, install_dir: testexecdir)
-endif \ No newline at end of file
+endif