tools: Pass common_cflags to executables
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include <glib/gstdio.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "gtkbuilderprivate.h"
|
||||
#include "gtk-builder-tool.h"
|
||||
|
||||
static const gchar *
|
||||
object_get_name (GObject *object)
|
||||
@@ -37,7 +38,7 @@ object_get_name (GObject *object)
|
||||
}
|
||||
|
||||
void
|
||||
do_enumerate (int *argc, char ***argv)
|
||||
do_enumerate (int *argc, const char ***argv)
|
||||
{
|
||||
GtkBuilder *builder;
|
||||
GError *error = NULL;
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include <glib/gstdio.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "gtkbuilderprivate.h"
|
||||
#include "gtk-builder-tool.h"
|
||||
|
||||
|
||||
static void
|
||||
set_window_title (GtkWindow *window,
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <glib/gstdio.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "gtkbuilderprivate.h"
|
||||
#include "gtk-builder-tool.h"
|
||||
|
||||
typedef struct Element Element;
|
||||
struct Element {
|
||||
@@ -1816,7 +1817,7 @@ dump_tree (MyParserData *data)
|
||||
dump_element (data->root, data->output, 0);
|
||||
}
|
||||
|
||||
gboolean
|
||||
static gboolean
|
||||
simplify_file (const char *filename,
|
||||
gboolean replace,
|
||||
gboolean convert3to4)
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <glib/gstdio.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "gtkbuilderprivate.h"
|
||||
#include "gtk-builder-tool.h"
|
||||
|
||||
static GType
|
||||
make_fake_type (const gchar *type_name,
|
||||
@@ -147,7 +148,7 @@ validate_file (const char *filename)
|
||||
}
|
||||
|
||||
void
|
||||
do_validate (int *argc, char ***argv)
|
||||
do_validate (int *argc, const char ***argv)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -156,6 +157,4 @@ do_validate (int *argc, char ***argv)
|
||||
if (!validate_file ((*argv)[i]))
|
||||
exit (1);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -26,13 +26,9 @@
|
||||
#include <glib/gstdio.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "gtkbuilderprivate.h"
|
||||
#include "gtk-builder-tool.h"
|
||||
|
||||
extern void do_simplify (int *argc, const char ***argv);
|
||||
extern void do_validate (int *argc, const char ***argv);
|
||||
extern void do_enumerate (int *argc, const char ***argv);
|
||||
extern void do_preview (int *argc, const char ***argv);
|
||||
|
||||
static void
|
||||
static void G_GNUC_NORETURN
|
||||
usage (void)
|
||||
{
|
||||
g_print (_("Usage:\n"
|
||||
|
||||
10
gtk/tools/gtk-builder-tool.h
Normal file
10
gtk/tools/gtk-builder-tool.h
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
#ifndef __GTK_BUILDER_TOOL_H__
|
||||
#define __GTK_BUILDER_TOOL_H__
|
||||
|
||||
void do_simplify (int *argc, const char ***argv);
|
||||
void do_validate (int *argc, const char ***argv);
|
||||
void do_enumerate (int *argc, const char ***argv);
|
||||
void do_preview (int *argc, const char ***argv);
|
||||
|
||||
#endif
|
||||
@@ -20,7 +20,7 @@ foreach tool: gtk_tools
|
||||
|
||||
exe = executable(tool_name, tool_srcs,
|
||||
include_directories: [confinc],
|
||||
c_args: gtk_cargs,
|
||||
c_args: common_cflags,
|
||||
dependencies: libgtk_dep,
|
||||
install: true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user