add devcontainer configuration

This commit is contained in:
Matteias Collet 2022-11-12 23:36:34 +00:00 committed by GitHub
parent ec08a449ad
commit 71ac3eac26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

10
.devcontainer/Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM devkitpro/devkitppc:20210726
RUN useradd -ms /bin/bash dev \
&& usermod -aG sudo dev
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
ENV PATH="${PATH}:/opt/devkitpro/devkitPPC/bin"
CMD ["sleep", "infinity"]

View file

@ -0,0 +1,14 @@
{
"name": "DevkitPPC",
"build": {
"dockerfile": "./Dockerfile",
"context": "."
},
"overrideCommand": false,
"remoteUser": "dev",
"extensions": [
"OGoodness.powerpc-syntax",
"ms-vscode.makefile-tools",
"ms-vscode.cpptools"
]
}

22
.vscode/c_cpp_properties.json vendored Normal file
View file

@ -0,0 +1,22 @@
{
"configurations": [
{
"name": "Linux",
"compilerPath": "${DEVKITPPC}/bin/powerpc-eabi-cpp",
"cppStandard": "c++11",
"includePath": [
"${workspaceFolder}/include/**",
"${DEVKITPPC}/include/**",
"${DEVKITPRO}/portlibs/wii/include/**",
"${DEVKITPRO}/portlibs/ppc/include/**",
"${DEVKITPRO}/libogc/include/**",
"${DEVKITPPC}/lib/gcc/powerpc-eabi/11.1.0/include/**"
],
"browse": {
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 4
}