blob: e8535f3a6f98802deaef3a44fd64991753188b37 (
plain) (
blame)
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
|
.PHONY: clean build test
all: build
build:
@mkdir -p build
@cd build/ && cmake .. && make -j4
# cp --no-preserve=mode,ownership -r ${CEF_PACKAGE_PATH}/lib/* ./build/lib/
# cp --no-preserve=mode,ownership -r ${CEF_PACKAGE_PATH}/share/cef/* ./build/lib/
@cp build/compile_commands.json .
test: build
cd build && QT_QPA_PLATFORM=offscreen ctest -V
clean:
rm -rf build/
rm -f compile_commands.json
run: build
./build/null-browser
debug:
DEBUG=1 make build
gdb ./build/null-browser
build-release:
RELEASE=1 make build
check:
clang-format -i ./src/**/*.{hpp,cpp}
clang-tidy --config-file=.clang-tidy ./src/**/*.{hpp,cpp}
|