-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
57 lines (48 loc) · 2.16 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
project('ant4c', 'c')
ant4c_sources = [
'argument_parser.c', 'buffer.c', 'choose_task.c', 'common.c',
'conversion.c', 'copy_move.c', 'date_time.c', 'echo.c',
'environment.c', 'exec.c', 'fail_task.c', 'file_system.c',
'for_each.c', 'hash.blake2.c', 'hash.blake3.c', 'hash.c',
'hash.crc32.c', 'hash.sha3.c', 'hash.xxhash.c', 'if_task.c',
'interpreter.c', 'listener.c', 'load_file.c', 'load_tasks.c',
'math_unit.c', 'operating_system.c', 'path.c', 'project.c',
'property.c', 'range.c', 'shared_object.c', 'sleep_unit.c',
'string_unit.c', 'target.c', 'task.c', 'text_encoding.c',
'try_catch.c', 'version.c', 'xml.c'
]
framework_gate_sources = [
'clr_control.c', 'meta_host.c', 'runtime_host.c',
'runtime_info.c', 'unknown_structure.c'
]
ant4c_net_framework_module_sources = [
'ant4c.net.framework.module.c', 'host_controller.c'
]
ant4c_static_library = static_library('ant4c', ant4c_sources)
default_listener_shared_library = shared_library(
'default_listener', 'default_listener.c',
c_args : ['-Ddefault_listener_EXPORTS'])
example_of_the_module_shared_library = shared_library(
'example_of_the_module', 'example_of_the_module.c',
link_with : ant4c_static_library,
c_args : ['-Dexample_of_the_module_EXPORTS'])
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : false)
dl_dep = cc.find_library('dl', required : false)
ant4c_executable = executable('ant4c_app', 'main.c',
link_with : ant4c_static_library, dependencies : [ m_dep, dl_dep ])
net_gate_static_library = static_library('net_gate', 'host_fxr.c')
ant4c_net_module_shared_library = shared_library(
'ant4c.net.module', 'ant4c.net.module.c',
link_with : [ net_gate_static_library, ant4c_static_library ],
dependencies : [ m_dep, dl_dep ],
c_args : ['-Dant4c_net_module_EXPORTS'])
if 'windows' == build_machine.system()
framework_gate_static_library = static_library(
'framework_gate', framework_gate_sources)
ant4c_net_framework_module_shared_library = shared_library(
'ant4c.net.framework.module',
ant4c_net_framework_module_sources,
link_with : [ framework_gate_static_library, ant4c_static_library ],
c_args : ['-Dant4c_net_framework_module_EXPORTS'])
endif