Skip to content

Commit 7581167

Browse files
committed
setup devcontainer
1 parent 8d60a54 commit 7581167

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ghcr.io/xboxdev/nxdk:latest
2+
3+
# NOTE: curl-dev is require to workaround unknown option failure from libcurl (assumed is old version)
4+
RUN apk add build-base ninja zip unzip curl-dev curl git
5+
6+
# Initial env variable for vcpkg path
7+
ENV VCPKG_ROOT="/usr/local/vcpkg"
8+
ENV PATH="${PATH}:${VCPKG_ROOT}"
9+
10+
# Install vcpkg
11+
RUN git clone https://github.com/microsoft/vcpkg ${VCPKG_ROOT} \
12+
&& ${VCPKG_ROOT}/bootstrap-vcpkg.sh
13+
14+
# Include missing path to nxdk's bin directory.
15+
ENV PATH="${NXDK_DIR}/bin:${PATH}"

.devcontainer/devcontainer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "Xbox Development",
3+
4+
"build": {
5+
"dockerfile": "Dockerfile"
6+
},
7+
8+
// Configure tool-specific properties.
9+
"customizations": {
10+
"vscode": {
11+
"extensions": [
12+
"ms-vscode.cpptools-extension-pack",
13+
"ms-vscode.makefile-tools"
14+
]
15+
}
16+
}
17+
}

.vscode/c_cpp_properties.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "nxdk",
5+
"includePath": [
6+
"${default}",
7+
"${NXDK_DIR}/lib",
8+
"${NXDK_DIR}/lib/pdclib/include",
9+
"${NXDK_DIR}/lib/pdclib/platform/xbox/include",
10+
"${NXDK_DIR}/lib/winapi",
11+
"${NXDK_DIR}/lib/xboxrt/**"
12+
],
13+
"compilerArgs": [
14+
"-fms-extensions"
15+
],
16+
"compilerPath": "${NXDK_DIR}/bin/nxdk-cc",
17+
"intelliSenseMode": "clang-x86"
18+
}
19+
],
20+
"version": 4
21+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"C_Cpp.autoAddFileAssociations": false,
3+
"C_Cpp.default.includePath": [
4+
"${workspaceFolder}/src"
5+
],
6+
"files.exclude": {
7+
"**/*.d": true,
8+
"**/*.obj": true
9+
}
10+
}

0 commit comments

Comments
 (0)