Re-write Code::Blocks template to work on Linux and Macos (#2073)
* update code::blocks example to support linux * add macos support * update screenshot * update templates readme
This commit is contained in:
parent
ae7127232d
commit
8e599908d9
5 changed files with 124 additions and 40 deletions
|
@ -2,51 +2,136 @@
|
|||
<CodeBlocks_project_file>
|
||||
<FileVersion major="1" minor="6" />
|
||||
<Project>
|
||||
<Option title="core_basic_window" />
|
||||
<Option title="raylib-game-template" />
|
||||
<Option execution_dir="." />
|
||||
<Option pch_mode="2" />
|
||||
<Option compiler="gcc" />
|
||||
<Build>
|
||||
<Target title="Debug">
|
||||
<Option output="bin/Debug/core_basic_window" prefix_auto="1" extension_auto="1" />
|
||||
<Target title="Debug (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" />
|
||||
<Add directory="../../src" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-lraylib -lopengl32 -lgdi32 -lwinmm" />
|
||||
<Add library="../../src/libraylib.a" />
|
||||
<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">
|
||||
<Option output="bin/Release/core_basic_window" prefix_auto="1" extension_auto="1" />
|
||||
<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" />
|
||||
<Add directory="../../src" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-s" />
|
||||
<Add option="-lraylib -lopengl32 -lgdi32 -lwinmm" />
|
||||
<Add library="../../src/libraylib.a" />
|
||||
<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 working_dir="." />
|
||||
<Option object_output="obj/Debug/" />
|
||||
<Option type="1" />
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-g" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add library="raylib" />
|
||||
<Add library="GL" />
|
||||
<Add library="m" />
|
||||
<Add library="pthread" />
|
||||
<Add library="dl" />
|
||||
<Add library="rt" />
|
||||
<Add library="X11" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Release (Linux)">
|
||||
<Option platforms="Unix;" />
|
||||
<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 library="GL" />
|
||||
<Add library="m" />
|
||||
<Add library="pthread" />
|
||||
<Add library="dl" />
|
||||
<Add library="rt" />
|
||||
<Add library="X11" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Debug (Windows)">
|
||||
<Option platforms="Windows;" />
|
||||
<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 library="opengl32" />
|
||||
<Add library="gdi32" />
|
||||
<Add library="winmm" />
|
||||
<Add option="-static" />
|
||||
<Add library="pthread" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Release (Windows)">
|
||||
<Option platforms="Windows;" />
|
||||
<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 library="opengl32" />
|
||||
<Add library="gdi32" />
|
||||
<Add library="winmm" />
|
||||
<Add option="-static" />
|
||||
<Add library="pthread" />
|
||||
</Linker>
|
||||
</Target>
|
||||
</Build>
|
||||
<Compiler>
|
||||
<Add option="-Wall -std=c99" />
|
||||
<Add option="-Wall" />
|
||||
</Compiler>
|
||||
<Unit filename="core_basic_window.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Extensions>
|
||||
<code_completion />
|
||||
<envvars />
|
||||
<debugger />
|
||||
<lib_finder disable_auto="1" />
|
||||
</Extensions>
|
||||
</Project>
|
||||
</CodeBlocks_project_file>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue