Updated building config

This commit is contained in:
Dmitriy Shishkov 2022-05-31 07:44:42 +03:00
parent f80c95e75e
commit 926718365f
No known key found for this signature in database
GPG Key ID: 26720CB2A9608C97
6 changed files with 43 additions and 119 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
build/
class_diagram/
diagrams/
.vscode/*.log

View File

@ -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
View File

@ -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",
}
]
}

86
.vscode/settings.json vendored
View File

@ -1,84 +1,32 @@
{
"C_Cpp.default.includePath": [
"${default}",
"/usr/local/include/wx-3.1/",
"/usr/local/lib/wx/include/gtk3-unicode-3.1"
"makefile.extensionOutputFolder": "./.vscode",
"makefile.launchConfigurations": [
{
"cwd": "/home/dm1sh/dev/wxMahjong/build",
"binaryPath": "/home/dm1sh/dev/wxMahjong/build/wxMahjong",
"binaryArgs": []
}
],
"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",
"*.tcc": "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",
"deque": "cpp",
"list": "cpp",
"vector": "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",
"cstdint": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"variant": "cpp",
"*.xpm": "cpp",
"cfenv": "cpp",
"charconv": "cpp",
"shared_mutex": "cpp"
},
"C_Cpp.default.cppStandard": "c++20"
"unordered_set": "cpp",
"set": "cpp",
"tuple": "cpp"
}
}

2
.vscode/tasks.json vendored
View File

@ -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": {

View File

@ -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 $@