Updated building config
This commit is contained in:
parent
f80c95e75e
commit
926718365f
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
build/
|
||||
class_diagram/
|
||||
diagrams/
|
||||
.vscode/*.log
|
16
.vscode/c_cpp_properties.json
vendored
16
.vscode/c_cpp_properties.json
vendored
@ -1,16 +0,0 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Linux",
|
||||
"includePath": [
|
||||
"${default}"
|
||||
],
|
||||
"defines": [],
|
||||
"compilerPath": "/usr/bin/clang",
|
||||
"cStandard": "c17",
|
||||
"cppStandard": "c++17",
|
||||
"intelliSenseMode": "linux-clang-x64"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
25
.vscode/launch.json
vendored
25
.vscode/launch.json
vendored
@ -5,25 +5,16 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "make - Build and debug active file",
|
||||
"type": "cppdbg",
|
||||
"type": "lldb",
|
||||
"request": "launch",
|
||||
"program": "${fileDirname}/build/wxMahjong",
|
||||
"name": "Debug",
|
||||
"program": "${workspaceFolder}/build/wxMahjong",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${fileDirname}",
|
||||
"environment": [{"name": "LD_LIBRARY_PATH", "value": "$LD_LIBRARY_PATH:/usr/local/lib"}],
|
||||
"externalConsole": false,
|
||||
"MIMode": "gdb",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing for gdb",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
],
|
||||
"preLaunchTask": "C/C++: g++ build active file",
|
||||
"miDebuggerPath": "/usr/bin/gdb"
|
||||
"cwd": "${workspaceFolder}",
|
||||
"env": {
|
||||
"LD_LIBRARY_PATH": "$LD_LIBRARY_PATH:/usr/local/lib"
|
||||
},
|
||||
"preLaunchTask": "C/C++: make build active file",
|
||||
}
|
||||
]
|
||||
}
|
112
.vscode/settings.json
vendored
112
.vscode/settings.json
vendored
@ -1,84 +1,32 @@
|
||||
{
|
||||
"C_Cpp.default.includePath": [
|
||||
"${default}",
|
||||
"/usr/local/include/wx-3.1/",
|
||||
"/usr/local/lib/wx/include/gtk3-unicode-3.1"
|
||||
],
|
||||
"files.associations": {
|
||||
"hash_map": "cpp",
|
||||
"*.tcc": "cpp",
|
||||
"deque": "cpp",
|
||||
"list": "cpp",
|
||||
"string": "cpp",
|
||||
"vector": "cpp",
|
||||
"hash_set": "cpp",
|
||||
"valarray": "cpp",
|
||||
"iterator": "cpp",
|
||||
"random": "cpp",
|
||||
"array": "cpp",
|
||||
"string_view": "cpp",
|
||||
"chrono": "cpp",
|
||||
"numeric": "cpp",
|
||||
"streambuf": "cpp",
|
||||
"*.inc": "cpp",
|
||||
"any": "cpp",
|
||||
"atomic": "cpp",
|
||||
"bit": "cpp",
|
||||
"cctype": "cpp",
|
||||
"cinttypes": "cpp",
|
||||
"clocale": "cpp",
|
||||
"cmath": "cpp",
|
||||
"compare": "cpp",
|
||||
"complex": "cpp",
|
||||
"concepts": "cpp",
|
||||
"condition_variable": "cpp",
|
||||
"csignal": "cpp",
|
||||
"cstdarg": "cpp",
|
||||
"cstddef": "cpp",
|
||||
"cstdint": "cpp",
|
||||
"cstdio": "cpp",
|
||||
"cstdlib": "cpp",
|
||||
"cstring": "cpp",
|
||||
"ctime": "cpp",
|
||||
"cwchar": "cpp",
|
||||
"cwctype": "cpp",
|
||||
"map": "cpp",
|
||||
"set": "cpp",
|
||||
"unordered_map": "cpp",
|
||||
"unordered_set": "cpp",
|
||||
"exception": "cpp",
|
||||
"algorithm": "cpp",
|
||||
"functional": "cpp",
|
||||
"memory": "cpp",
|
||||
"memory_resource": "cpp",
|
||||
"optional": "cpp",
|
||||
"ratio": "cpp",
|
||||
"system_error": "cpp",
|
||||
"tuple": "cpp",
|
||||
"type_traits": "cpp",
|
||||
"utility": "cpp",
|
||||
"fstream": "cpp",
|
||||
"initializer_list": "cpp",
|
||||
"iomanip": "cpp",
|
||||
"iosfwd": "cpp",
|
||||
"iostream": "cpp",
|
||||
"istream": "cpp",
|
||||
"limits": "cpp",
|
||||
"mutex": "cpp",
|
||||
"new": "cpp",
|
||||
"numbers": "cpp",
|
||||
"ostream": "cpp",
|
||||
"semaphore": "cpp",
|
||||
"sstream": "cpp",
|
||||
"stdexcept": "cpp",
|
||||
"stop_token": "cpp",
|
||||
"thread": "cpp",
|
||||
"typeinfo": "cpp",
|
||||
"variant": "cpp",
|
||||
"*.xpm": "cpp",
|
||||
"cfenv": "cpp",
|
||||
"charconv": "cpp",
|
||||
"shared_mutex": "cpp"
|
||||
},
|
||||
"C_Cpp.default.cppStandard": "c++20"
|
||||
"makefile.extensionOutputFolder": "./.vscode",
|
||||
"makefile.launchConfigurations": [
|
||||
{
|
||||
"cwd": "/home/dm1sh/dev/wxMahjong/build",
|
||||
"binaryPath": "/home/dm1sh/dev/wxMahjong/build/wxMahjong",
|
||||
"binaryArgs": []
|
||||
}
|
||||
],
|
||||
"files.associations": {
|
||||
"array": "cpp",
|
||||
"*.tcc": "cpp",
|
||||
"cmath": "cpp",
|
||||
"compare": "cpp",
|
||||
"concepts": "cpp",
|
||||
"cstdio": "cpp",
|
||||
"cstdlib": "cpp",
|
||||
"deque": "cpp",
|
||||
"list": "cpp",
|
||||
"vector": "cpp",
|
||||
"exception": "cpp",
|
||||
"initializer_list": "cpp",
|
||||
"limits": "cpp",
|
||||
"new": "cpp",
|
||||
"cstdint": "cpp",
|
||||
"type_traits": "cpp",
|
||||
"typeinfo": "cpp",
|
||||
"unordered_set": "cpp",
|
||||
"set": "cpp",
|
||||
"tuple": "cpp"
|
||||
}
|
||||
}
|
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@ -2,7 +2,7 @@
|
||||
"tasks": [
|
||||
{
|
||||
"type": "cppbuild",
|
||||
"label": "C/C++: g++ build active file",
|
||||
"label": "C/C++: make build active file",
|
||||
"command": "make",
|
||||
"args": [],
|
||||
"options": {
|
||||
|
4
Makefile
4
Makefile
@ -7,12 +7,12 @@ BDIR = build
|
||||
OBJECTS := $(addprefix $(BDIR)/,$(patsubst %.cpp,%.o,$(wildcard *.cpp)))
|
||||
|
||||
$(BDIR)/%.o: %.cpp
|
||||
$(CXX) -c `wx-config --cxxflags` -o $@ $<
|
||||
$(CXX) -c -g `wx-config --cxxflags` -o $@ $<
|
||||
|
||||
all: $(BDIR) $(PROGRAM)
|
||||
|
||||
$(PROGRAM): $(OBJECTS)
|
||||
$(CXX) -o $(BDIR)/$(PROGRAM) $(OBJECTS) `wx-config --libs` -ggdb3
|
||||
$(CXX) -o $(BDIR)/$(PROGRAM) $(OBJECTS) `wx-config --libs` -g
|
||||
|
||||
$(BDIR):
|
||||
mkdir $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user