Commit graph

496 commits

Author SHA1 Message Date
sluicebox
c67adbb301 CREATE_PROJECT: Add --include-dir and --library-dir
Additional include and library directories can now be added.

This is most useful to Xcode Mac projects where a vanilla Homebrew setup
requires manually adding five directories through the Xcode UI and then
repeating that every time the project needs to be regenerated.

Now create_project can be scripted to regenerate a working Mac project
without any extra Xcode steps.
2021-11-26 21:30:07 -07:00
sluicebox
f08f2a52fc CREATE_PROJECT: Add DETECTION_FULL feature
Allows disabling full detection with --disable-detection-full,
just like the configure script.
2021-11-26 21:30:07 -07:00
sluicebox
e6ed1dee5b CREATE_PROJECT: Update MSVC jpeg debug lib name
Required for CI; libjpeg-turbo debug builds no longer have a "d"
suffix when building with vcpkg.
2021-11-11 14:28:39 -06:00
Orgad Shaneh
0b2ae9fa5e DEVTOOLS: Replace ugly SDL/MinGW hack with a cleaner hack
Instead of having main=SDL_main defined by pkg-config/sdl2-config --cflags
and undefining it everywhere, strip it in its origin.
2021-08-03 07:35:15 +03:00
Orgad Shaneh
99773ee204 DEVTOOLS: Fix create_project compilation on Windows with UNICODE defined 2021-08-02 17:47:29 +02:00
Orgad Shaneh
d0545cb65a CI: Enable fribidi
Some of the issues in vcpkg are already resolved.
2021-08-01 08:30:19 +01:00
sluicebox
f0fd086948 CREATE_PROJECT: Fix enabling fluidlite 2021-07-24 22:02:38 +01:00
Orgad Shaneh
7deaecb308 BUILD: Remove pointless condition in msbuild
Analysis is debug, not release.
2021-07-22 14:29:50 +03:00
sluicebox
2bca5da803 WIN32: Make UNICODE the default build configuration 2021-07-14 18:41:02 -05:00
sluicebox
41ab2c799b CREATE_PROJECT: Fix warning when building on Mac 2021-06-30 22:50:09 -05:00
sluicebox
1f253b805c CREATE_PROJECT: Add --use-windows-unicode 2021-06-29 12:38:01 -05:00
lb_ii
fb1f399f5a DISTS: Add achievements.dat to various dat file lists 2021-06-10 01:56:23 +03:00
SupSuper
e97f3ae4fa MSVC: Enable ASan for Analysis builds 2021-05-23 21:35:10 +01:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
SupSuper
3b43a99fda CREATE_PROJECT: Support building with FluidLite 2021-04-25 20:39:55 +03:00
SupSuper
627cab6859 CREATE_PROJECT: Add missing giflib to MSVC 2021-04-24 22:44:41 +01:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Le Philousophe
224729ebde BUILD: Add GIF to Apple specific build code 2021-04-11 10:34:57 +02:00
Martin Gerhardy
bb34721dd4 IMAGE: added GIFDecoder using libgif 2021-04-10 10:59:09 +02:00
SupSuper
30b06ae9de CREATE_PROJECT: Add new scaler feature flags 2021-03-15 20:52:05 +00:00
sluicebox
93eeffc84d JANITORIAL: Update old bug tracker numbers 2021-03-03 02:15:05 +02:00
SupSuper
a52e5818d2 CREATE_PROJECT: Use console for devtools and tests projects 2021-02-22 12:28:54 +00:00
SupSuper
73755d1d3a CREATE_PROJECT: Fix infinite loop when generating tests 2021-02-22 12:22:47 +00:00
SupSuper
eeda14b170 CREATE_PROJECT: Fix incorrect text filenames 2021-02-22 12:18:45 +00:00
SupSuper
9401ef1a82 CREATE_PROJECT: Don't include detection in tests/tools 2021-02-22 12:10:11 +00:00
Donovan Watteau
5a78e1350b CREATE-PROJECT: Provide a stub for "override" to older compilers
msbuild.h makes uses of the "override" keyword, so borrow the compat
macro from c++11-compat.h to make this work on older compilers,
such as the ones found on Mac OS X Leopard.
2021-02-09 13:33:56 -08:00
Donovan Watteau
03960d5663 CREATE-PROJECT: Call realpath() in a more portable way
Non POSIX.1-2008 systems will not necessarily accept NULL as the
second argument, and could crash the program here. Provide a
temporary buffer on the stack instead, and don't count on realpath()
allocating one on the heap. This will work on older POSIX.1-2001
systems.

(In theory, this older POSIX.1-2001 syntax could have portability
problems too, because of PATH_MAX, but in practice this shouldn't
be a problem for the systems intended to be used by create_project.)

Fixes the build on Mac OS X Leopard.
2021-02-09 13:33:56 -08:00
Donovan Watteau
7e79fd6e61 CREATE-PROJECT: Include CommonDigest.h for macOS, not CommonCrypto
<CommonCrypto/CommonDigest.h> should be used for CC_MD5() on macOS.

Fixes the build on Leopard.
2021-02-09 13:33:56 -08:00
Donovan Watteau
3650aa6ce9 MACOSX: Stop using the -platform_version linker workaround for Retina displays
Commit a1d930209a is actually enough to
stop the blurry display issue on Retina screens (Bug #11430).

This reverts most of 70f79d3df8.
2021-02-09 01:35:40 +00:00
SupSuper
cc015ed40d CREATE_PROJECT: Don't exclude header files
We can't accurately determine which header belongs to which object,
so leave them in. They don't affect the compilation anyway.
2021-02-02 10:00:00 +00:00
Matthew Duggan
86dc1ceab6 CREATE_PROJECT: Don't add DEBUG to XCode Debug builds
This breaks some builds for some engines, and it had a bug which added it to
Release build too (oops!)
2021-01-11 10:49:29 +09:00
Matthew Duggan
05e1d42702 CREATE-PROJECT: Better defaults for xcode
* Add DEBUG define to debug builds
* Set optimization -O3 on release builds
2021-01-01 15:07:37 +09:00
Vladimir Serbinenko
b8a5483047 HADESCH: Use separate file for translations 2020-12-17 09:49:18 +01:00
SupSuper
2af0fdd458 MSVC: Parallelize building of .asm files 2020-11-15 21:50:26 +00:00
Vladimir Serbinenko
68a9136e4d
COMMON: Rewrite Encoder and drop dependency on iconv (#2586)
Different platforms have different levels of support of encodings and
often have slight variations. We already have tables for most encoding
with only CJK missing. Full transcoding inclusion allows us to get reliable
encoding results independently of platform. The biggest con is the need for
external tables encoding.dat.

It removes a duplicate table for korean in graphics/korfont.cpp
2020-11-15 16:20:35 +01:00
Henrik "Henke37" Andersson
1079a0f935 CREATE-PROJECT: Set subsystem for legacy visual studio projects 2020-11-12 00:54:06 +00:00
Henrik "Henke37" Andersson
b35e24c9fb CREATE-PROJECT: Set MSVC subsystem
It's a windows application unless the text console is enabled.
2020-11-12 00:54:06 +00:00
Henrik "Henke37" Andersson
ad09e09af5 CREATE-PROJECT: easy access to named features 2020-11-12 00:54:06 +00:00
SupSuper
b0bc795999 CREATE_PROJECT: Don't include files with the same name but different paths 2020-11-11 10:24:59 +00:00
sluicebox
cdaa3020ee CREATE_PROJECT: Code formatting 2020-11-10 21:10:01 -08:00
sluicebox
4f29b747fd CREATE_PROJECT: Fix compilation on older MSVC 2020-11-10 21:05:51 -08:00
SupSuper
8e39764f03 CREATE_PROJECT: Only write engineMap references 2020-11-11 04:18:25 +00:00
SupSuper
e9b3974ff8 CREATE_PROJECT: Replace duplicate filename check with unique object files 2020-11-11 04:12:36 +00:00
Martin Gerhardy
fa19374e58 CREATE_PROJECT: added .gitignore to create_project cmake part 2020-11-08 11:32:59 +01:00
Martin Gerhardy
7be30d492b CREATE_PROJECT: fixed cmake generator
* Support for pkg-config was added
* Shortened the CMakeLists.txt by more than 4000 lines
* Added macro for feature detection
* Configure stage is reporting missing libs as error now (they were reported as compile errors during the build before)
* Link the scummvm-detection lib (this was missing before)
* Added missing defines like DETECTION_STATIC and USE_SDL2
* Group impl and header files in src file list to shorten the cmake script
* Unified indention for generated script
2020-11-08 11:30:25 +01:00
SupSuper
b58abb64d7 CREATE_PROJECT: Only create detection project if feature is enabled 2020-11-03 07:10:13 +00:00
Henrik "Henke37" Andersson
803d8f1ba5 CREATE_PROJECT: Put detection in a separate project
Keeps the main project clean and is a prerequisite for loading detection as a plugin
2020-11-03 07:10:13 +00:00
Paweł Kołodziejski
d44f1f77ed GRIM: Rename engine data patches 2020-11-01 14:10:09 +01:00
Martin Gerhardy
813b497955 CREATE_PROJECT: fixed DeepCode warning 2020-10-19 20:24:54 +02:00
Martin Gerhardy
332c826b4b CREATE_PROJECT: export compile_commands.json via cmake
this is useful for e.g. clangd or other clang based tools like the analyser
2020-10-19 20:24:54 +02:00