A template for creating a portable dev environment with cross-compilation support for macOS, Windows and Linux targets.
- This container can be used for:
- Development (tested on host OS: Linux)
- Supports debugging and running from VSCode via
launch.json
(F5
andCtrl / Cmd
+F5
)
- Supports debugging and running from VSCode via
- Compiling binaries for Linux (tested on host OS: Linux, macOS, Windows)
- Development (tested on host OS: Linux)
-
VSCode extensions for development in the container:
- C/C++ Extension Pack
- Dev Containers
- Docker
-
Before starting the container, allow X11 forwarding. On the host the Linux machine:
xhost local:docker*
-
Start the container with:
./run-linux-env.sh
-
Once the container started, add the repo as a safe repo:
git config --global --add safe.directory <path/to/repo>
- Start the container with:
./run-linux-env.sh
- This container can be used for compiling binaries for macOS (tested from host OS: Linux, macOS, Windows)
- Start the container with:
./run-macos-env.sh
- This container can be used for compiling binaries for Windows (tested from host OS: Linux, macOS, Windows)
- Start the container with:
./run-windows-env.sh
clean-*
- Removes existing buildsetup-*
- Prepares the shared libraries in the run directorycopy-res-*
- Prepares the assets in the run directorycompile-*
- Compiles the executable