Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for devcontainer locally and remotely #83

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM ghcr.io/xboxdev/nxdk:latest

# NOTE: curl-dev is require to workaround unknown option failure from libcurl (assumed is old version)
RUN apk add build-base ninja zip unzip curl-dev curl git

# Initial env variable for vcpkg path
ENV VCPKG_ROOT="/usr/local/vcpkg"
ENV PATH="${PATH}:${VCPKG_ROOT}"

# Install vcpkg
RUN git clone https://github.com/microsoft/vcpkg ${VCPKG_ROOT} \
&& ${VCPKG_ROOT}/bootstrap-vcpkg.sh

# Include missing path to nxdk's bin directory.
ENV PATH="${NXDK_DIR}/bin:${PATH}"
17 changes: 17 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Xbox Development",

"build": {
"dockerfile": "Dockerfile"
},

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools-extension-pack",
"ms-vscode.makefile-tools"
]
}
}
}
22 changes: 22 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"configurations": [
{
"name": "nxdk",
"includePath": [
"${default}",
"${NXDK_DIR}/lib",
"${NXDK_DIR}/lib/pdclib/include",
"${NXDK_DIR}/lib/pdclib/platform/xbox/include",
"${NXDK_DIR}/lib/winapi",
"${NXDK_DIR}/lib/xboxrt/libc_extensions",
"${NXDK_DIR}/lib/xboxrt/vcruntime"
],
"compilerArgs": [
"-fms-extensions"
],
"compilerPath": "${NXDK_DIR}/bin/nxdk-cc",
"intelliSenseMode": "windows-clang-x86"
}
],
"version": 4
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"C_Cpp.autoAddFileAssociations": false,
"C_Cpp.default.includePath": [
"${workspaceFolder}/src"
],
"files.exclude": {
"**/*.d": true,
"**/*.obj": true
}
}
Loading