From 71ac3eac26b5650432601e94035d191735bb7393 Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Sat, 12 Nov 2022 23:36:34 +0000 Subject: [PATCH] add devcontainer configuration --- .devcontainer/Dockerfile | 10 ++++++++++ .devcontainer/devcontainer.json | 14 ++++++++++++++ .vscode/c_cpp_properties.json | 22 ++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 .vscode/c_cpp_properties.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..4ded6cc --- /dev/null +++ b/.devcontainer/Dockerfile @@ -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"] \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..d042687 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" + ] +} \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..3e904f3 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -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 +} \ No newline at end of file