add macos support
This commit is contained in:
parent
0fc58a06f2
commit
2d168d4ddc
|
|
@ -1,17 +1,22 @@
|
||||||
# Raylib template for Code::Blocks
|
# Raylib template for Code::Blocks
|
||||||
|
|
||||||
1. Install Raylib. On Windows you must install the 'Windows Installer (with MinGW compiler)' package. On other
|
1. Install Raylib. On Windows you must install the 'Windows Installer (with MinGW compiler)' package. On other
|
||||||
platforms you can install however you like.
|
platforms you can install however you like following the instructions in the wiki.
|
||||||
|
* https://github.com/raysan5/raylib/releases/download/3.7.0/raylib_installer_v370.mingw.exe
|
||||||
2. Windows only: In Code::Blocks, select `Settings` `Compiler` `Toolchain executables`.
|
* https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux
|
||||||
Change `Compiler's instrallation directory` to `C:\raylib\MingGW`. Do *not* press auto-detect. There is a screenshot
|
* https://github.com/raysan5/raylib/wiki/Working-on-macOS
|
||||||
below showing how it should look. Press `OK`.
|
|
||||||
|
2. Install and run Code::Blocks.
|
||||||
3. Select `File` `Open` and open the `core_basic_windows.cbp` file.
|
|
||||||
|
3. Windows only: Select `Settings` `Compiler` `Toolchain executables`.
|
||||||
|
Change `Compiler's instrallation directory` to `C:\raylib\MingGW`. Do *not* press auto-detect. There is a screenshot
|
||||||
|
below showing how it should look. Press `OK`.
|
||||||

|
|
||||||
**by D3nX**
|
4. Select `File` `Open` and open the `core_basic_windows.cbp` file.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|

|
||||||
|
**screenshot by D3nX**
|
||||||
|
|
||||||
See also https://github.com/electronstudio/raylib-game-template-codeblocks
|
See also https://github.com/electronstudio/raylib-game-template-codeblocks
|
||||||
|
|
@ -7,8 +7,47 @@
|
||||||
<Option pch_mode="2" />
|
<Option pch_mode="2" />
|
||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
<Build>
|
<Build>
|
||||||
<Target title="Debug">
|
<Target title="Debug (Mac)">
|
||||||
<Option platforms="Unix;Mac;" />
|
<Option platforms="Mac;" />
|
||||||
|
<Option output="bin/Debug/raylib-game-template" prefix_auto="1" extension_auto="1" />
|
||||||
|
<Option working_dir="." />
|
||||||
|
<Option object_output="obj/Debug/" />
|
||||||
|
<Option type="1" />
|
||||||
|
<Option compiler="gcc" />
|
||||||
|
<Compiler>
|
||||||
|
<Add option="-g" />
|
||||||
|
</Compiler>
|
||||||
|
<Linker>
|
||||||
|
<Add library="raylib" />
|
||||||
|
<Add option="-framework OpenGL" />
|
||||||
|
<Add option="-framework Cocoa" />
|
||||||
|
<Add option="-framework IOKit" />
|
||||||
|
<Add option="-framework CoreAudio" />
|
||||||
|
<Add option="-framework CoreVideo" />
|
||||||
|
</Linker>
|
||||||
|
</Target>
|
||||||
|
<Target title="Release (Mac)">
|
||||||
|
<Option platforms="Mac;" />
|
||||||
|
<Option output="bin/Release/raylib-game-template" prefix_auto="1" extension_auto="1" />
|
||||||
|
<Option working_dir="." />
|
||||||
|
<Option object_output="obj/Release/" />
|
||||||
|
<Option type="1" />
|
||||||
|
<Option compiler="gcc" />
|
||||||
|
<Compiler>
|
||||||
|
<Add option="-O2" />
|
||||||
|
</Compiler>
|
||||||
|
<Linker>
|
||||||
|
<Add option="-s" />
|
||||||
|
<Add library="raylib" />
|
||||||
|
<Add option="-framework OpenGL" />
|
||||||
|
<Add option="-framework Cocoa" />
|
||||||
|
<Add option="-framework IOKit" />
|
||||||
|
<Add option="-framework CoreAudio" />
|
||||||
|
<Add option="-framework CoreVideo" />
|
||||||
|
</Linker>
|
||||||
|
</Target>
|
||||||
|
<Target title="Debug (Linux)">
|
||||||
|
<Option platforms="Unix;" />
|
||||||
<Option output="bin/Debug/raylib-game-template" prefix_auto="1" extension_auto="1" />
|
<Option output="bin/Debug/raylib-game-template" prefix_auto="1" extension_auto="1" />
|
||||||
<Option working_dir="." />
|
<Option working_dir="." />
|
||||||
<Option object_output="obj/Debug/" />
|
<Option object_output="obj/Debug/" />
|
||||||
|
|
@ -27,8 +66,8 @@
|
||||||
<Add library="X11" />
|
<Add library="X11" />
|
||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release">
|
<Target title="Release (Linux)">
|
||||||
<Option platforms="Unix;Mac;" />
|
<Option platforms="Unix;" />
|
||||||
<Option output="bin/Release/raylib-game-template" prefix_auto="1" extension_auto="1" />
|
<Option output="bin/Release/raylib-game-template" prefix_auto="1" extension_auto="1" />
|
||||||
<Option working_dir="." />
|
<Option working_dir="." />
|
||||||
<Option object_output="obj/Release/" />
|
<Option object_output="obj/Release/" />
|
||||||
|
|
@ -48,7 +87,7 @@
|
||||||
<Add library="X11" />
|
<Add library="X11" />
|
||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Debug (windows)">
|
<Target title="Debug (Windows)">
|
||||||
<Option platforms="Windows;" />
|
<Option platforms="Windows;" />
|
||||||
<Option output="bin/Debug/raylib-game-template" prefix_auto="1" extension_auto="1" />
|
<Option output="bin/Debug/raylib-game-template" prefix_auto="1" extension_auto="1" />
|
||||||
<Option working_dir="." />
|
<Option working_dir="." />
|
||||||
|
|
@ -67,7 +106,7 @@
|
||||||
<Add library="pthread" />
|
<Add library="pthread" />
|
||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release (windows)">
|
<Target title="Release (Windows)">
|
||||||
<Option platforms="Windows;" />
|
<Option platforms="Windows;" />
|
||||||
<Option output="bin/Release/raylib-game-template" prefix_auto="1" extension_auto="1" />
|
<Option output="bin/Release/raylib-game-template" prefix_auto="1" extension_auto="1" />
|
||||||
<Option working_dir="." />
|
<Option working_dir="." />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user