forked from AuroraMiddleware/gtk
build: Don't hardcode shared_library() in meson.
Instead, use the standard library(). This is a meson best practice. Fixes -Ddefault_library=static not having any effect.
This commit is contained in:
parent
07d17c5bc1
commit
bb9c07d8fe
@ -1007,15 +1007,15 @@ if cc.has_header('langinfo.h')
|
||||
endif
|
||||
|
||||
# Library
|
||||
libgtk = shared_library('gtk-4',
|
||||
soversion: gtk_soversion,
|
||||
sources: [typefuncs, gtk_sources, gtkmarshal_h, gtkprivatetypebuiltins_h],
|
||||
c_args: gtk_cargs + common_cflags,
|
||||
include_directories: [confinc, gdkinc, gskinc, gtkinc],
|
||||
dependencies: gtk_deps + [libgtk_css_dep, libgdk_dep, libgsk_dep],
|
||||
link_with: [libgtk_css, libgdk, libgsk, ],
|
||||
link_args: common_ldflags,
|
||||
install: true)
|
||||
libgtk = library('gtk-4',
|
||||
soversion: gtk_soversion,
|
||||
sources: [typefuncs, gtk_sources, gtkmarshal_h, gtkprivatetypebuiltins_h],
|
||||
c_args: gtk_cargs + common_cflags,
|
||||
include_directories: [confinc, gdkinc, gskinc, gtkinc],
|
||||
dependencies: gtk_deps + [libgtk_css_dep, libgdk_dep, libgsk_dep],
|
||||
link_with: [libgtk_css, libgdk, libgsk, ],
|
||||
link_args: common_ldflags,
|
||||
install: true)
|
||||
|
||||
gtk_dep_sources = [gtkversion, gtktypebuiltins_h]
|
||||
# Introspection
|
||||
|
@ -1,9 +1,9 @@
|
||||
# FIXME: $(no_undefined) ?
|
||||
libgtkreftestprivate = shared_library('gtkreftestprivate',
|
||||
libgtkreftestprivate = library('gtkreftestprivate',
|
||||
'reftest-compare.c', 'reftest-module.c', 'reftest-snapshot.c',
|
||||
dependencies : libgtk_dep)
|
||||
|
||||
libreftest = shared_library('reftest',
|
||||
libreftest = library('reftest',
|
||||
[ 'expand-expander.c',
|
||||
'frame-inhibitor.c',
|
||||
'letter-spacing.c',
|
||||
|
Loading…
Reference in New Issue
Block a user