raylib/external
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-12-02 10:42:12 -08:00
..
custom_platforms handle custom platform 2023-12-02 10:42:12 -08:00
examples handle custom platform 2023-12-02 10:42:12 -08:00
README.md handle custom platform 2023-12-02 10:42:12 -08:00

For the sake of this PR, this folder was added to demonstrate what a custom platform look like as well as how to use a custom platform

  • custom_platforms/custom_platform_1: clone of the web platform

  • custom_platforms/custom_platform_2: clone of the desktop platform

  • examples/example_for_custom_platform_1: example using the custom_platform_1

    How to build (use emscripten since it is a web platform: make sure you use the proper locations)

    mkdir build
    cd build
    cmake -DCMAKE_TOOLCHAIN_FILE=/usr/local/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DEMSDK=/usr/local/emsdk -DPLATFORM=Custom -DCMAKE_BUILD_TYPE=Debug ..
    cmake --build . --target example_for_custom_platform_1
    
  • examples/example_for_custom_platform_2: example using the custom_platform_2

    How to build:

    mkdir build
    cd build
    cmake -DPLATFORM=Custom -DCMAKE_BUILD_TYPE=Debug ..
    cmake --build . --target example_for_custom_platform_2