-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
39 lines (29 loc) · 809 Bytes
/
meson.build
File metadata and controls
39 lines (29 loc) · 809 Bytes
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
35
36
37
38
39
project('caar-os')
as = ''
if meson.is_subproject()
as = subproject('as').get_variable('assembler_executable')
else
as = find_program('caar-as')
endif
input_files = [
'src/loader/loader.lisp',
'src/main.lisp'
]
outfile = 'os.img'
install_dir = join_paths(meson.current_source_dir(), 'bin')
if meson.is_subproject()
install_dir = join_paths(meson.current_source_dir(), '../../bin')
endif
gen = generator(as,
output : '@[email protected]',
arguments : ['@INPUT@', '-o', '@OUTPUT@','-I', join_paths(meson.current_source_dir(), 'src')])
output = gen.process(input_files)
cat_prog = find_program('cat')
concat_parts = custom_target(
'concat-parts',
command: [ cat_prog, '@INPUT@'],
capture: true,
input: output,
output: 'os.img',
build_by_default: true
)