visualboyadvance-m/cmake
Rafael Kitover 2fedaa63a6
support FreeBSD
Make some changes to support out-of-the-box builds on FreeBSD:

- set cmake OpenGL type to `LEGACY`, the new `GLVND` type produces
  unusable binaries on FreeBSD

- on FreeBSD add -I/usr/local/include to compiler flags, why this is
  necessary I don't know

- look for llvm tools such as `llvm-ar` in `/usr/local/llvm-devel/bin`,
  LTO works

- improve the `find_wx_util()` cmake function to handle `wx-config`
  scripts named in the form e.g. `wxgtk3u-3.1-config`

- add FreeBSD support to `installdeps`

- make some minor changes to included headers based on macros such as
  `__FreeBSD__` to compile on FreeBSD, including adding a `BSD.h` header
  with some defines for e.g. `fseeko64`

- move the cmake X11 detection to before the wx compile tests, because
  otherwise the extra compile flags for the wx tests make the X11 tests
  fail

- make some minor changes to fix wx 2.8 compatibilty again, we don't
  actually use 2.8 for FreeBSD but I was testing it

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2019-04-25 16:22:07 +00:00
..
Architecture.cmake auto deps for visual studio, take 1 2019-03-21 16:01:46 -07:00
CMakeASM_NASMInformation.cmake cmake: remove <INCLUDES> from nasm definition 2019-02-22 15:11:01 +00:00
CMakeDetermineASM_NASMCompiler.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
CMakeTestASM_NASMCompiler.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
ChangeLogVersion.cmake adjust changelog version regex for cur. version 2018-03-17 12:32:27 -04:00
FindDirectX.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
FindGettext.cmake update translations, add new langs from transifex 2018-08-11 16:18:15 -07:00
FindOpenAL.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
FindSDL2.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
FindSFML.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
FindSSP.cmake cmake: refactor FindSSP.cmake 2019-02-16 13:04:43 -08:00
GetGitRevisionDescription.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
GetGitRevisionDescription.cmake.in rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
GitTagVersion.cmake add mac release builder script 2017-10-12 01:32:18 -07:00
HostCompile.cmake Revert "hopefully fix bin2c for msvc" 2018-09-16 11:14:49 -07:00
LLVMToolchain.cmake support FreeBSD 2019-04-25 16:22:07 +00:00
MacPackageManagers.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
PathRun.cmake work around gcc lto wrappers bug with gcc 7.x 2017-09-16 19:47:39 -07:00
Toolchain-cross-MinGW-w64-i686.cmake cmake: support linuxbrew mingw toolchain 2018-11-11 19:33:55 -08:00
Toolchain-cross-MinGW-w64-x86_64.cmake cmake: support linuxbrew mingw toolchain 2018-11-11 19:33:55 -08:00
Toolchain-cross-m32.cmake cmake: fix finding 32 bit wxWidgets on gentoo 2019-02-22 08:50:04 -08:00
UseGCCBinUtilsWrappers.cmake work around gcc lto wrappers bug with gcc 7.x 2017-09-16 19:47:39 -07:00
VbamFunctions.cmake support FreeBSD 2019-04-25 16:22:07 +00:00
Win32Deps.cmake cmake: use Win32Deps when mingw cross compiling 2019-04-16 13:07:51 +00:00