File tree Expand file tree Collapse file tree 8 files changed +72
-33
lines changed Expand file tree Collapse file tree 8 files changed +72
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -ev
3
+ here=$( dirname " $( readlink -f " $BASH_SOURCE " ) " )
4
+ cd " $here "
5
+
6
+ source /etc/os-release
7
+
8
+ # ../scripts/install.sh
9
+ # ../scripts/install_nonportable.sh
10
+ ./build_flatbuffers.sh
11
+ ./build.sh
Original file line number Diff line number Diff line change 2
2
set -ev
3
3
here=$( dirname " $( readlink -f " $BASH_SOURCE " ) " )
4
4
cd " $here "
5
- ./make.dhall
6
- make clean
7
- make -j
5
+ flatc=" ../../contrib/flatbuffers/flatc"
6
+ " $flatc " -o imgui --cpp imgui/vectorCmd.fbs
7
+
8
+ ./cmakelists.dhall
9
+
10
+ mkdir -p build
11
+ cd build
12
+ cmake ../CMakeLists.txt
13
+ cmake --build . -j
14
+ mv * _exe ..
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ here=$( dirname " $( readlink -f " $BASH_SOURCE " ) " )
3
+ set -ev
4
+ cd ../../contrib/flatbuffers
5
+ cmake -G " Unix Makefiles"
6
+ make -j
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env -S dhall text --output CMakeLists.txt --file
2
+ let prelude = ../ dhall/ prelude. dhall
3
+ let lib = ../ dhall/ lib. dhall
4
+ let cmake = ../ dhall/ cmakelists. dhall
5
+ let sourceTreePartsRepo = ../ dhall/ sourceTreeParts. dhall
6
+ let common = ./ common. dhall
7
+ in
8
+ cmake. cmakelistsToText cmake. cmakelists:: {
9
+ , cxx = common. cxx
10
+ , exe = " imgui_exe"
11
+ , projectName = " imgui_exe"
12
+ , cxxflags = [" -std=c++${Natural/show common.cppstd}" ] # common. cxxflags # common. stdlibFlags
13
+ , ldflags = common. ldflags # common. stdlibFlags
14
+ , sourceTreeParts = common. sourceTreeParts
15
+ }
Original file line number Diff line number Diff line change @@ -23,9 +23,34 @@ let sourceTreeParts = [
23
23
, mainPart
24
24
]
25
25
let cxx = " clang++"
26
- let cppstd = " c++20"
26
+ let cppstd = 20
27
+ let cxxflagsDebug = [
28
+ , " -g"
29
+ , " -gdwarf-4"
30
+ , " -Wall"
31
+ , " -Wformat"
32
+ , " -Wextra"
33
+ , " -O1"
34
+ , " -fsanitize=address"
35
+ , " -fno-omit-frame-pointer"
36
+ , " -DIMZERO_DEBUG_BUILD"
37
+ -- , "-fno-optimize-sibling-calls" -- no tail calls for better stacktraces
38
+ ]
39
+ let cxxflagsRelease = [
40
+ , " -O3"
41
+ ]
42
+ let ldflagsDebug = [" -fsanitize=address" ] : List Text
43
+ let ldflagsRelease = [" -DNDEBUG" ] : List Text
44
+ -- let stdlibFlags = ["-stdlib=libc++"] : List Text
45
+ let stdlibFlags = [] : List Text
46
+ let debug = False
27
47
in {
28
- , sourceTreeParts
29
- , cxx
30
- , cppstd
48
+ , sourceTreeParts
49
+ , cxx
50
+ , cppstd
51
+ , cxxflags = if debug then cxxflagsDebug else cxxflagsRelease
52
+ , ldflags = if debug then ldflagsDebug else ldflagsRelease
53
+ , stdlibFlags
54
+ , debug
31
55
}
56
+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -50,4 +50,5 @@ getContribRepo "https://github.com/stergiotis/imgui_toggle.git" "imgui_toggle" "
50
50
getContribRepo " https://github.com/dhall-lang/dhall-lang" " dhall-lang" " master" " v22.0.0"
51
51
getContribRepo " https://github.com/google/flatbuffers.git" " flatbuffers" " master" " 129ef422e8a4e89d87a7216a865602673a6d0bf3"
52
52
getContribRepo " https://github.com/google/skia" " skia" " chrome/m123" " "
53
+ getContribRepo " https://github.com/wolfpld/tracy" " tracy" " master" " 0d5bd53be393b590da9c7b29079d919d488412c1"
53
54
getMyRepo " https://github.com/stergiotis/boxer.git" " boxer" " main" " "
You can’t perform that action at this time.
0 commit comments