aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build48
1 files changed, 23 insertions, 25 deletions
diff --git a/meson.build b/meson.build
index b52c1edb..fa653a87 100644
--- a/meson.build
+++ b/meson.build
@@ -5,6 +5,12 @@ project('sylpheed', 'c',
license : ['GPL2+', 'LGPL2+'],
default_options : ['buildtype=debugoptimized'])
+gnome = import('gnome')
+
+
+# Localisation
+subdir('po')
+
# Dependency packages
@@ -148,39 +154,32 @@ libsylph_dep = declare_dependency(include_directories : libsylph_includes,
flex = find_program('flex')
bison = find_program('bison')
-quote_fmt_parse_c = custom_target('quote_fmt_parse.tab.c',
- output : ['quote_fmt_parse.tab.c', 'quote_fmt_parse.tab.h'],
- input : 'src/quote_fmt_parse.y',
- command : [bison, '--defines=@OUTPUT1@',
- '-p', 'quote_fmt',
- '--output=@OUTPUT0@',
- '@INPUT@'])
+quote_fmt_parse_tab_ch = custom_target('quote_fmt_parse.tab.c',
+ output : ['quote_fmt_parse.tab.c',
+ 'quote_fmt_parse.tab.h'],
+ input : 'src/quote_fmt_parse.y',
+ command : [bison, '--defines=@OUTPUT1@',
+ '-p', 'quote_fmt',
+ '--output=@OUTPUT0@',
+ '@INPUT@'])
quote_fmt_c = custom_target('quote_fmt.c',
output : ['quote_fmt.c', 'quote_fmt.h'],
- input : ['src/quote_fmt_lex.l', quote_fmt_parse_c],
+ input : ['src/quote_fmt_lex.l', quote_fmt_parse_tab_ch],
command : [flex, '--outfile=@OUTPUT0@',
'--header-file=@OUTPUT1@',
'-P', 'quote_fmt',
'@INPUT@'])
-glibgenmarshal = find_program('glib-genmarshal')
+plugin_marshal_ch = gnome.genmarshal('plugin-marshal',
+ prefix : 'syl_plugin_marshal',
+ sources : 'src/plugin-marshal.list')
+
-plugin_marshal_c = custom_target('plugin-marshal.c',
- output : ['plugin-marshal.c'],
- input : 'src/plugin-marshal.list',
- command : [glibgenmarshal, '--output=@OUTPUT@',
- '--body',
- '--prefix=syl_plugin_marshal',
- '@INPUT@'])
+gdk_pixbuf_source = find_program('gdk-pixbuf-csource')
-plugin_marshal_h = custom_target('plugin-marshal.h',
- output : ['plugin-marshal.h'],
- input : 'src/plugin-marshal.list',
- command : [glibgenmarshal, '--output=@OUTPUT@',
- '--header',
- '--prefix=syl_plugin_marshal',
- '@INPUT@'])
+#gen_icon = generator(gdk_pixbuf_source, output : '@BASENAME@.h'
+# arguments : ' [
executable('sylpheed',
['src/about.c',
@@ -234,8 +233,7 @@ executable('sylpheed',
'src/passphrase.c',
'src/plugin.c',
'src/plugin_manager.c',
- plugin_marshal_c,
- plugin_marshal_h,
+ plugin_marshal_ch,
'src/prefs_account_dialog.c',
'src/prefs_actions.c',
'src/prefs_common_dialog.c',