source: mainline/meson.build@ ee353dd8

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since ee353dd8 was 19c2b44, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 6 years ago

Remove broken subdir()

  • Property mode set to 100644
File size: 2.2 KB
Line 
1# TODO: Use vcs_tag() to generate version string
2# TODO: jobfile
3# TODO: lto in uspace
4# TODO: fix clang build
5
6project(
7 'HelenOS',
8 [ 'c', 'cpp' ],
9 default_options : ['buildtype=plain', 'c_std=gnu11', 'cpp_std=c++17', 'warning_level=3', 'werror=false', 'b_staticpic=false', 'prefix=/' ],
10 meson_version: '>=0.50.1',
11)
12
13debug_options = false
14debug_shell_scripts = false
15
16subdir('meson/part/tools')
17subdir('meson/part/read_config')
18subdir('meson/part/compiler_args')
19subdir('meson/part/initrd_manifest')
20subdir('meson' / 'arch' / UARCH)
21
22## The at-sign
23#
24# The `atsign` variable holds the ASCII character representing the at-sign
25# ('@') used in various $(AS) constructs (e.g. @progbits). On architectures that
26# don't use '@' for starting a comment, `atsign` is merely '@'. However, on
27# those that do use it for starting a comment (e.g. arm32), `atsign` must be
28# defined as the percentile-sign ('%') in the architecture-dependent files.
29#
30if not is_variable('atsign')
31 atsign = '@'
32endif
33
34## Some architectures need a particular string at the beginning of assembly files.
35if not is_variable('kernel_as_prolog')
36 kernel_as_prolog = ''
37endif
38if not is_variable('uspace_as_prolog')
39 uspace_as_prolog = ''
40endif
41
42# The following variables are filled in by code in the kernel and uspace subdirs.
43
44# References to the actual binary artefacts that will be part of initrd image.
45rd_init_binaries = []
46# Installed files.
47install_files = []
48install_deps = []
49# Install script for headers.
50# TODO: Make a list of directories and turn into script later.
51uspace_lib_install_script_text = []
52
53subdir('kernel')
54subdir('uspace')
55
56subdir('meson/part/exports')
57subdir('meson/part/initrd')
58
59subdir('boot')
60
61# Copy the final image to the build root,
62# and write its name to a text file `image_path`.
63
64if is_variable('POST_INPUT')
65 image = custom_target(POST_OUTPUT,
66 output: POST_OUTPUT,
67 input: POST_INPUT,
68 command: [ cp, '@INPUT@', '@OUTPUT@' ],
69 )
70
71 custom_target('image_path',
72 output: 'image_path',
73 input: image,
74 command: [ 'echo', '@INPUT@' ],
75 capture: true,
76 )
77else
78 custom_target('image_path',
79 output: 'image_path',
80 command: [ 'echo' ],
81 capture: true,
82 )
83endif
84
85subdir('meson/part/extra_targets')
Note: See TracBrowser for help on using the repository browser.