Commit graph

126 commits

Author SHA1 Message Date
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
Sebastian Krzyszkowiak
5b8df3c180
cmake: disable stack protector on Maemo
It causes strange segfaults there
2019-05-12 22:33:34 +02:00
Sebastian Krzyszkowiak
a5aed4743d
cmake: disable sanitizers on Maemo 2019-05-12 21:59:03 +02:00
Sebastian Krzyszkowiak
a8f78ea9bb
cmake: use float literal instead of integer to specify image scale as 1 2019-05-10 23:20:10 +02:00
Sebastian Krzyszkowiak
a4147d2e61
character: transparently support ImgToWebp scaling factor 2019-05-06 04:06:58 +02:00
Sebastian Krzyszkowiak
264ef2b86d
cmake: link to allegro-color addon 2019-04-29 13:17:56 +02:00
Sebastian Krzyszkowiak
c480289123
cmake: rework asset compression pipeline a bit 2019-04-29 03:11:55 +02:00
Sebastian Krzyszkowiak
569834bce4
cmake: fix problems with static linking with osxcross 2019-04-06 21:18:17 +02:00
Sebastian Krzyszkowiak
83bd62277f
initial set of timeline unit tests 2019-04-03 02:59:48 +02:00
Sebastian Krzyszkowiak
66e0319691
cmake: make source files of game's shared library configurable 2019-02-28 21:44:02 +01:00
Sebastian Krzyszkowiak
43c830bf99
drop "libsuperderpy-" prefix from game-specific shared libraries 2019-02-26 01:42:16 +01:00
Sebastian Krzyszkowiak
379ba8f629
cmake: make LTO optional 2019-02-13 22:53:43 +01:00
Sebastian Krzyszkowiak
d878a86634
make DCE on emscripten/wasm configurable and disabled by default 2019-02-08 02:12:31 +01:00
Sebastian Krzyszkowiak
b07c9033e9
update emscripten flags 2019-02-06 01:48:35 +01:00
Sebastian Krzyszkowiak
e89f654559
ImgToWebp: add ability to use lossless compression
Good for pixel art
2019-01-24 23:57:23 +01:00
Sebastian Krzyszkowiak
a411819d5a
android: update toolchain for docker images 2019-01-24 04:11:13 +01:00
Sebastian Krzyszkowiak
54a305b3ec
android: migrate from ant to gradle 2019-01-20 03:00:01 +01:00
Sebastian Krzyszkowiak
c5b5d7a7e0
fix macos builds 2019-01-13 21:34:32 +01:00
Sebastian Krzyszkowiak
65807cd369
enable dead code elimination on webassembly builds 2019-01-13 20:02:21 +01:00
Sebastian Krzyszkowiak
a6b6062be4
recompress flac to opus and images to lossy webp for emscripten and android builds, with asset cache 2019-01-13 18:45:17 +01:00
Sebastian Krzyszkowiak
ef77bedeae
clean up 2019-01-11 15:26:12 +01:00
Sebastian Krzyszkowiak
996c7e4d8e
FlacToOgg: fix and make more robust 2019-01-11 13:09:55 +01:00
Sebastian Krzyszkowiak
3da81d4388
cmake: fix Debug builds on Emscripten 2019-01-11 12:38:03 +01:00
Sebastian Krzyszkowiak
f5ce67e6cb
emscripten: export Gamestate_ProgressCount
Turns out there's no other way to export a variable.
Fixes wrong values in the progress bar.
2019-01-11 02:31:43 +01:00
Sebastian Krzyszkowiak
f5604b95fb
emscripten: output wasm submodules to .wasm.so files, so preload plugins can find them 2019-01-10 06:31:28 +01:00
Sebastian Krzyszkowiak
fe9b6f5384
emscripten: use __attribute__(used) in code instead of EXPORTED_FUNCTIONS in cmake 2019-01-10 06:04:29 +01:00
Sebastian Krzyszkowiak
8d4ee68936
emscripten: drop STRICT=1 flag, it breaks when SDL2 is self-built 2019-01-08 03:32:49 +01:00
Sebastian Krzyszkowiak
5fb99a97f8
emscripten: revise compiler settings and add a pre-js file with audio autoplay workaround 2019-01-07 00:37:34 +01:00
Sebastian Krzyszkowiak
f357d75591
emscripten: use emterpreter for displaying loading screen 2019-01-03 23:22:26 +01:00
Sebastian Krzyszkowiak
116d190876
cmake: update emscripten flags 2018-12-22 02:17:57 +01:00
Sebastian Krzyszkowiak
93db442e7b
cmake: disable LTO on MinGW
Crashes the compiler on my machine for some reason.
2018-12-18 14:34:10 +01:00
Sebastian Krzyszkowiak
492aa79a6b
cmake: enable -fstack-protector (all builds) and _FORTIFY_SOURCE=2 (release/relwithdebinfo)
_FORTIFY_SOURCE can't be used together with ASan, so it's not enabled for debug builds
2018-12-18 13:58:37 +01:00
Sebastian Krzyszkowiak
d20363e244
cmake: enable link time optimizations 2018-12-18 13:19:58 +01:00
Sebastian Krzyszkowiak
7cdcb7475a
cmake: set and use LIBSUPERDERPY_DIR variable 2018-12-18 13:18:52 +01:00