aboutsummaryrefslogtreecommitdiff
path: root/utils.cmake
AgeCommit message (Collapse)Author
2018-05-21Move utils.cmake to separate cmake/ directoryAhmad Fatoum
2018-05-12CMake: (Properly) build glfw separately with CMakeAhmad Fatoum
This reverts commit 2d6fb5c628068757387525e190c3afdbe33ae9c6, and adds a fix for Alien::raylib's test failures. The tests failed because the resulting static library didn't reexport GLFW symbols. As a fix, we now have GLFW create a CMake "object library" target that we can link with both the static and shared raylib. This is arguably ugly... Proper fix would probably be a GLFW upstream object library target. Closes #536.
2018-05-11Revert "CMake: Build glfw separately with CMake"Ahmad Fatoum
This reverts commit 0adb4b67de6dfe3f7a0a557130dffc3b8f4d6a43, because it failed tests for Alien::raylib: http://www.cpantesters.org/distro/A/Alien-raylib.html
2018-05-11CMake: Build glfw separately with CMakeAhmad Fatoum
Makes it easier to support Wayland later on.
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-07Add GNUInstallDirs and USE_AUDIO/USE_WAYLAND options to CMake (#518)Milan Nikolic
2018-02-11pkg-config: Empty Requires.private on shared-only buildAhmad Fatoum
If user doesn't build the static library, `pkg-config --static --libs raylib` should be equivalent to `pkg-config --libs raylib`.
2018-02-11mini_al: Support {Net,Open}BSD OSSAhmad Fatoum
Fixes this build failure: http://www.cpantesters.org/cpan/report/a069fade-0e1f-11e8-a1cf-bb670eaac09d
2018-02-04CMake: Rename WITH_SYSTEM_GLFW to USE_EXTERNAL_GLFWAhmad Fatoum
for consistency with Makefile. Requested by @raysan5 in #453.
2018-02-03CMake: Fix typo in GLFW detectionAhmad Fatoum
Let it be noted I utterly dislike their syntax.
2018-02-03CMake: Add tristate option for using system GLFW (#455)Ahmad Fatoum
-DWITH_SYSTEM_GLFW=ON: Link against system glfw and fail otherwise -DWITH_SYSTEM_GLFW=OFF: Use embedded rglfw.c -DWITH_SYSTEM_GLFW=IF_POSSIBLE: Probe for system glfw but fallback to rglfw if unavailable Also change Linux 64-bit CI build to install system glfw and use it, so this doesn't bitrot. Addresses #453.
2018-01-27CMake: Add missing 0 to minimum versionAhmad Fatoum
Removed by mistake.
2018-01-27CMake: Search dependencies and build pkg-config's Libs.private with itAhmad Fatoum
2018-01-27CMake: remove OpenAL dependencyAhmad Fatoum
2017-12-10Fix CI builds after mini_al changesAhmad Fatoum
2017-11-29Added compile with cmake for FreeBSDMartinfx
2017-11-25Build examples and games on Travis CIAhmad Fatoum
They were disabled because they failed to build, but this patch set fixes the build on Linux and macOS. This doesn't apply to the AppVeyor build on Windows yet; it currently fails at linking with OpenAL.
2017-11-24Generate and install pkg-config pc fileAhmad Fatoum
After installation, compiling new programs is possible with $ cc game.c `pkg-config --static --libs --cflags raylib` or $ cc game.c `pkg-config --libs --cflags raylib` depending on configuration Also adds following configuration options: - WITH_PIC "Compile static library as position-independent code" - STATIC_RAYLIB "Build raylib as a static library" - MACOS_FATLIB "Build fat library for both i386 and x86_64 on macOS"
2017-11-22Fix macOS build of new rglfw.c approachAhmad Fatoum
There have been two problems: * GLFW itself was compiled with the definitions for compiling _against_ GLFW (fixed by removing requirement for external glfw) * rglfw.c was being compiled as C code, although it includes Objective C files. This _might_ break the Windows build, needs to be checked. Fixes #391, but as noted I'd prefer though a separate source directory and build script for GLFW.
2017-08-27CMake based build system.ASDF
Some people might find this handly