diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..f159f7be --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +FROM --platform=linux/x86_64 mcr.microsoft.com/devcontainers/base:ubuntu + +RUN export DEBIAN_FRONTEND=noninteractive && \ + apt-get update && \ + apt-get -y install --no-install-recommends cmake build-essential ninja-build libsdl2-dev \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..f36fdf73 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,28 @@ +{ + "name": "arm-linux-musleabihf", + "build": { + "dockerfile": "Dockerfile" + }, + "runArgs": [ + "--cap-add=SYS_PTRACE", + "--security-opt", + "seccomp=unconfined" + ], + "customizations": { + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + "cmake.configureArgs": [ + "-DCMAKE_TOOLCHAIN_FILE=${workspaceFolder}/toolchain/share/buildroot/toolchainfile.cmake" + ] + }, + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "ms-vscode.cpptools", + "ms-vscode.cmake-tools" + ] + } + }, + "postCreateCommand": "bash setup.sh", + "remoteUser": "vscode" +} \ No newline at end of file