Go to file
Brianna Townsend a39f8e9c27
Merge pull request #2 from krishean/macos
Add macOS support, fix x86 msvc builds, other improvements

This is great and very thorough, thank you!
2023-10-09 09:47:46 -07:00
SDL@95a6f986a0 submodules and initial commit 2023-09-20 07:34:23 -07:00
box2d@411acc32eb submodules and initial commit 2023-09-20 07:34:23 -07:00
imgui@d6360c1ba9 submodules and initial commit 2023-09-20 07:34:23 -07:00
scratch Switch msvc build from MD to MT 2023-10-08 04:21:07 -04:00
scratch_box2d Switch msvc build from MD to MT 2023-10-08 04:21:07 -04:00
scratch_imgui Switch msvc build from MD to MT 2023-10-08 04:21:07 -04:00
stb@5736b15f7e submodules and initial commit 2023-09-20 07:34:23 -07:00
.gitignore submodules and initial commit 2023-09-20 07:34:23 -07:00
.gitmodules change gitmodules urls to https 2023-09-26 23:14:39 -04:00
LICENSE.txt Add README.md and LICENSE.txt. 2023-09-20 07:35:35 -07:00
Makefile Add linux/msys2 makefiles 2023-09-26 23:16:16 -04:00
README.md Updates to README.md 2023-10-08 02:04:46 -04:00
scratch.sln Fix x86 builds in msvc project files 2023-10-08 02:02:10 -04:00

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 or x64
  • Configuration can be Debug or Release
  • 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 the bin/ 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 the bin/ 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 the bin/ directory