-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ninja.in.yaml
194 lines (194 loc) · 5.86 KB
/
build.ninja.in.yaml
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
var:
top_srcdir: "@top_srcdir@"
srcdir: "@srcdir@"
builddir: "@builddir@"
gtestdir: $top_srcdir/gtest-1.6.0
CC: "@CC@"
CFLAGS: "@CFLAGS@"
CPP: "@CPP@"
CPPFLAGS: "@CPPFLAGS@"
CXX: "@CXX@"
CXXCPP: "@CXXCPP@"
CXXFLAGS: "@CXXFLAGS@"
DEFAULT_INCLUDES: "-I$builddir -I$srcdir"
DEFS: "@DEFS@"
LDFLAGS: "@LDFLAGS@"
LIBS: "@LIBS@"
OBJC: "@OBJC@"
OBJCFLAGS: "@OBJCFLAGS@"
BOOST_CPPFLAGS: "@BOOST_CPPFLAGS@"
BOOST_LDFLAGS: "@BOOST_LDFLAGS@"
BOOST_PROGRAM_OPTIONS_LIB: "@BOOST_PROGRAM_OPTIONS_LIB@"
SDL_CFLAGS: "@SDL_CFLAGS@"
SDL_LIBS: "@SDL_LIBS@"
AM_CFLAGS: "-Wall -Wextra"
AM_CPPFLAGS: "$BOOST_CPPFLAGS $SDL_CFLAGS"
AM_CXXFLAGS: "-Wall -Wextra"
AM_LDFLAGS: "$BOOST_LDFLAGS"
rule:
cc:
depfile: .deps/$out.d
command: "$CC -MMD -MF .deps/$out.d $DEFS $DEFAULT_INCLUDES $INCLUDES $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS -c $in -o $out"
description: "CC $out"
cxx:
depfile: .deps/$out.d
command: "$CXX -MMD -MF .deps/$out.d $DEFS $DEFAULT_INCLUDES $INCLUDES $AM_CPPFLAGS $CPPFLAGS $AM_CXXFLAGS $CXXFLAGS -c -o $out $in"
description: "CXX $out"
objc:
depfile: .deps/$out.d
command: "$OBJC -MMD -MF .deps/$out.d $DEFS $DEFUALT_INCLUDES $INCLUDES $AM_CPPFLAGS $CPPFLAGS $AM_OBJCFLAGS $OBJCFLAGS -c $in -o $out"
description: "OBJC $out"
link:
command: "$CXX $AM_LDFLAGS $LDFLAGS -o $out $in $LIBS"
description: "LINK $out"
ar:
command: "ar crs $out $in"
description: "AR $out"
configure2:
command: "make $out"
generator: 1
program:
$builddir/benchmark_sample:
src: [$srcdir/benchmark_sample.cpp]
$builddir/boost_program_options_sample:
src: [$srcdir/boost_program_options_sample.cpp]
LIBS: $BOOST_PROGRAM_OPTIONS_LIB
$builddir/c1:
src:
- $srcdir/c1.cpp
$builddir/g1:
src:
- $srcdir/g1.cpp
- $builddir/libsdlapp.a
- $builddir/liblogger.a
CPPFLAGS: $SDL_CFLAGS $CPPFLAGS
LIBS: $SDL_LIBS $LIBS
# $builddir/line_segment_2d_benchmark:
# $builddir/map_benchmark:
$builddir/observer_benchmark:
src:
- $srcdir/observer_benchmark.cpp
# $builddir/oscillator_benchmark:
# $builddir/pcap_benchmark:
# $builddir/peg_sample:
# $builddir/peg_sample2:
# $builddir/s1:
# $builddir/s2:
# $builddir/sdl_event_sample:
# $builddir/sdl_event_sample2:
# $builddir/smf_play:
# $builddir/udp_sample:
# $builddir/vector_length_benchmark:
$builddir/all_gtests:
src:
- $srcdir/audio_stream_test.cpp
- $srcdir/channel_test.cpp
- $srcdir/circle_2d_test.cpp
- $srcdir/circular_buffer_test.cpp
- $srcdir/filter_test.cpp
- $srcdir/font_test.cpp
- $srcdir/fps_test.cpp
- $srcdir/function_test.cpp
- $srcdir/function_test2.cpp
- $srcdir/instrument_test.cpp
- $srcdir/line_segment_2d_test.cpp
- $srcdir/load_time_test.cpp
- $srcdir/logger_test.cpp
- $srcdir/lot_box_test.cpp
- $srcdir/object_test.cpp
- $srcdir/object_counter_test.cpp
- $srcdir/observer_test.cpp
- $srcdir/oscillator_factory_test.cpp
- $srcdir/oscillator_stream_test.cpp
- $srcdir/oscillator_test.cpp
- $srcdir/patch_test.cpp
- $srcdir/peg_test.cpp
- $srcdir/point_2d_test.cpp
- $srcdir/property_test.cpp
- $srcdir/pseudo_triangle_wave_oscillator_test.cpp
- $srcdir/rect_test.cpp
- $srcdir/sampler_test.cpp
- $srcdir/sine_wave_oscillator_test.cpp
- $srcdir/smf_test.cpp
- $srcdir/smf_track_test.cpp
- $srcdir/song_test.cpp
- $srcdir/sound_test.cpp
- $srcdir/sprite_test.cpp
- $srcdir/texture_pool_test.cpp
- $srcdir/texture_test.cpp
- $srcdir/triangle_wave_oscillator_test.cpp
- $srcdir/variable_length_value_test.cpp
- $srcdir/vector_2d_test.cpp
- $srcdir/volume_test.cpp
- $srcdir/voice_test.cpp
- $builddir/liblogger.a
- $builddir/libpeg.a
- $builddir/libsdlapp.a
- $builddir/libsequencer.a
- $builddir/libgtest.a
CPPFLAGS: -I$gtestdir/include $CPPFLAGS
LIBS: $SDL_LIBS $LIBS
$builddir/memory_allocator_test:
src:
- $srcdir/memalloc.c
- $srcdir/memalloc_test.cpp
- $srcdir/memory_allocator.cpp
- $srcdir/memory_allocator_test.cpp
- $builddir/libgtest.a
CPPFLAGS: -I$gtestdir/include $CPPFLAGS
$builddir/serial_number_test:
src: [$srcdir/serial_number_test.cpp, $builddir/libgtest.a]
CPPFLAGS: -I$gtestdir/include $CPPFLAGS
library:
$builddir/liblogger.a:
src:
- $srcdir/logger_c.c
- $srcdir/logger_cpp.cpp
$builddir/libsdlapp.a:
src:
- $srcdir/controller.cpp
- $srcdir/frame_wait_timer.cpp
- $srcdir/font.cpp
- $srcdir/fps.cpp
- $srcdir/load_time.cpp
- $srcdir/point_2d.cpp
- $srcdir/sdl_app.cpp
- $srcdir/sprite.cpp
- $srcdir/texture.cpp
- $srcdir/texture_pool.cpp
- $srcdir/vector_2d.cpp
CPPFLAGS: $SDL_CFLAGS $BOOST_CPPFLAGS $CPPFLAGS
$builddir/libsequencer.a:
src:
- $srcdir/channel.cpp
- $srcdir/filter.cpp
- $srcdir/instrument.cpp
- $srcdir/oscillator.cpp
- $srcdir/oscillator_factory.cpp
- $srcdir/oscillator_stream.cpp
- $srcdir/patch.cpp
- $srcdir/pseudo_triangle_wave_oscillator.cpp
- $srcdir/sampler.cpp
- $srcdir/sine_wave_oscillator.cpp
- $srcdir/song.cpp
- $srcdir/sound.cpp
- $srcdir/triangle_wave_oscillator.cpp
- $srcdir/smf.cpp
- $srcdir/smf_track.cpp
- $srcdir/variable_length_value.cpp
- $srcdir/voice.cpp
CPPFLAGS: $SDL_CFLAGS $BOOST_CPPFLAGS $CPPFLAGS
$builddir/libpeg.a:
src:
- $srcdir/peg.cpp
CPPFLAGS: $BOOST_CPPFLAGS $CPPFLAGS
$builddir/libgtest.a:
src:
- $gtestdir/src/gtest-all.cc
- $gtestdir/src/gtest_main.cc
CPPFLAGS: -I$gtestdir/include -I$gtestdir $CPPFLAGS
misc:
$builddir/build.ninja:
rule: configure2
src: [$srcdir/build.ninja.in]
implicit: []