File tree Expand file tree Collapse file tree 5 files changed +30
-3
lines changed Expand file tree Collapse file tree 5 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 33node_modules
44.vscode-test /
55* .vsix
6- library /test.bin
6+ library /test.exe
7+ library /test.d
78.yarn /
Original file line number Diff line number Diff line change @@ -10,4 +10,6 @@ tsconfig.json
1010webpack.config.js
1111yarn.lock
1212library /test /
13- library /test.bin
13+ library /test.exe
14+ library /test.d
15+ .github /
Original file line number Diff line number Diff line change 1+
2+ CXX = g++
3+
4+ CXXFLAGS = -Wall -Wextra -g -I. -MMD
5+
6+ TARGET = test.exe
7+
8+ GTEST_LIBS = -lgtest -lgtest_main -pthread
9+
10+
11+ LDFLAGS = $(GTEST_LIBS )
12+
13+ SRCS = test/main.cpp
14+
15+ -include *.d
16+
17+ test : $(TARGET )
18+
19+ $(TARGET ) : $(SRCS )
20+ $(CXX ) $(CXXFLAGS ) -o $(TARGET ) $(SRCS ) $(LDFLAGS )
21+
22+ clean :
23+ rm -f $(TARGET )
24+
25+ .PHONY : all clean
Original file line number Diff line number Diff line change 4545 "pack" : " vsce pack --no-yarn -o mp-oi-library.vsix" ,
4646 "format:check" : " prettier -c ." ,
4747 "format:write" : " prettier -w ." ,
48- "testlib" : " yarn run test-compile-lib && ./library/test.bin --gtest_repeat=100 --gtest_break_on_failure" ,
4948 "debug-compile-lib" : " g++ -std=c++14 -Wall -Wextra -g -I./library -o ./library/test.bin ./library/test/main.cpp -lgtest -lgtest_main" ,
5049 "test-compile-lib" : " g++ -std=c++14 -Wall -Wextra -O3 -I./library -o ./library/test.bin ./library/test/main.cpp -lgtest -lgtest_main"
5150 },
You can’t perform that action at this time.
0 commit comments