mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
Only build iconcache validator if it is used
This commit is contained in:
parent
1c308431a6
commit
9463e0f56c
@ -20,6 +20,7 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <gdk-pixbuf/gdk-pixdata.h>
|
#include <gdk-pixbuf/gdk-pixdata.h>
|
||||||
|
|
||||||
|
#if defined(G_ENABLE_DEBUG) || defined(BUILD_TOOLS)
|
||||||
|
|
||||||
#define VERBOSE(x)
|
#define VERBOSE(x)
|
||||||
|
|
||||||
@ -401,3 +402,4 @@ gtk_icon_cache_validate (CacheInfo *info)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -31,7 +31,7 @@ gtk_tools = [
|
|||||||
'gtk-builder-tool-screenshot.c',
|
'gtk-builder-tool-screenshot.c',
|
||||||
'gtk-builder-tool-preview.c',
|
'gtk-builder-tool-preview.c',
|
||||||
'fake-scope.c'], [libgtk_dep] ],
|
'fake-scope.c'], [libgtk_dep] ],
|
||||||
['gtk4-update-icon-cache', ['updateiconcache.c'] + extra_update_icon_cache_objs, [ libgtk_static_dep ] ],
|
['gtk4-update-icon-cache', ['updateiconcache.c', '../gtk/gtkiconcachevalidator.c' ] + extra_update_icon_cache_objs, [ libgtk_dep ] ],
|
||||||
['gtk4-encode-symbolic-svg', ['encodesymbolic.c'], [ libgtk_static_dep ] ],
|
['gtk4-encode-symbolic-svg', ['encodesymbolic.c'], [ libgtk_static_dep ] ],
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ foreach tool: gtk_tools
|
|||||||
exe = executable(tool_name,
|
exe = executable(tool_name,
|
||||||
sources: tool_srcs,
|
sources: tool_srcs,
|
||||||
include_directories: [confinc],
|
include_directories: [confinc],
|
||||||
c_args: common_cflags,
|
c_args: common_cflags + [ '-DBUILD_TOOLS' ],
|
||||||
dependencies: tool_deps,
|
dependencies: tool_deps,
|
||||||
install: true,
|
install: true,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user