diff options
author | Thomas White <taw@physics.org> | 2019-01-29 23:52:13 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-05-16 15:15:49 +0200 |
commit | fdf62472755ff9e2aa0f234e3317d8ff2e709938 (patch) | |
tree | 36a918ab77b85e96e18e8eb64a059fbab1558927 /meson.build | |
parent | e2f8c013d9f0d828b96e1c4aadccd18e545aed66 (diff) |
Stuff for quote_fmt_lex.l
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meson.build b/meson.build index dac174e9..9103ada4 100644 --- a/meson.build +++ b/meson.build @@ -135,10 +135,12 @@ libsylph_dep = declare_dependency(include_directories : libsylph_includes, flex = find_program('flex') -quote_fmt_lex_c = custom_target('quote_fmt_lex', - output : 'quote_fmt_lex.c', - input : 'src/quote_fmt_lex.l', - command : [flex, '-o', '@OUTPUT@', '@INPUT@']) +lgen = generator(flex, output : ['@BASENAME@.c', '@BASENAME@.h'], + arguments : ['-o', '@OUTPUT0@', + '--header-file=@OUTPUT1@', + '@INPUT@']) + +quote_fmt_lex_c = lgen.process('src/quote_fmt_lex.l') executable('sylpheed', ['src/about.c', |