-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tupfile
32 lines (28 loc) · 1.69 KB
/
Tupfile
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
include_rules
run deno --quiet run --allow-read util/definesWriter.ts "@(NAME)"
# Compile sources
: foreach $(SRC_PATH)/main.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/version.cpp | $(ROOT)/<gen_headers> |> !cpp "-DTSVIZ_VERSION=$(VERSION)" |>
: foreach $(SRC_PATH)/app/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/builder/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/graphics/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/graphics/type/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/imgui/*.cpp | $(ROOT)/<gen_headers> |> !cpp -I$(THIRD_PARTY_PATH)/imgui/ -I$(THIRD_PARTY_PATH)/imgui/backends/ |>
: foreach $(SRC_PATH)/jw_util/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/program/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/render/*.cpp | $(ROOT)/<gen_headers> |> !cpp -I$(THIRD_PARTY_PATH)/imgui/ -I$(THIRD_PARTY_PATH)/imgui/backends/ |>
: foreach $(SRC_PATH)/render/program/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/series/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/series/type/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/stream/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
: foreach $(SRC_PATH)/util/*.cpp | $(ROOT)/<gen_headers> |> !cpp |>
ifeq (@(DONT_LINK),1)
# We have to write the linker command instead of executing it because the debug symbols don't get written correctly inside of tup.
# It works better when it's executed from QtCreator.
: | $(ROOT)/<src_objects> |> !write_linker_cmd |>
else
# Link program
: | $(ROOT)/<src_objects> |> !link |>
endif
preload tests
run deno --quiet run --allow-read util/testsWriter.ts "@(NAME)"