-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.cpp
More file actions
124 lines (87 loc) · 3.18 KB
/
build.cpp
File metadata and controls
124 lines (87 loc) · 3.18 KB
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
// Copyright 2019 David Butler <croepha@gmail.com>
// TODO is fast-math redundant to Ofast?
//perfsan = " -Ofast -DNDEBUG --rtlib=compiler-rt -nostdlib++ -Wno-unused-variable -Wno-unused-command-line-argument -ffast-math ";
//perfsan = "";
//perfsan = " -Ofast --rtlib=compiler-rt -nostdlib++ -Wno-unused-command-line-argument -ffast-math ";
cxx("tool_getshader");
ld_exec("tool_getshader");
cflags = " -I /usr/include/drm ";
cxx("ds_dri");
cflags = 0;
cxx("test_egl_example");
ldflags = " -lEGL -lSDL2 -lGL";
ld_exec("test_egl_example");
hxx("test_server");
cxx("ds_sdl");
pch_file = 0;
cflags = " -I /usr/include/drm ";
cxx("barclay_client_lib");
cflags = 0;
cxx("keymap");
cxx("window");
//cxx("util_lazy_sdlgl");
cxx("util_gl");
cflags = " -Wno-cast-align ";
cxx("test_server_bug");
cxx("util_DLLists");
cxx("render_draw_texture");
//cxx("render_ascii_mono");
cxx("render_boxes");
_("build $outd/shader_draw_texture.cpp : custom_basic $outd/tool_getshader.exec $ind/render_draw_texture.cpp");
_("build $outd/shader_draw_texture.o : cxx $outd/shader_draw_texture.cpp ");
_("build $outd/shader_boxes.cpp : custom_basic $outd/tool_getshader.exec $ind/render_boxes.cpp");
_("build $outd/shader_boxes.o : cxx $outd/shader_boxes.cpp ");
cxx("ds_common");
cxx("ds_egl");
cxx("ds_sdl_gl33_noegl");
ldflags = " -l EGL -lGL -lgbm -ldrm " PROFILE_LDFLAGS;
ld_exec("ds_dri", "ds_egl", "util_DLLists", // "render_ascii_mono"
"shader_draw_texture", "render_draw_texture",
"shader_boxes", "render_boxes",
"keymap", "window",
"misc", "util_gl", "ds_common");
ldflags = " -l SDL2 -l EGL -lGL " PROFILE_LDFLAGS;
ld_exec("ds_sdl", "ds_egl", "util_DLLists", // "render_ascii_mono"
"shader_draw_texture", "render_draw_texture",
"shader_boxes", "render_boxes",
"keymap", "window",
"misc", "util_gl", "ds_common");
ldflags = " -l SDL2 -lGL " PROFILE_LDFLAGS;
ld_exec("ds_sdl_gl33_noegl", "util_DLLists", // "render_ascii_mono"
"shader_draw_texture", "render_draw_texture",
"shader_boxes", "render_boxes",
"keymap", "window",
"misc", "util_gl", "ds_common");
ld_exec("test_server_bug");
ldflags = 0;
cflags = " -Wno-float-equal -Wno-missing-field-initializers";
cxx("test_client");
cflags = 0;
//cxx("test_client_plot");
cc("example_simple");
cc("example_input");
cc("example_multi_window");
ldflags = " ./build/barclay_client_lib.so ";
ld_exec("example_simple");
ld_exec("example_input");
ld_exec("example_multi_window");
// copy("build/barclay_client_lib.so", "libbarclay.so");
// ldflags = " -L./build -l barclay ";
//ldflags = " -ldrm -lgbm ";
ldflags = " -lGL -lEGL -lgbm -ldrm ";
ld_dynamic("barclay_client_lib");
ldflags = " ./build/barclay_client_lib.so -lGL -lEGL -ldl ";
ld_exec("test_client", "ds_egl", "util_gl");
ldflags = 0;
ld_exec("test_client_plot");
ldflags = " ./build/barclay_client_lib.so ";
//cxx("test_client_opengl_tmp");
//ld_exec("test_client_opengl_tmp");
ldflags = 0;
cxx("test_eglstream");
ldflags = " -l SDL2 -l EGL -lGL " PROFILE_LDFLAGS;
ld_exec("test_eglstream", "ds_sdl", "util_gl", "ds_egl",
"shader_draw_texture", "render_draw_texture"
);
perfsan = "";
cxx("misc");