handle custom platform

This commit is contained in:
Yan Pujante 2023-12-01 11:24:37 -08:00
commit 30ccc969de
4 changed files with 3514 additions and 10 deletions

View file

@ -0,0 +1,5 @@
message(STATUS "From raylibPlatformCustomLibraryConfig (Custom platform 1 (Web)")
set(GRAPHICS "GRAPHICS_API_OPENGL_ES2")
set(CMAKE_LD_FLAGS "${CMAKE_LD_FLAGS} -s USE_GLFW=3 -s ASSERTIONS=1 --profiling")
set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")

View file

@ -0,0 +1,3 @@
message(STATUS "From raylibPlatformCustomTargetConfig (Custom platform 1 (Web)")
target_link_options(raylib PRIVATE "-sUSE_GLFW=3")

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,36 @@
/*******************************************************************************************
* raylib_platform_custom.h
*
* Custom Platform definition file
*
* LICENSE: zlib/libpng
*
* Copyright (c) 2023 Yan Pujante
*
* This software is provided "as-is", without any express or implied warranty. In no event
* will the authors be held liable for any damages arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose, including commercial
* applications, and to alter it and redistribute it freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not claim that you
* wrote the original software. If you use this software in a product, an acknowledgment
* in the product documentation would be appreciated but is not required.
*
* 2. Altered source versions must be plainly marked as such, and must not be misrepresented
* as being the original software.
*
* 3. This notice may not be removed or altered from any source distribution.
*
**********************************************************************************************/
#ifndef RAYLIB_PLATFORM_CUSTOM_H
#define RAYLIB_PLATFORM_CUSTOM_H
#define PLATFORM_CUSTOM_ID "platform_custom_1"
#define PLATFORM_CUSTOM_BACKEND "Platform backend: Custom Platform 1 (Web clone)"
#define PLATFORM_CUSTOM_CLOCK_MONOTONIC
// #define PLATFORM_CUSTOM_DISABLE_HI_RES_TIMER
// #define PLATFORM_CUSTOM_ENABLE_OPENGL_ES2
#endif //RAYLIB_PLATFORM_CUSTOM_H