summaryrefslogtreecommitdiffhomepage
path: root/src/CMakeLists.txt
AgeCommit message (Collapse)Author
2024-07-16Removes the redundant USE_AUDIO flag (#4158)Lázaro Albuquerque
2024-07-01WARNING: BREAKING: Renamed `PLATFORM_DESKTOP` to `PLATFORM_DESKTOP_GLFW`Ray
This could potentially be a breaking change, for consistency, now every possible desktop backend has the proper name assigned: GLFW, SDL, RGFW raylib build system has been reviewed to fallback to `PLATFORM_DESKTOP_GLFW` by default when `PLATFORM_DESKTOP` defined
2024-06-22[build] CMake: pass -sFULL_ES3 instead of -sFULL_ES3=1 (#4090)manuel5975p
* Allow ES3 in LibraryConfigurations.cmake * Put FULL_ES3 as linker option * Remove =1
2024-06-21[build] CMake: support OpenGL ES3 in `LibraryConfigurations.cmake` (#4079)manuel5975p
* Allow ES3 in LibraryConfigurations.cmake * Put FULL_ES3 as linker option
2024-06-16[build] Fix some warnings on web builds and remove some redundant flags. (#4069)Lázaro Albuquerque
* update * Revert "update" This reverts commit e8adcabd94830be66938e12143c8fe23cdeab605. * update * remove a not stricly required flag
2024-04-02Remove trailing spacesRay
2023-12-09Updating CMake version to 5.0 so libraries are correctly versioned (#3615)David Williams
2023-11-28Hide unneeded internal symbols when building raylib as an so or dylib (#3573)Peter0x44
2023-03-22Update CMakeLists.txtRay
2023-03-06fix(build): Fix DLL build on Windows (#2951)Sid K
Changes the DLL export condition to apply to platform WIN32 instead of compiler MSVC
2022-11-30Fix an issue when compiling for web (#2820)Hristo Iliev
It would try to use the glfw on the system but we're cross-compiling for web where the implementation is provided by emscripten's team
2022-08-02Update versionRay
2022-07-15Removed raudio.h from public headerRay
2022-02-05Make audio examples compile with external glfw on Linux (#2329)locriacyber
2021-11-01Update version in CMakeRay
2021-09-22WARNING: MODULES RENAMING!!!Ray
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required. The renamed modules are: - `core` -> `rcore` - `shapes` -> `rshapes` - `textures` -> `rtextures` - `text` -> `rtext` - `models` -> `rmodels` - `camera` -> `rcamera` - `gestures` -> `rgestures` - `core` -> `rcore` All the build systems has been adapted to this change.
2021-05-31Update CMakeLists.txtRay
2021-05-10~Updated project version (#1761)ProphesorIks
Updated to fix versioning and linking issues. Old version would cause examples to not be linked on fresh raylib install or linked with an old library version on updated raylib install.
2021-01-26Documentation cmake (#1549)hristo
* Documenting the compiler flags * Moved some android compiler flags and added documentation on them too. * Some more restructuring. Removed unnecessary comments that were self described by the code. Added some more explanations around certain parts of CMake and especially around compiler flags.
2021-01-25Removing config.h.in file (#1546)hristo
CMake relied on this file for configurations and also was interfering in the regular config.h by having a separate definition if building with CMake. This was not entirely correct so instead we will define compile time definitions separately through CMake (CompileDefinitions.cmake) and also will use the provided EXTERNAL_CONFIG_FLAGS that I found that will not use config.h in through the build process. I also introduced a new compiler option (CUSTOMIZE_BUILD) that when OFF will use the default config.h and when ON will show other options for redefining your own options. Fixed an error in rlgl.h where if you have both RLGL_STANDALONE and SUPPORT_VR_SIMULATOR you get a compile time error.
2021-01-25Removing test file. (#1545)hristo
This test file is just testing compilation with the library works correctly but is no longer needed because: - it is not cross platform - it taps into the CTest system which is better suited for real unit/integration tests - it can be incorporated into the pipeline of github actions instead in the future
2021-01-22Remove STATIC and SHARED variables. (#1542)hristo
As described in the official documentation https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html this flag is global by default and controls if the library will be built as a shared or a static library allowing us to define only one call to the add_library function (without specifying its type). It is also added as an option to be visible in CMake GUI applications.
2021-01-16Fix cmake build error dirent (#1536)hristo
* Better ignore support for idea projects. Added a wildcard at the end because different configurations would have a diffeerent build directory. * Removed external from being a relative include directory for target raylib. Fixes #1533
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]>
2020-12-19Set version for raylib 3.5Ray
2020-12-16Add headers to install cmake (#1462)hristo
* Changed extension for web from .bc to .a I did this to support vcpkg expectation. When using the library from vcpkg for web you would install it using vcpkg install raylib:wasm32-emscripten but also vcpkg expects the output lib to be with .a extension instead of .bc Doesn't make a difference for standalone builds or when raylib is used as a subdirectory dependency. * Added headers to install targets to fix vcpkg usage Currently vcpkg works by installing the cmake target into its packages directory. The problem is that install only copies the public header at this point so we need to add the others to the install targets.
2020-12-14Changed extension for web from .bc to .a (#1461)hristo
I did this to support vcpkg expectation. When using the library from vcpkg for web you would install it using vcpkg install raylib:wasm32-emscripten but also vcpkg expects the output lib to be with .a extension instead of .bc Doesn't make a difference for standalone builds or when raylib is used as a subdirectory dependency.
2020-09-29Fix 1393 (#1395)Tobias Jammer
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-09-25Add join_paths and join prefix with include/lib dirs (#1383)Adam Griffiths
Fixes #1380: incorrect usage of CMake paths which causes issues on some more complicated environments (NixOS especially).
2020-08-08CMake: don't use raylib_static name for MinGW on WindowsAhmad Fatoum
There are no *.lib files that could overwrite each other when building both static and shared versions of raylib at once. So just use the normal library name without _static suffix.
2020-05-07Update CMakeLists.txt to fix CMake build for Raspberry Pi (#1229)armageddon421
2020-04-08Revert "CMake: Don't create symlinks on unsupporting file systems (#539)"Ahmad Fatoum
As noted in #539, the symlink check was to support compiling raylib on VirtualBox vboxfs as no symlinks are supported there. With me using Linux as daily driver outside VirtualBox now, this 'feature' is most likely unused by anyone, but still annoys other users (#791). Just revert it and be done with it. If there are really others building raylib on vboxfs or a similarly crippled file system under Linux, they should now step forward when their build breaks. This reverts commit b8ca51fd01a68b9b6040f8c3c631eedefd7d7735.
2020-03-30Update project version for releaseRay
2020-03-24CMakeLists.txt: report generated CMAKE_CONFIGURATION_TYPESAhmad Fatoum
We might want to customize this in feature for multi-config builds (e.g. a Visual studio build with both Debug and Release configurations). Output the variable value for user awareness.
2020-02-03Update project version for release2.6.02.6Ray
2020-01-07Renamed LICENSE.md to LICENSERay
2019-06-05build: increment API_VERSION after releaseAhmad Fatoum
With v2.5.0 out, increment API_VERSION, so binaries dynamically linked against the released raylib aren't accidentally paired with a development or later released raylib that may be incompatible.
2019-05-20Update raylib version to 2.5Ray
2019-05-15CMake: add winmm.dll as Windows dependencyAhmad Fatoum
Fixes: e0e2346c2266 ("NO SUPPORT_BUSY_WAIT_LOOP by default")
2019-05-12Update CMakeLists.txtraysan5
2019-05-04CMake: don't use system GLFW headers if using built-in GLFWAhmad Fatoum
This fixes the current CI failure.
2019-04-09Resolve CI failure with MinGWmyd7349
2019-04-09Fix CMake support on Win32myd7349
2019-03-16Support no-audio no-models modules compilationraysan5
Renamed flags for convenience.
2019-02-12Corrected issueRay
2019-02-12Include mini_al directly, no separate moduleRay
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-12-21Use stb_vorbis.h as header onlyRay
2018-10-18Removed OpenAL backendRay