summaryrefslogtreecommitdiffhomepage
path: root/src/CMakeOptions.txt
AgeCommit message (Collapse)Author
2021-01-13Big cmake changes (#1514)hristo
* Delete emscripten.cmake This file is not needed at this point. EMSDK provides a toolchain file that has a lot more things in it and is better supported. Project currently works fine with the documentation provided in Emscripten SDK on how to build projects. * First pass file separation. The main two files are cleaner now. Only important things can be seen. Major changes include: - raylib_static is now the alias instead of raylib - Repeating segments are removed and pulled into separate files into <root>/cmake - File is reordered to make more sense - Installs are better structured - Library is build into an output directory "raylib" instead of "src" - All public header files are now set as a public header file - Source files need to be listed (it is a bad practice to capture them using wildcards and file globs) - CMakeLists are better commented * Second pass on the example dirs. They are quite complex so I'm more hesitant to do major changes. Also it works pretty well. Noticed that I forgot one of the seperated files and added it into src/CMakeLists.txt. * Returned the header copy as it was convenient to have the public headers copied. * A better description to the variable RAYLIB_IS_MAIN Co-authored-by: Rob Loach <[email protected]> * Remove debug message Co-authored-by: Rob Loach <[email protected]> * Improvements based on review. * Simplify the install condition to not be platform specific as it was before. Co-authored-by: Alexander Neumann <[email protected]> * Remove some CMAKE variables as they don't affect the build in any way Co-authored-by: Alexander Neumann <[email protected]> Co-authored-by: Rob Loach <[email protected]> Co-authored-by: Alexander Neumann <[email protected]>
2021-01-06Include SUPPORT_DATA_STORAGE flag for building with CMake (#1515)Kirottu
* Update CMakeOptions.txt * Update config.h.in
2020-09-27Platform DRM (#1388)kernelkinetic
* updated README.md * fixed CMakeLists.txt to allow building and debugging with Visual Studio Code and CMAKE Tools extension * added PLATFORM_DRM contains mouse pointer code from https://github.com/chriscamacho * removed redundant cleanup in InitGraphicsDevice * fixed DRM connector mode selection * added choosen DRM connected mode to log output * added respecting TargetFPS on DRM mode selection, default to 60 * added support for GetMonitorRefreshRate * changed SUPPORT_MOUSE_CURSOR_RPI to SUPPORT_MOUSE_CURSOR_NATIVE * changed avoidProgressive to allowInterlaced * cleanup, function extraction and improved mode selection * README reverted to original for PR * line endings fixed for core.c * removed old code * mouse pointer reverted to small square * replaced SetGraphicDeviceName() by DEFAULT_GRAPHIC_DEVICE_DRM Co-authored-by: kernelkinetic <[email protected]>
2020-05-09Update CMakeOptions.txtraysan5
2019-05-21Add config SUPPORT_SSH_KEYBOARD_RPIRay
Allow to reconfigure stdin to read input keys, this process could lead to undesired effects. Use with care. Disabled by default.
2019-05-07Tweak ON flagRay
2019-05-07Review CMake option flagsRay
2019-05-03Add SUPPORT_HIGH_DPI to CMakeOptions.txtShiqing
2019-01-10WARNING: Renamed module: audio -> raudioRay
Planning to promote raudio module as a simple and easy-to-use front-end for the amazing mini_al library, so the name change. Name comes from raylib-audio but in spanish it also remembers to word "raudo", meaning "very fast", an analogy that fits perfectly to the usefulness and performance of the library! Consequently, raylib version has been bumped to 2.4-dev.
2018-10-31Add flag: SUPPORT_EVENTS_WAITINGRay
Wait for input events passively (sleep) instead of polling events actively every frame
2018-10-18Removed OpenAL backendRay
2018-10-07CMake: accept standard -DBUILD_SHARED_LIBS as wellAhmad Fatoum
-DBUILD_SHARED_LIBS=OFF == -DSHARED=OFF -DSTATIC=ON -DBUILD_SHARED_LIBS=ON == -DSHARED=ON -DSTATIC=OFF Fixes #626.
2018-09-17Improved data export capabilities!Ray
REVIEWED: ExportImage() REVIEWED: ExportMesh() ADDED: ExportWave() REMOVED: Internal funcs: SavePNG(), SaveBMP() NOTE: These changes break the API (parameters order)
2018-07-29Fix typo (s/proedural/procedural)Ahmad Fatoum
2018-07-29CMake: Set -DMACOS_FATLIB=OFF by defaultAhmad Fatoum
Homebrew doesn't ship 32-bit libraries anymore, so using both -DUSE_EXTERNAL_GLFW and -DMACOS_FATLIB with a Homebrew GLFW would fail. With -DUSE_EXTERNAL_GLFW=OFF, this is not a problem, but I think keeping it off by default makes more sense. If someone wants universal libraries, they can just toggle it.
2018-07-29CMake: Major cleanup to support find_package(raylib)Ahmad Fatoum
Remove that link_libraries_to_executable() hack and defines a proper raylib target that can be used with target_link_libraries. The same target is also available for external (user) code by using find_package(raylib). This results in: - Remove hardcoded build directories from examples and games CMakeLists.txt - Allow rlgl_standalone and other special examples to be built easily - Allow CMake projects to find_package(raylib instead of fiddling with pkg-config - Makes code a little more maintainable - Fixes #471, #606. - Makes code less confusing by removing the double use of PLATFORM (#584). Note that this is still not _The Right Way_(TM), because normally raylib-config.cmake (or its includes) would be automatically generated. I didn't manage to get that to work though, so I went the easier route of just wrapping pkg_check_modules for consumption by find_package.
2018-07-29CI: Build with all optional formats enabledAhmad Fatoum
also makes one configuration shared-only dr_flac is not built on i386, because GCC 4.8 complains about asm("cpuid" clobbering ebx, as it's using ebx for PIC. Instead of downloading a newer GCC (and multilib), disable FLAC for that one configuration...
2018-07-23CMake: Fail when -D{PLATFORM,OPENGL_VERSION}=INVALID_VALUEAhmad Fatoum
as well as -DUSE_EXTERNAL_GLFW. Nips issues like #584 in the bud.
2018-07-16Reviewed compilation optionsRay
2018-05-21cmake: Fix PLATFORM_WEB buildAhmad Fatoum
Did this ever work? Surely, doesn't look like it...
2018-04-29Support shapes drawing using only QUADSraysan5
Also added new compilation FLAGS for that pourpose
2018-04-07CMake: Generate config.h from CMakeOptions.txtAhmad Fatoum
I would have liked config.h to be selected by include dir configuration, but this way is less intrusive.
2018-04-07Split CMake options into separate CMakeOptions.txtAhmad Fatoum