-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libavc: Add VSCode configuration files for Linux & MacOS
- Added .vscode directory with tasks.json, settings.json, c_cpp_properties.json, and launch.json. - Configures the Build button to build the project. - Configures Run and Debug panel to run avcdec and avcenc test benches. Test: Build Change-Id: Ifee9130f0041f77907a1a668227bc049270898e1
- Loading branch information
1 parent
266cda3
commit 1586ee6
Showing
4 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Native", | ||
"includePath": [ | ||
"${workspaceFolder}/**", | ||
"${workspaceFolder}/common", | ||
"${workspaceFolder}/decoder", | ||
"${workspaceFolder}/encoder" | ||
], | ||
"defines": [], | ||
"cStandard": "c17", | ||
"cppStandard": "c++17", | ||
"configurationProvider": "ms-vscode.cmake-tools" | ||
} | ||
], | ||
"version": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run avcenc - Linux", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/build/avcenc", | ||
"args": ["../examples/avcenc/enc.cfg"], | ||
"stopAtEntry": false, | ||
"cwd": "${workspaceFolder}/build", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Run avcenc - Mac", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/build/avcenc", | ||
"args": ["../examples/avcenc/enc.cfg"], | ||
"stopAtEntry": false, | ||
"cwd": "${workspaceFolder}/build", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "lldb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for lldb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Run avcdec - Linux", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/build/avcdec", | ||
"args": ["../examples/avcdec/dec.cfg"], | ||
"stopAtEntry": false, | ||
"cwd": "${workspaceFolder}/build", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Run avcdec - Mac", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/build/avcdec", | ||
"args": ["../examples/avcdec/dec.cfg"], | ||
"stopAtEntry": false, | ||
"cwd": "${workspaceFolder}/build", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "lldb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for lldb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"cmake.buildDirectory": "${workspaceFolder}/build", | ||
"cmake.sourceDirectory": "${workspaceFolder}", | ||
"cmake.configureArgs": [ | ||
"-DENABLE_MVC=OFF", | ||
"-DENABLE_SVC=OFF", | ||
"-DENABLE_TESTS=OFF", | ||
"-DCMAKE_C_COMPILER=clang", | ||
"-DCMAKE_CXX_COMPILER=clang++" | ||
], | ||
"cmake.preferredGenerators": [ | ||
"Unix Makefiles" | ||
], | ||
"cmake.debugConfig": { | ||
"avcenc": "avcenc", | ||
"avcdec": "avcdec" | ||
}, | ||
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "cmake", | ||
"label": "Configure", | ||
"command": "configure", | ||
"problemMatcher": [ | ||
"$gcc" | ||
], | ||
"group": "build" | ||
}, | ||
{ | ||
"type": "cmake", | ||
"label": "Build", | ||
"command": "build", | ||
"problemMatcher": [ | ||
"$gcc" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"dependsOn": [ | ||
"Configure" | ||
] | ||
} | ||
] | ||
} |