-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
66 lines (48 loc) · 2.59 KB
/
Makefile
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
build:
mkdir build
cd build && cmake ../
format-check:
find src -name '*.cpp' | xargs clang-format --dry-run --Werror --style=file --fallback-style="LLVM"
find src -name '*.h' | xargs clang-format --dry-run --Werror --style=file --fallback-style="LLVM"
format-run:
find src -name '*.cpp' | xargs clang-format -i --Werror --style=file --fallback-style="LLVM"
find src -name '*.h' | xargs clang-format -i --Werror --style=file --fallback-style="LLVM"
zig-build:
.\dependencies\toolset\zig\zig.exe build --cache-dir build/cache
zig-wasm-build:
.\dependencies\toolset\zig\zig.exe build -Dtarget=wasm32-freestanding-musl
# CC="zig cc -target wasm32-freestanding-musl" CXX="zig c++ -target wasm32-freestanding-musl" AR="zig ar" RANLIB="zig ranlib" uname_S="Linux" uname_M="x86_64" C11_ATOMIC=yes USE_JEMALLOC=no USE_SYSTEMD=no
coverage:
gcovr -r .. --html --html-details \
-o coverage_report.html -j 8 -vvv \
--gcov-exclude '.*dependencies/.*' \
-e '.*dependencies/.*' \
--exclude-directories dependencies/
build-release:
conan install conanfile.txt --build=missing --profile:build=./conan/release --profile:host=./conan/release
cmake --preset release
cmake --build --preset release
build-development:
conan install conanfile.txt --build=missing --profile:build=./conan/development --profile:host=./conan/development
cmake --preset conan-relwithdebinfo
cmake --build --preset conan-relwithdebinfo
build-development-win32:
conan install conanfile.txt --build=missing --profile:build=./conan/development --profile:host=./conan/development
cmake --preset conan-default
cmake --build --preset development
# git submodule update --init
# pip install conan cmake gcovr
build-debug:
conan install conanfile.txt --build=missing --profile:build=./conan/debug --profile:host=./conan/debug
cmake --preset conan-debug
cmake --build --preset conan-debug
build-emacscripten:
# build emsdk 3.1.64 that does not exist on conan.io
# conan create /home/newton/work/lython/dependencies/toolset/emsdk_recipe
conan install conanfile.txt --build=missing --profile:build=./conan/debug --profile:host=./conan/emscripten
/home/newton/miniconda3/bin/cmake -DCMAKE_VERBOSE_MAKEFILE=ON --preset conan-release -DNO_LLVM=1
/home/newton/miniconda3/bin/cmake --build --preset conan-release
# conan install . -pr:b default -pr:h emscripten-wasm-clang -s build_type=Release -if cmake-build-release -b missing
# source ./cmake-build-release/conanbuild.sh
# cmake -S . -B cmake-build-release -DCMAKE_TOOLCHAIN_FILE=cmake-build-release/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
# cmake --build cmake-build-release --config Release