Commit Graph
44 Commits
Author SHA1 Message Date
Chris Thrasher 14378de263 Upgrade to clang-format-17 2024-11-01 15:03:09 -06:00
Chris Thrasher fef1e09542 Prefix library options with CSFML_ 2024-09-24 15:08:30 -06:00
Chris Thrasher 574c6afe05 Use ON and OFF for CMake booleans 2024-09-11 14:36:23 -06:00
Chris Thrasher 02d6d4937a Use modern CMake property to handle static runtime linking with MSVC
See https://github.com/SFML/SFML/pull/1834
2024-09-08 08:49:13 -06:00
Chris Thrasher 055e69520f Support building CSFML as static libraries
Some languages can make use of C foreign function interfaces
compiled as static libraries so it's a good idea for CSFML to
support this use case.
2024-09-07 15:17:05 -06:00
Chris Thrasher cc1b6f0c45 Ensure CMake options include CSFML_ prefix 2024-09-03 10:44:50 -06:00
Chris Thrasher 42aec92642 Add format target for running clang-format 2024-09-01 11:32:18 -06:00
Chris Thrasher 3316223629 Add tidy target for running clang-tidy 2024-08-25 14:18:36 -06:00
Chris Thrasher db4d5e4815 Reenable some MSVC warnings 2024-08-23 14:29:06 -06:00
Chris Thrasher 330b423ee9 Add unit tests
Yay tests!
2024-04-15 15:24:51 -06:00
Chris Thrasher fce7450bbf Merge branch '2.6.x' into feature/backmerge 2024-03-30 20:44:49 -05:00
Chris Thrasher 5e3d87858f Set compiler warnings on a per-target basis 2024-03-29 09:58:28 -05:00
kimci86 ad9edb0256 Use relative install path for pkgconfig files
It is recommended in CMake's official documentation to use relative path
for DESTINATION parameter. Using absolute paths do not work with the
cmake --install command's --prefix option.
2024-02-25 22:15:31 +01:00
Chris Thrasher b71e8c1dfc Remove unused code 2024-02-19 16:35:08 -07:00
Chris Thrasher 3446239371 Allow for using unexpected compilers 2024-02-19 23:30:30 +01:00
Chris Thrasher 00303b7165 Remove unused code 2024-02-19 23:30:30 +01:00
Chris Thrasher d54f8e839e Remove macOS 10.5 detection
This also gets rid of exec_program which has been deprecated in
CMake.
2024-02-19 23:30:30 +01:00
Chris Thrasher 9f1619520e Use list(APPEND to append to lists 2024-02-19 23:30:30 +01:00
Chris Thrasher 0ad43bc7d2 Enable MSVC's strict standards conformance mode 2024-02-19 23:30:30 +01:00
Chris Thrasher c7ac60f312 Require C11
This required silencing C5105 which emits warnings about system
headers which we can't change.

https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c5105?view=msvc-170
2024-02-19 23:30:30 +01:00
Chris Thrasher a51c22a7a3 Use C standard library utilities for booleans and fixed-width ints 2024-02-19 23:30:30 +01:00
Chris Thrasher 46bc9a7ed8 Remove C++11 compiler warning 2024-02-19 23:30:30 +01:00
Chris Thrasher 2273672415 Remove workarounds for old compilers 2024-02-19 23:30:30 +01:00
Chris Thrasher 942f23ca0b Require C++17 2024-02-19 23:30:30 +01:00
kimci86 0601d5fa8d Do not pass C++ warning options to C compiler 2023-12-21 16:17:17 -06:00
Chris Thrasher 1c4aba1d43 Always specify link visibility 2023-12-21 14:39:18 -06:00
Chris Thrasher 9a355d784b Remove trailing whitespace 2023-12-21 14:39:18 -06:00
Chris Thrasher b231c6c269 Disable warning about using a compiler extension 2023-12-20 17:22:04 -06:00
Lukas Dürrenberger 76c1e643fa Disable treating warning as errors by default 2023-12-20 02:13:31 +01:00
Chris Thrasher d536b3d2cc Use SFML 2.6's set of compiler warnings
Some minor tweaks were made to remove Android-specific workarounds
that CSFML doesn't need and removing a few warnings that are not
feasible to fix at the moment.
2023-07-08 11:01:11 -06:00
Corentin Noël 6476e9442e Add pkg-config files, optionally installed by CMake on Linux builds
The modules provided are:

  - csfml-system
  - csfml-graphics
  - csfml-window
  - csfml-audio
  - csfml-network
  - csfml-all (depends on all the above modules)

They are installed to the standard location for pkg-config files on Linux.

This is adapted from SFML own pkg-config files.
2023-06-27 12:59:34 +02:00
Chris Thrasher 39d7c47f04 Ensure public header path gets propagated to downstream targets 2023-04-19 07:57:03 +02:00
Chris Thrasher ccc159b3d9 Remove unused SFML_MSVC_VERSION variable 2023-02-21 00:00:23 +01:00
Chris Thrasher fbf4b000ef Use built-in project version variables 2023-02-21 00:00:23 +01:00
brightprogrammer 980a165dc9 Use CMAKE_SOURCE_DIR instead of PROJECT_SOURCE_DIR
Change minimum CMake version
2022-03-17 08:58:01 +01:00
Lukas Dürrenberger f84ff413a1 Update CSFML version to 2.5.1
- Add macOS build script
- Update existing nuget build script
2021-07-11 16:54:41 +02:00
Dmitry Maganov 448949ef7a fix rpath for OS X 2015-05-19 22:42:38 +06:00
Lukas Dürrenberger aad6f7b2d1 Updated CSFML's version to 2.2.0. 2015-02-28 11:25:49 +01:00
Franklin Delehelle 31ac05d8f4 Compile with OS X 10.10
Fixes the OS X version detection regex to allow compiling under OS X
10.10+.
2014-11-22 18:44:40 +01:00
Laurent Gomila bc9ae12596 Added missing include in CMake file 2013-11-24 20:27:42 +01:00
Laurent Gomila 6669a6590a Updated build files to reflect the latest changes in SFML 2013-11-04 22:39:52 +01:00
Laurent Gomila 0c5afa3483 Each module now has its own export macro 2012-02-02 22:02:39 +01:00
Laurent Gomila 08749bd440 Fixed CMake files failing on FreeBSD 2011-09-14 17:56:09 +02:00
Laurent Gomila 45d3b05d65 Initial commit -- moved from https://github.com/LaurentGomila/SFML (bindings/c) 2011-07-06 22:39:55 +02:00