-
Notifications
You must be signed in to change notification settings - Fork 25
/
meson.build
34 lines (28 loc) · 1.19 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# meson.buid file for mg
# This file has been written by Han Boetes <[email protected]> and is
# released in Public Domain.
project(
'mg', 'c',
version: run_command('git', 'describe', '--tags', check: true).stdout().strip(),
default_options: ['warning_level=1'],
)
bsdlib_dep = dependency('libbsd-overlay')
ncurses_dep = dependency('ncurses')
add_global_arguments('-DREGEX', language : 'c')
add_global_arguments('-D_GNU_SOURCE', language : 'c')
add_global_arguments('-DHAVE_PTY_H', language : 'c')
add_global_arguments('-Wno-strict-aliasing', language : 'c')
add_global_arguments('-Wno-deprecated-declarations', language : 'c')
executable(
'mg', 'cinfo.c', 'echo.c', 'line.c', 'ttyio.c', 'log.c',
'autoexec.c', 'bell.c', 'cscope.c', 'dir.c', 'dired.c', 'file.c',
'fileio.c', 'grep.c', 'help.c', 'kbd.c', 'macro.c', 're_search.c',
'region.c', 'search.c', 'spawn.c', 'tags.c', 'tty.c', 'ttykbd.c',
'undo.c', 'version.c', 'window.c', 'word.c', 'yank.c', 'main.c',
'basic.c', 'buffer.c', 'cmode.c', 'display.c', 'extend.c',
'funmap.c', 'interpreter.c', 'keymap.c', 'match.c', 'modes.c',
'paragraph.c', 'util.c',
install: true,
dependencies: [bsdlib_dep, ncurses_dep],
)
install_man('mg.1')