forked from AuroraMiddleware/gtk
Merge branch 'meson-fixes' into 'gtk-3-24'
Meson fixes See merge request GNOME/gtk!4273
This commit is contained in:
commit
a4b522f6d7
@ -5,7 +5,7 @@ app10_resources = gnome.compile_resources(
|
|||||||
source_dir: '.'
|
source_dir: '.'
|
||||||
)
|
)
|
||||||
|
|
||||||
app10_schemas = gnome.compile_schemas()
|
app10_schemas = gnome.compile_schemas(depend_files: files(['org.gtk.exampleapp.gschema.xml']))
|
||||||
|
|
||||||
|
|
||||||
app10 = executable(
|
app10 = executable(
|
||||||
@ -21,3 +21,5 @@ app10 = executable(
|
|||||||
app10_schemas,
|
app10_schemas,
|
||||||
dependencies: libgtk_dep
|
dependencies: libgtk_dep
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install_data('org.gtk.exampleapp.gschema.xml', install_dir: gtk_schemasdir)
|
||||||
|
@ -5,7 +5,7 @@ app5_resources = gnome.compile_resources(
|
|||||||
source_dir: '.'
|
source_dir: '.'
|
||||||
)
|
)
|
||||||
|
|
||||||
app5_schemas = gnome.compile_schemas()
|
app5_schemas = gnome.compile_schemas(depend_files: files(['org.gtk.exampleapp.gschema.xml']))
|
||||||
|
|
||||||
|
|
||||||
app5 = executable(
|
app5 = executable(
|
||||||
@ -19,3 +19,5 @@ app5 = executable(
|
|||||||
app5_schemas,
|
app5_schemas,
|
||||||
dependencies: libgtk_dep
|
dependencies: libgtk_dep
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install_data('org.gtk.exampleapp.gschema.xml', install_dir: gtk_schemasdir)
|
||||||
|
@ -5,7 +5,7 @@ app6_resources = gnome.compile_resources(
|
|||||||
source_dir: '.'
|
source_dir: '.'
|
||||||
)
|
)
|
||||||
|
|
||||||
app6_schemas = gnome.compile_schemas()
|
app6_schemas = gnome.compile_schemas(depend_files: files(['org.gtk.exampleapp.gschema.xml']))
|
||||||
|
|
||||||
|
|
||||||
app6 = executable(
|
app6 = executable(
|
||||||
@ -21,3 +21,5 @@ app6 = executable(
|
|||||||
app6_schemas,
|
app6_schemas,
|
||||||
dependencies: libgtk_dep
|
dependencies: libgtk_dep
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install_data('org.gtk.exampleapp.gschema.xml', install_dir: gtk_schemasdir)
|
||||||
|
@ -5,7 +5,7 @@ app7_resources = gnome.compile_resources(
|
|||||||
source_dir: '.'
|
source_dir: '.'
|
||||||
)
|
)
|
||||||
|
|
||||||
app7_schemas = gnome.compile_schemas()
|
app7_schemas = gnome.compile_schemas(depend_files: files(['org.gtk.exampleapp.gschema.xml']))
|
||||||
|
|
||||||
|
|
||||||
app7 = executable(
|
app7 = executable(
|
||||||
@ -21,3 +21,5 @@ app7 = executable(
|
|||||||
app7_schemas,
|
app7_schemas,
|
||||||
dependencies: libgtk_dep
|
dependencies: libgtk_dep
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install_data('org.gtk.exampleapp.gschema.xml', install_dir: gtk_schemasdir)
|
||||||
|
@ -5,7 +5,7 @@ app8_resources = gnome.compile_resources(
|
|||||||
source_dir: '.'
|
source_dir: '.'
|
||||||
)
|
)
|
||||||
|
|
||||||
app8_schemas = gnome.compile_schemas()
|
app8_schemas = gnome.compile_schemas(depend_files: files(['org.gtk.exampleapp.gschema.xml']))
|
||||||
|
|
||||||
|
|
||||||
app8 = executable(
|
app8 = executable(
|
||||||
@ -21,3 +21,5 @@ app8 = executable(
|
|||||||
app8_schemas,
|
app8_schemas,
|
||||||
dependencies: libgtk_dep
|
dependencies: libgtk_dep
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install_data('org.gtk.exampleapp.gschema.xml', install_dir: gtk_schemasdir)
|
||||||
|
@ -5,7 +5,7 @@ app9_resources = gnome.compile_resources(
|
|||||||
source_dir: '.'
|
source_dir: '.'
|
||||||
)
|
)
|
||||||
|
|
||||||
app9_schemas = gnome.compile_schemas()
|
app9_schemas = gnome.compile_schemas(depend_files: files(['org.gtk.exampleapp.gschema.xml']))
|
||||||
|
|
||||||
|
|
||||||
app9 = executable(
|
app9 = executable(
|
||||||
@ -21,3 +21,5 @@ app9 = executable(
|
|||||||
app9_schemas,
|
app9_schemas,
|
||||||
dependencies: libgtk_dep
|
dependencies: libgtk_dep
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install_data('org.gtk.exampleapp.gschema.xml', install_dir: gtk_schemasdir)
|
||||||
|
@ -959,7 +959,7 @@ foreach l: immodules
|
|||||||
cond = l.get(2, true)
|
cond = l.get(2, true)
|
||||||
cflags = l.get(3, [])
|
cflags = l.get(3, [])
|
||||||
|
|
||||||
if cond and builtin_immodules
|
if cond and (builtin_immodules.contains(name) or builtin_all_immodules)
|
||||||
gtk_cargs += ['-DINCLUDE_IM_@0@'.format(name.underscorify())]
|
gtk_cargs += ['-DINCLUDE_IM_@0@'.format(name.underscorify())]
|
||||||
mod = static_library('staticimmodule-@0@'.format(name),
|
mod = static_library('staticimmodule-@0@'.format(name),
|
||||||
sources + gtk_dep_sources,
|
sources + gtk_dep_sources,
|
||||||
|
30
meson.build
30
meson.build
@ -499,6 +499,8 @@ else
|
|||||||
cdata.set_quoted('ISO_CODES_PREFIX', get_option('prefix'))
|
cdata.set_quoted('ISO_CODES_PREFIX', get_option('prefix'))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
backend_immodules = []
|
||||||
|
|
||||||
pc_gdk_extra_libs = []
|
pc_gdk_extra_libs = []
|
||||||
|
|
||||||
cairo_found_type = cairo_dep.type_name()
|
cairo_found_type = cairo_dep.type_name()
|
||||||
@ -554,6 +556,7 @@ if wayland_enabled
|
|||||||
wlprotocolsdep = dependency('wayland-protocols', version: wayland_proto_req)
|
wlprotocolsdep = dependency('wayland-protocols', version: wayland_proto_req)
|
||||||
wlcursordep = dependency('wayland-cursor', version: wayland_req)
|
wlcursordep = dependency('wayland-cursor', version: wayland_req)
|
||||||
wlegldep = dependency('wayland-egl')
|
wlegldep = dependency('wayland-egl')
|
||||||
|
backend_immodules += ['wayland']
|
||||||
|
|
||||||
wayland_pkgs = [
|
wayland_pkgs = [
|
||||||
'wayland-client', wayland_req,
|
'wayland-client', wayland_req,
|
||||||
@ -578,6 +581,8 @@ if x11_enabled
|
|||||||
fontconfig_dep = dependency('fontconfig', fallback: ['fontconfig', 'fontconfig_dep'])
|
fontconfig_dep = dependency('fontconfig', fallback: ['fontconfig', 'fontconfig_dep'])
|
||||||
atkbridge_dep = dependency('atk-bridge-2.0', version: at_spi2_atk_req)
|
atkbridge_dep = dependency('atk-bridge-2.0', version: at_spi2_atk_req)
|
||||||
|
|
||||||
|
backend_immodules += ['xim']
|
||||||
|
|
||||||
x11_pkgs = ['fontconfig', 'x11', 'xext', 'xi', 'xrandr']
|
x11_pkgs = ['fontconfig', 'x11', 'xext', 'xi', 'xrandr']
|
||||||
|
|
||||||
if xcursor_dep.found()
|
if xcursor_dep.found()
|
||||||
@ -656,10 +661,12 @@ endif
|
|||||||
|
|
||||||
if broadway_enabled
|
if broadway_enabled
|
||||||
pc_gdk_extra_libs += ['-lz']
|
pc_gdk_extra_libs += ['-lz']
|
||||||
|
backend_immodules += ['broadway']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if quartz_enabled
|
if quartz_enabled
|
||||||
pc_gdk_extra_libs += ['-Wl,-framework,Cocoa', '-Wl,-framework,Carbon', '-Wl,-framework,CoreGraphics']
|
pc_gdk_extra_libs += ['-Wl,-framework,Cocoa', '-Wl,-framework,Carbon', '-Wl,-framework,CoreGraphics']
|
||||||
|
backend_immodules += ['quartz']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
extra_demo_ldflags = []
|
extra_demo_ldflags = []
|
||||||
@ -674,6 +681,7 @@ if win32_enabled
|
|||||||
pc_gdk_extra_libs += ['-Wl,-luuid']
|
pc_gdk_extra_libs += ['-Wl,-luuid']
|
||||||
endif
|
endif
|
||||||
pc_gdk_extra_libs += ['-lwinmm', '-ldwmapi', '-lsetupapi', '-lcfgmgr32']
|
pc_gdk_extra_libs += ['-lwinmm', '-ldwmapi', '-lsetupapi', '-lcfgmgr32']
|
||||||
|
backend_immodules += ['ime']
|
||||||
|
|
||||||
# Check whether libepoxy is built with EGL support on Windows
|
# Check whether libepoxy is built with EGL support on Windows
|
||||||
win32_has_egl = epoxy_dep.get_variable(
|
win32_has_egl = epoxy_dep.get_variable(
|
||||||
@ -684,20 +692,30 @@ endif
|
|||||||
|
|
||||||
# IMModules stuff-unfortunately we need to put items here
|
# IMModules stuff-unfortunately we need to put items here
|
||||||
# as they can be built as modules or built directly into GTK
|
# as they can be built as modules or built directly into GTK
|
||||||
|
builtin_all_immodules = false
|
||||||
|
|
||||||
builtin_modules_opt = get_option('builtin_immodules')
|
builtin_modules_opt = get_option('builtin_immodules')
|
||||||
if builtin_modules_opt == 'auto'
|
builtin_immodules = []
|
||||||
|
|
||||||
|
if builtin_modules_opt == ''
|
||||||
if os_win32
|
if os_win32
|
||||||
# Current MSVC projects build all immodules directly into GTK by default,
|
# Current MSVC projects build all immodules directly into GTK by default,
|
||||||
# as does the mingw autotools build
|
# as does the mingw autotools build
|
||||||
message('IMModules are built into GTK for MSVC builds by default')
|
message('IMModules are built into GTK for MSVC builds by default')
|
||||||
builtin_immodules = true
|
builtin_immodules = ['all']
|
||||||
else
|
else
|
||||||
builtin_immodules = false
|
builtin_immodules = ['none']
|
||||||
endif
|
endif
|
||||||
elif builtin_modules_opt == 'yes'
|
|
||||||
builtin_immodules = true
|
|
||||||
else
|
else
|
||||||
builtin_immodules = false
|
builtin_immodules = builtin_modules_opt.split(',')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if builtin_immodules.contains('none')
|
||||||
|
builtin_immodules = []
|
||||||
|
elif builtin_immodules.contains('all')
|
||||||
|
builtin_all_immodules = true
|
||||||
|
elif builtin_immodules.contains('backend')
|
||||||
|
builtin_immodules += backend_immodules
|
||||||
endif
|
endif
|
||||||
|
|
||||||
proto_sources = [
|
proto_sources = [
|
||||||
|
@ -45,5 +45,5 @@ option('installed_tests', type: 'boolean', value: 'false',
|
|||||||
description : 'enable installed tests')
|
description : 'enable installed tests')
|
||||||
|
|
||||||
# input modules
|
# input modules
|
||||||
option('builtin_immodules', type: 'combo', choices : ['yes', 'no', 'auto'],
|
option('builtin_immodules', type: 'string',
|
||||||
value: 'auto', description: 'Build immodules into GTK so/DLL')
|
value: '', description: 'Build specified immodules into GTK so/DLL (comma-separated list), "all", "none" or "backend"')
|
||||||
|
@ -7,7 +7,7 @@ foreach l: immodules
|
|||||||
cond = l.get(2, true)
|
cond = l.get(2, true)
|
||||||
cflags = l.get(3, [])
|
cflags = l.get(3, [])
|
||||||
|
|
||||||
if cond and not builtin_immodules
|
if cond and not (builtin_immodules.contains(name) or builtin_all_immodules)
|
||||||
shared_module('im-@0@'.format(name),
|
shared_module('im-@0@'.format(name),
|
||||||
immod_sources,
|
immod_sources,
|
||||||
c_args: common_cflags + cflags,
|
c_args: common_cflags + cflags,
|
||||||
|
Loading…
Reference in New Issue
Block a user