Add macOS support, fix x86 msvc builds, other improvements This is great and very thorough, thank you! |
||
---|---|---|
SDL@95a6f986a0 | ||
box2d@411acc32eb | ||
imgui@d6360c1ba9 | ||
scratch | ||
scratch_box2d | ||
scratch_imgui | ||
stb@5736b15f7e | ||
.gitignore | ||
.gitmodules | ||
LICENSE.txt | ||
Makefile | ||
README.md | ||
scratch.sln |
README.md
scratch
Windows Instructions:
Visual Studio 2022:
git clone https://github.com/britown88/scratch.git
cd scratch
git submodule update --init
- Open
scratch.sln
in Visual Studio 2022 - Click The Green Local Windows Debugger button top center
- Start coding in scratch/main.cpp
Microsoft C++ Build Tools:
- Install Microsoft C++ Build Tools
- Run the Visual Studio Tools Command Prompt of your choice
git clone https://github.com/britown88/scratch.git
cd scratch
git submodule update --init
msbuild /m /t:Clean,Build /p:Configuration=Release /p:Platform=x64 scratch.sln
Notes:
- Platform can be
Win32
orx64
- Configuration can be
Debug
orRelease
- The
scratch.exe
binary will end up in the%Platform%\%Configuration%
directory
Msys2:
- Install Msys2
- Run your preferred MSYS2 MinGW environment
- Install prerequisites:
pacman -S git make ${MINGW_PACKAGE_PREFIX}-gcc ${MINGW_PACKAGE_PREFIX}-SDL2
git clone https://github.com/britown88/scratch.git
cd scratch
git submodule update --init
make -j$(nproc)
- The
scratch.exe
binary will end up in thebin/
directory
Ubuntu/Debian Linux Instructions:
- Install prerequisites:
sudo apt-get install git build-essential libsdl2-dev
git clone https://github.com/britown88/scratch.git
cd scratch
git submodule update --init
make -j$(nproc)
- The
scratch
binary will end up in thebin/
directory
macOS Instructions:
- Install prerequisites:
brew install git make gcc sdl2 coreutils
git clone https://github.com/britown88/scratch.git
cd scratch
git submodule update --init
make -j$(nproc)
- The
scratch
binary will end up in thebin/
directory