Сборка библиотеки

This commit is contained in:
parent 01ab8cc6ad
commit ce3178450a
2 changed files with 83 additions and 0 deletions

16
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,16 @@
{
"configurations": [
{
"name": "some_name",
"includePath": [
"${workspaceFolder}/include",
"${workspaceFolder}/../dependencies/glm"
],
"compilerPath": "C:/MinGW/bin/g++.exe",
"cStandard": "c11",
"cppStandard": "c++11",
"intelliSenseMode": "gcc-x86"
}
],
"version": 4
}

67
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,67 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "g++",
"command": "C:/MinGW/bin/g++.exe",
"args": [
"-c",
"${workspaceRoot}/src/*.cpp",
"-I${workspaceRoot}/include",
"--std=c++11",
"-I${workspaceRoot}/../dependencies/glm",
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Задача создана отладчиком."
},
{
"type": "cppbuild",
"label": "ar",
"command": "C:/MinGW/bin/ar.exe",
"args": [
"rcs",
"${workspaceRoot}/lib${workspaceFolderBasename}.a",
"${workspaceRoot}/.vscode/*.o"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Задача создана отладчиком."
},
{
"label": "Сборка статической библиотеки",
"dependsOn": [
"g++",
"ar"
],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"version": "2.0.0"
}