forked from AuroraMiddleware/gtk
tools: Don't static and dynamic link on libgtk4
This commit is contained in:
parent
65c38111f9
commit
1048ad1a01
@ -1,30 +1,29 @@
|
||||
# Installed tools
|
||||
gtk_tools = [
|
||||
['gtk4-query-settings', ['gtk-query-settings.c'], []],
|
||||
['gtk4-query-settings', ['gtk-query-settings.c'], [libgtk_dep]],
|
||||
['gtk4-builder-tool', ['gtk-builder-tool.c',
|
||||
'gtk-builder-tool-simplify.c',
|
||||
'gtk-builder-tool-validate.c',
|
||||
'gtk-builder-tool-enumerate.c',
|
||||
'gtk-builder-tool-preview.c'], [] ],
|
||||
['gtk4-update-icon-cache', ['updateiconcache.c'], [ libgtk_static ] ],
|
||||
['gtk4-encode-symbolic-svg', ['encodesymbolic.c'], [ libgtk_static ] ],
|
||||
'gtk-builder-tool-preview.c'], [libgtk_dep] ],
|
||||
['gtk4-update-icon-cache', ['updateiconcache.c'], [ libgtk_static_dep ] ],
|
||||
['gtk4-encode-symbolic-svg', ['encodesymbolic.c'], [ libgtk_static_dep ] ],
|
||||
]
|
||||
|
||||
if os_unix
|
||||
gtk_tools += [['gtk4-launch', ['gtk-launch.c'], []]]
|
||||
gtk_tools += [['gtk4-launch', ['gtk-launch.c'], [libgtk_dep]]]
|
||||
endif
|
||||
|
||||
foreach tool: gtk_tools
|
||||
tool_name = tool.get(0)
|
||||
tool_srcs = tool.get(1)
|
||||
tool_libs = tool.get(2)
|
||||
tool_deps = tool.get(2)
|
||||
|
||||
exe = executable(tool_name,
|
||||
sources: tool_srcs,
|
||||
include_directories: [confinc],
|
||||
c_args: common_cflags,
|
||||
link_with: tool_libs,
|
||||
dependencies: libgtk_dep,
|
||||
dependencies: tool_deps,
|
||||
install: true,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user