-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmeson.build
106 lines (102 loc) · 2.98 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
project('batsched', 'cpp',
version: '1.4.0',
license: 'free',
default_options: ['cpp_std=c++11'],
meson_version: '>=0.40.0'
)
# Dependencies
boost_dep = dependency('boost',
modules : ['locale', 'regex', 'system']
)
rapidjson_dep = dependency('RapidJSON')
libzmq_dep = dependency('libzmq')
loguru_dep = dependency('loguru')
intervalset_dep = dependency('intervalset')
gmpxx_dep = dependency('gmpxx')
batsched_deps = [
boost_dep,
rapidjson_dep,
libzmq_dep,
loguru_dep,
intervalset_dep,
gmpxx_dep
]
# Source files
src = [
'src/algo/conservative_bf.cpp',
'src/algo/conservative_bf.hpp',
'src/algo/crasher.cpp',
'src/algo/crasher.hpp',
'src/algo/easy_bf.cpp',
'src/algo/easy_bf_fast.cpp',
'src/algo/easy_bf_fast.hpp',
'src/algo/easy_bf.hpp',
'src/algo/easy_bf_plot_liquid_load_horizon.cpp',
'src/algo/easy_bf_plot_liquid_load_horizon.hpp',
'src/algo/energy_bf.cpp',
'src/algo/energy_bf_dicho.cpp',
'src/algo/energy_bf_dicho.hpp',
'src/algo/energy_bf.hpp',
'src/algo/energy_bf_idle_sleeper.cpp',
'src/algo/energy_bf_idle_sleeper.hpp',
'src/algo/energy_bf_machine_subpart_sleeper.cpp',
'src/algo/energy_bf_machine_subpart_sleeper.hpp',
'src/algo/energy_bf_monitoring_inertial_shutdown.cpp',
'src/algo/energy_bf_monitoring_inertial_shutdown.hpp',
'src/algo/energy_bf_monitoring_period.cpp',
'src/algo/energy_bf_monitoring_period.hpp',
'src/algo/energy_watcher.cpp',
'src/algo/energy_watcher.hpp',
'src/algo/fcfs_fast.cpp',
'src/algo/fcfs_fast.hpp',
'src/algo/fcfs.cpp',
'src/algo/fcfs.hpp',
'src/algo/filler.cpp',
'src/algo/filler.hpp',
'src/algo/killer2.cpp',
'src/algo/killer2.hpp',
'src/algo/killer.cpp',
'src/algo/killer.hpp',
'src/algo/random.cpp',
'src/algo/random.hpp',
'src/algo/rejecter.cpp',
'src/algo/rejecter.hpp',
'src/algo/sequencer.cpp',
'src/algo/sequencer.hpp',
'src/algo/sleeper.cpp',
'src/algo/sleeper.hpp',
'src/algo/submitter.cpp',
'src/algo/submitter.hpp',
'src/algo/wt_estimator.cpp',
'src/algo/wt_estimator.hpp',
'src/decision.cpp',
'src/decision.hpp',
'src/exact_numbers.hpp',
'src/external/taywee_args.hpp',
'src/isalgorithm.cpp',
'src/isalgorithm.hpp',
'src/json_workload.cpp',
'src/json_workload.hpp',
'src/locality.cpp',
'src/locality.hpp',
'src/main.cpp',
'src/network.cpp',
'src/network.hpp',
'src/pempek_assert.cpp',
'src/pempek_assert.hpp',
'src/protocol.cpp',
'src/protocol.hpp',
'src/queue.cpp',
'src/queue.hpp',
'src/queueing_theory_waiting_time_estimator.cpp',
'src/queueing_theory_waiting_time_estimator.hpp',
'src/schedule.cpp',
'src/schedule.hpp'
]
include_dir = include_directories('src')
batsched = executable('batsched', src,
include_directories: include_dir,
dependencies: batsched_deps,
cpp_args: '-DBATSCHED_VERSION=@0@'.format(meson.project_version()),
install: true
)