handle custom platform
This commit is contained in:
parent
0748dc2d1e
commit
30ccc969de
4 changed files with 3514 additions and 10 deletions
5
external/custom_platforms/custom_platform_1/cmake/raylibPlatformCustomLibraryConfig.cmake
vendored
Normal file
5
external/custom_platforms/custom_platform_1/cmake/raylibPlatformCustomLibraryConfig.cmake
vendored
Normal 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")
|
||||
3
external/custom_platforms/custom_platform_1/cmake/raylibPlatformCustomTargetConfig.cmake
vendored
Normal file
3
external/custom_platforms/custom_platform_1/cmake/raylibPlatformCustomTargetConfig.cmake
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
message(STATUS "From raylibPlatformCustomTargetConfig (Custom platform 1 (Web)")
|
||||
|
||||
target_link_options(raylib PRIVATE "-sUSE_GLFW=3")
|
||||
1319
external/custom_platforms/custom_platform_1/src/raylib_platform_custom.c
vendored
Normal file
1319
external/custom_platforms/custom_platform_1/src/raylib_platform_custom.c
vendored
Normal file
File diff suppressed because it is too large
Load diff
36
external/custom_platforms/custom_platform_1/src/raylib_platform_custom.h
vendored
Normal file
36
external/custom_platforms/custom_platform_1/src/raylib_platform_custom.h
vendored
Normal 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
|
||||
Loading…
Reference in a new issue