Commit graph

159 commits

Author SHA1 Message Date
Sebastian Krzyszkowiak
cb010d9e84
android: Switch the default target API level to 33 2024-03-04 22:53:10 +01:00
Sebastian Krzyszkowiak
01423ead90
emscripten: Add a custom HTML shell file 2023-11-02 07:42:49 +01:00
Sebastian Krzyszkowiak
402544546c
cmake: Fix EMTERPRETIFY_WHITELIST definition 2023-11-02 07:42:22 +01:00
Sebastian Krzyszkowiak
e5ba177910
cmake: Enable assertions for Emscripten Debug builds 2023-11-02 07:42:01 +01:00
Sebastian Krzyszkowiak
79400c4705
cmake: Use file(COPY ...) to install Android project files
Otherwise gradlew ends up without executable permission.
2022-07-28 21:57:57 +02:00
Sebastian Krzyszkowiak
901d43a520
Don't install data file overrides of unrelated platforms 2022-07-28 21:39:55 +02:00
Sebastian Krzyszkowiak
8e57250047
cmake: Define RASPBERRYPI macro on Raspberry Pi builds 2022-07-20 06:48:52 +02:00
Sebastian Krzyszkowiak
70c81c77ec
cmake: vita: Make sure the generated icon has 8-bit color pallete
pngquant detects when the image has less colors and can save smaller
palletes. Vita strictly requires 8-bit though.
2021-08-06 20:19:49 +02:00
Sebastian Krzyszkowiak
398527918e
cmake: Automatically generate icon file for Vita as a fallback 2021-07-25 05:43:20 +02:00
Sebastian Krzyszkowiak
0833e66402
cmake: Add targets for easy Vita deploy over network 2021-07-25 01:56:27 +02:00
Sebastian Krzyszkowiak
dcc4f3a2de
cmake: Make Vita's heap size configurable 2021-07-25 00:52:35 +02:00
Sebastian Krzyszkowiak
dd74c2cc2d
cmake: Clean up vita data dir before copying 2021-07-25 00:51:50 +02:00
Sebastian Krzyszkowiak
b84e0af41f
cmake: VPK packaging for PS Vita with VitaSDK 2021-07-24 03:58:46 +02:00
Sebastian Krzyszkowiak
49795745cf
vita: Set the required heap sizes 2021-07-22 20:59:23 +02:00
Sebastian Krzyszkowiak
30022f1c5c
cmake: Use LIBSUPERDERPY_SINGLE_THREAD on PS Vita
Having the loading thread appears to cause some corruption there.
2021-07-22 16:45:12 +02:00
Sebastian Krzyszkowiak
f9176ce1f5
cmake: Disable sanitizers on PS Vita 2021-07-22 16:08:07 +02:00
Sebastian Krzyszkowiak
1ec6ce7550
cmake: Don't use stack protector on PS Vita 2021-07-22 16:04:32 +02:00
Sebastian Krzyszkowiak
b0aeadbf6b
cmake: Define LIBSUPERDERPY_NO_RESTART on PS Vita 2021-07-21 01:45:49 +02:00
Sebastian Krzyszkowiak
f42fca2606
android: Target API 30 2021-07-19 01:57:31 +02:00
Sebastian Krzyszkowiak
d25d7ee5b9 cmake: Fix Allegro include path in embedded Allegro mode 2020-08-18 01:34:37 +02:00
Sebastian Krzyszkowiak
7f8e3b9641
emscripten: Add _main to the list of emterpreted functions
This allows to use emscripten_sleep from main.

This also disables an infinite loop emulation in the mainloop, as
emterpreter doesn't catch its exception and we don't really need it
anyway.
2020-05-10 20:56:41 +02:00
Sebastian Krzyszkowiak
92d9f1c1bf
cmake: Rework LTO support under emscripten 2020-05-10 18:06:58 +02:00
Sebastian Krzyszkowiak
6b6566d7e4
emscripten: Fix and re-enable dead code elimination by default 2020-05-10 16:57:38 +02:00
Sebastian Krzyszkowiak
e4925f2ecb
cmake: emscripten: Remove --lz4 option
It doesn't do anything anyway - it should be -s LZ4=1. However, enabling
lz4 compression breaks preload plugins, which we rely on for asynchronous
WebAssembly compilation of gamestate modules.
2020-05-09 04:37:46 +02:00
Sebastian Krzyszkowiak
c78fead9c5
cmake: emscripten: Enable LTO across modules
Appears to work fine from initial testing.
2020-05-09 03:59:13 +02:00
Sebastian Krzyszkowiak
f45abe337c
cmake: emscripten: Pass --emit-symbol-map to the compiler 2020-05-09 03:57:55 +02:00
Sebastian Krzyszkowiak
d71f892140
cmake: emscripten: Use -O3 instead of -Oz in release builds
Oz can cause performance hits, and the size savings aren't that big in our
case to be worth it.
2020-05-09 03:57:18 +02:00
Sebastian Krzyszkowiak
50c8049c13
cmake: emscripten: Enable assertions in debug builds 2020-05-09 03:56:26 +02:00
Sebastian Krzyszkowiak
31de1a7d08
cmake: Don't look for Allegro addons on Emscripten
We're putting all addons into one object file there.
2020-04-25 19:40:25 +02:00
Sebastian Krzyszkowiak
4336b707c5
cmake: Make the variable names match the module name in Allegro packages 2020-04-25 19:28:26 +02:00
Sebastian Krzyszkowiak
4fd703f821
emscripten: Don't use WebGL2 contexts by default
The only thing it usually brings us is support for bigger texture sizes.
Games that rely on that can enable WebGL2 explicitly.
2020-04-09 05:58:24 +02:00
Sebastian Krzyszkowiak
5f7c0ff18f
cmake: Put data files into /data directory on emulated emscripten filesystem 2020-04-04 04:45:53 +02:00
Sebastian Krzyszkowiak
e0192420f6
cmake: Add DATA_EXCLUDE_REGEX variable to configure exclusions in data dir installation 2020-03-22 07:49:54 +01:00
Sebastian Krzyszkowiak
cddb35dd95
emscripten: enable GNU extensions
They're needed for some features like EM_ASM
2019-12-10 03:21:22 +01:00
Sebastian Krzyszkowiak
4a0e7a77cc
emscripten: enable -Oz size optimization in release modes 2019-12-09 02:03:06 +01:00
Sebastian Krzyszkowiak
9ce1957968
cmake: emscripten: add "--use-preload-cache --lz4" to compiler params 2019-12-07 03:13:09 +01:00
Sebastian Krzyszkowiak
a0dabfdeec
cmake: unix: install man page if it exists 2019-11-11 22:42:04 +01:00
Sebastian Krzyszkowiak
5c9ebfdbdd
cmake: make bin, lib and share directories configurable 2019-11-11 21:23:43 +01:00
Sebastian Krzyszkowiak
a112e5de0d
cmake: set BINARYEN_TRAP_MODE=clamp for wasm
It's necessary to avoid random breakage due to llvm optimizations.
2019-10-07 00:01:18 +02:00
Sebastian Krzyszkowiak
b8d44792f1
cmake: support memory sanitizer 2019-10-06 08:06:40 +02:00
Sebastian Krzyszkowiak
356cb6c2e8
cmake: specify LIBSUPERDERPY_EMBEDDED_ALLEGRO as an option 2019-10-06 08:01:08 +02:00
Sebastian Krzyszkowiak
861850aafb
cmake: set _POSIX_C_SOURCE instead of _XOPEN_SOURCE
On Maemo we set _GNU_SOURCE instead because of its old glibc.
2019-10-06 08:00:32 +02:00
Sebastian Krzyszkowiak
036cc00332
cmake: install the app icon into /usr/share/pixmaps as well 2019-09-07 18:11:56 +02:00
Sebastian Krzyszkowiak
aa1c864811
cmake: add ability to build an embedded, static copy of Allegro 2019-09-07 01:13:52 +02:00
Sebastian Krzyszkowiak
112be73531
cmake: add CONFIGURE_DEPENDS to file(GLOB...) invocations 2019-06-27 21:24:30 +02:00
Sebastian Krzyszkowiak
6758075511
cmake: rework static linking configuration 2019-05-17 17:35:07 +02:00
Sebastian Krzyszkowiak
c6ef4a6199
support static linking the whole game into one binary 2019-05-17 02:31:17 +02:00
Sebastian Krzyszkowiak
c724a490fb
formal Pocket C.H.I.P support 2019-05-13 23:51:07 +02:00
Sebastian Krzyszkowiak
b0bf4f13be
cmake: disable GNU extensions 2019-05-13 23:47:16 +02:00
Sebastian Krzyszkowiak
8c228aa9e0
cmake: set -std=gnu99 when the compiler default is C90
Fixes compilation on the Pocket C.H.I.P
2019-05-12 22:35:51 +02:00