mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-25 03:17:52 +02:00
Meson: Add glib static dependency
This dependency can be used to link with GLib object files.
This commit is contained in:
@@ -437,6 +437,26 @@ libglib_dep = declare_dependency(
|
||||
# We sadly need to export configinc here because everyone includes <glib/*.h>
|
||||
include_directories : [configinc, glibinc])
|
||||
|
||||
libglib_static_dep = declare_dependency(
|
||||
compile_args: ['-DGLIB_STATIC_COMPILATION'],
|
||||
objects: libglib.extract_all_objects(recursive: true),
|
||||
dependencies: [
|
||||
atomic_dep,
|
||||
gnulib_libm_dependency,
|
||||
libiconv,
|
||||
libintl_deps,
|
||||
libm,
|
||||
librt,
|
||||
libsysprof_capture_dep,
|
||||
pcre2,
|
||||
platform_deps,
|
||||
thread_dep,
|
||||
],
|
||||
link_with: [charset_lib, gnulib_lib],
|
||||
sources: glib_built_headers,
|
||||
include_directories: [configinc, glibinc],
|
||||
)
|
||||
|
||||
pkg.generate(libglib,
|
||||
libraries : [libintl_deps],
|
||||
libraries_private : [win32_ldflags],
|
||||
|
Reference in New Issue
Block a user