Commit graph

14 commits

Author SHA1 Message Date
Gleb Mazovetskiy
4848632db2 CMake: Organize files
1. Platform and toolchain files are now all under `platforms/`, with a
   single `CMake/platforms/${platform}.cmake` per platform.

2. Custom functions/macros are under `functions/`.

3. Finder modules are in `/finders`.
2021-12-07 18:32:25 +01:00
Gleb Mazovetskiy
75222ccef8 Overhaul dependency options
Changes how dependency options are handled and moves them out of
`CMakeLists.txt`.

Major changes:

1. The static default now takes `TARGET_SUPPORTS_SHARED_LIBS` into account
2. The `DIST` setting no longer affects the static default.
3. The static option is now visible for system dependencies as well.
   (it was previously hidden by `cmake_dependent_option`).
4. The auto-detection mechanism for `libfmt` and `SDL_image` only
   applies if the setting has not been set.
5. SDL2 on Android is now also linked statically,
   resulting in a 1.1 MiB smaller APK.

When using non-system dependencies, the default should always be static,
as there are 2 main use cases for these:

1. Dependencies that we must currently vendor because our forks have
   significant changes that are not yet merged/released upstream.
2. Platforms that have no system packages, such as Android and iOS.

In both cases, static linking is the most appropriate default.
2021-12-07 18:32:25 +01:00
Ivan Epifanov
a62767bd1b Bump asio version 2021-10-20 19:02:47 +02:00
staphen
7bafdefbd4 Fix commit referenced by FetchContent for ASIO 2021-10-09 21:08:35 +02:00
staphen
3e5f553508 Update asio to 1.19.2 2021-08-07 23:14:34 +02:00
staphen
4ab13f304b Bring in ASIO fixes for Switch 2021-06-26 13:26:56 -07:00
staphen
a7123e7a5d Update ASIO to diasurgical fork 2021-06-17 09:54:20 +02:00
qndel
4e6eeaa9d7 update asio 2021-06-13 17:06:42 +02:00
qndel
36f5db8edc
fix mac builds (#2124)
downgrades asio version and applies double error fix
2021-06-05 18:56:42 +02:00
qndel
99cb90d7cc
update asio (#2121)
fixes double error msg
2021-06-05 09:18:57 +02:00
Gleb Mazovetskiy
bcd2dd429c 🔨 CMake: asio: Use HTTP for downloading
This is much faster than using git.
2021-05-28 13:28:45 +02:00
staphen
253fccbac5 Get ASIO via CMake 2021-05-20 10:14:16 +02:00
miqlas
106ffa53ba Preliminary Haiku support (#94) 2019-05-01 10:06:04 +02:00
Xadhoom
7053755cfc Add asio 1.12.2 2019-01-31 19:32:40 +00:00