diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2024-05-05 10:59:11 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2024-05-05 10:59:11 +0200 |
commit | ed85f3d22352c8e469ed1e386af3926b4d63efcd (patch) | |
tree | 2162ff552f17fdd9f6c6eba479fa1f2498f99d19 /src/meson.build | |
parent | 1e866201f1ccf8fa3bb22c6f5fa723b26c86dbe1 (diff) | |
parent | 79b0987e63daff97ce9ee1dce883df13668a80c6 (diff) |
Merge remote-tracking branch 'origin/master' into obsd
Diffstat (limited to 'src/meson.build')
-rw-r--r-- | src/meson.build | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 0000000..9c801df --- /dev/null +++ b/src/meson.build @@ -0,0 +1,78 @@ +deftwmrc = custom_target( + 'deftwmrc.c', + input: 'system.twmrc', + output: 'deftwmrc.c', + command: [ + find_program('gen_deftwmrc.sh'), + '@OUTPUT@', + '@INPUT@', + ], +) + +parser = custom_target( + 'gram.[ch]', + input: [ + 'gram.y', + ], + output: [ + 'gram.c', + 'gram.h' + ], + command: [ + find_program('bison'), + '-y', + '-d', + '-o', + '@OUTPUT0@', + '@INPUT@', + ], +) + +lexer = custom_target( + 'lex.c', + input: [ + 'lex.l', + parser[1], + ], + output: [ + 'lex.c', + ], + command: [ + find_program('flex'), + '-o', + '@OUTPUT@', + '@INPUT0@', + ], +) + +twm = executable( + 'twm', + [ + 'add_window.c', + 'cursor.c', + 'events.c', + 'gc.c', + 'iconmgr.c', + 'icons.c', + 'list.c', + 'menus.c', + 'parse.c', + 'resize.c', + 'session.c', + 'twm.c', + 'util.c', + deftwmrc, + parser, + lexer, + ], + dependencies: twm_dependencies, + install: true, +) + +configure_file( + input: 'system.twmrc', + output: 'system.twmrc', + copy: true, + install: true, + install_dir: get_option('datadir') / 'X11/twm/', +) |