Commit graph

48 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
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
SupSuper
a52e5818d2 CREATE_PROJECT: Use console for devtools and tests projects 2021-02-22 12:28:54 +00:00
Henrik "Henke37" Andersson
1079a0f935 CREATE-PROJECT: Set subsystem for legacy visual studio projects 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
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
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
SupSuper
dfb0123d56 CREATE_PROJECT: Add a name table for MSVC library dependencies
Adds support for Debug/Release lib names and moves
Windows-specific code to the MSVC generator
2020-08-20 23:54:32 +02:00
Michał Janiszewski
bb9dddcd04 CREATE_PROJECT: JANITORIAL: Apply code formatting 2020-07-15 15:30:55 +02:00
SupSuper
95d191e19a CREATE_PROJECT: Fix VS2008 property names 2020-07-15 15:30:55 +02:00
Michał Janiszewski
26591c1341 CREATE_PROJECT: Add missing is_open check
This is to satisfy DeepCode warning on PR
2020-07-15 15:30:55 +02:00
SupSuper
ef803ee080 CREATE_PROJECT: Old Visual Studio doesn't support ARM64 2020-07-15 15:30:55 +02:00
SupSuper
7a5c4e6121 CREATE_PROJECT: Remove C++11 2020-07-15 15:30:55 +02:00
Michał Janiszewski
3d3b0124ad CREATE_PROJECT: Make MSVC project understand more architectures 2020-07-15 15:30:55 +02:00
Antoniou Athanasios
e9623740f0 WIN32: Add a default application manifest
This fixes an OpenGL renderer issue for builds with MSYS2/Mingw64 or MSYS2/Mingw32

The issue pertains to MSYS2 adding a default manifest file (default-manifest.o) to the executable

The bug is for PC systems with GPU drivers that were not properly supported for Windows 10 
systems, like Intel HD Graphics series 1st and 2nd generations. In those systems, launching a 
game in ScummVM (built with MSYS2/Mingw) with the OpenGL renderer would cause the game 
screen to be a white blank image, and various warnings would be output to the console, eg.
"WARNING: GL ERROR: GL_INVALID_ENUM on glTexSubImage2D(0x0DE1, 0, 0, area.top, src.w, area.height(), _glFormat, _glType, src.gere.cpp:167)!"
This was due to MSYS2/Mingw builds trying to load the (poorly supported) GPU driver while advertising support for Windows 10 in their
embedded default Manifest file. Hence, the GPU driver DLL (eg ig4icd64.dll) would be unloaded, causing the bug.

More information is available in the following links:
https://github.com/pal1000/save-legacy-intel-graphics
https://github.com/LWJGL/lwjgl/issues/119
https://github.com/msys2/MSYS2-packages/issues/454
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69880

Credits to sluicebox for the VS GenerateManifest flag
2019-08-04 14:18:50 +03:00
SupSuper
5c0529abc2 CREATE_PROJECT: Refactor Visual Studio version differences
Moved most generation differences to a MSVCVersion class, makes it
easier to support new versions without tracking down if-checks everywhere.
2019-04-20 07:47:25 -04:00
SupSuper
e6a80868c6 MSVC: Update DLL paths in post-build script 2018-12-23 18:39:06 +02:00
SupSuper
47b55f29c5 MSVC: Fix resource file revision include error 2018-12-23 18:39:06 +02:00
SupSuper
ddb3b6fba7 MSVC: Fix resource file not including translations.dat 2018-12-23 18:39:06 +02:00
Paul Gilbert
bbef10c068 CREATE_PROJECT: Fix Visual Studio linking problems after Munt merge 2016-12-17 15:12:52 -05:00
Paul Gilbert
89dfd36b60 CREATE_PROJECT: Add support for Visual Studio 2015 2015-09-28 19:23:58 -04:00
Pawel Kolodziejski
79d4f09cab CREATE_PROJECT/MSVC: allow include SDL includes from SDL subdir 2014-07-17 13:59:56 +02:00
Joel Teichroeb
c43ce9ecf3 ALL: Remove support for MSVC8 and older
MSVC8 gives various compile error relating to templates that were changed
back in 2008, leading me to belive that no one is using it, and that there
is not point adding work arounds for a 9 year old compiler no one uses.
2014-06-21 11:32:45 -07:00
Johannes Schickel
6b0f1118de DEVTOOLS: Add project file directory to include path in generated project files. 2013-11-25 01:36:25 +00:00
Littleboy
3079100409 CREATE_PROJECT: Change PlatformToolset name for latest version of LLVM on Windows 2013-09-06 18:33:48 -04:00
Littleboy
6df36e5ecf CREATE_PROJECT: Add extra configuration for compilation with LLVM 2013-09-06 00:19:56 -04:00
D G Turner
c67508b42d DEVTOOLS: Enable builtin theme in MSVC 2005 and 2008 in create_project.
This reverts commit b830f68bac as the
builtin theme is less than 64K again.
2013-08-16 07:20:51 +01:00
Johannes Schickel
b830f68bac DEVTOOLS: Disable builtin theme in MSVC 2005 and 2008 in create_project.
This is a copy of d089658fb8 for older MSVC
versions. Thanks to Strangerke for noticing.
2013-08-14 02:01:03 +02:00
Littleboy
a949a88220 CREATE_PROJECT: Add support for tests
- Added --tests command line switch
 - Parse test/module.mk to extract the list of test folders
 - Automatically run tests after a successful build
2013-07-07 12:10:31 -04:00
Littleboy
9821f30224 CREATE_PROJECT: Add config option to disable language extensions and edit and continue (per-project) 2012-09-05 20:18:24 -04:00
Littleboy
4e0f6d346f CREATE_PROJECT: Properly disable Edit and Continue in Debug mode 2012-07-14 12:22:09 -04:00
Filippos Karapetis
9feac7215e CREATE_PROJECT: Disable edit and continue in the scummvm project
Edit and continue is not compatible with the coroutine code. Previously,
it was disabled in the tinsel project only, but now that the coroutine
code has been moved into common, we need to disable edit and continue
in the scummvm project instead
2012-05-20 20:57:59 +03:00
Paul Gilbert
ac20e27173 CREATE_PROJECT: Updated MSVC scummvm.vcproj generation to handle coroutine compilation properly 2012-05-17 20:43:30 +10:00
Littleboy
7cfed737d7 CREATE_PROJECT: Add support for creating Visual Studio projects for the dev tools
- Move project name and description to BuildSetup structure
 - Add list of tools to generate project for (similar to the list of features)
2011-09-06 19:17:39 -04:00
Littleboy
7d984aa53a CREATE_PROJECT: Link with the static runtime library in release mode
This allows distributing MSVC compiled binaries without the MSVCRT runtime dll.
2011-06-06 13:12:07 -04:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Johannes Schickel
cf43b51f67 Merge pull request #31 from lordhoto/win-res
Embed engine/theme dists files into Win Executable.
Check the following link for further discussion:
https://github.com/scummvm/scummvm/pull/31
2011-05-06 10:57:11 -07:00
Paul Gilbert
c35ef00c4a DEVTOOLS: Fix linking failure in Visual Studio created project 2011-05-06 21:09:44 +10:00
Paul Gilbert
3758dcbbcc DEVTOOLS: Bugfix for CREATE_PROJECT creating duplicate tag in Visual Studio projects 2011-05-06 19:39:12 +10:00
Johannes Schickel
d41c32d363 BUILD: Get rid of old MSVC style win resource support. 2011-05-05 20:28:43 +02:00
Littleboy
0e45aa8655 Merge remote-tracking branch 'upstream/master' into nsis
Conflicts:
	devtools/create_project/scripts/postbuild.cmd
	devtools/create_project/visualstudio.cpp
	ports.mk
2011-05-02 17:21:10 -04:00
Johannes Schickel
1279264c37 CREATE_PROJECT: Replace macros by proper functions/methods. 2011-04-28 17:45:01 +02:00
Littleboy
3f2b25f879 TOOLS: Update create_project to optionally create an installer after a successful build 2011-04-27 11:08:45 -04:00
Littleboy
878d72b387 CREATE_PROJECT: Move project-specific information to configuration file
User-visible output and project-specific names are now defined in a config header.
This allows an easier usage of the create_project tools in other scummvm-derived projects (such as residual).
2011-04-24 16:59:48 -04:00
Littleboy
11b907ebf4 CREATE_PROJECT: Update revision number support (fixes bug #3280881)
Replace existing environment variable based revision number support by a file-based method
 - Generate a special header file in the build output folder with the current revision number
 - Include the new header file from internal_version.h when a specific define is set
 - Update create_project to define SCUMMVM_INTERNAL_REVISION as needed and add the build output folder to the include path
 - Remove support for git-svn clones in the revision script (not useful anymore after the switch to git)
2011-04-24 16:59:46 -04:00
Littleboy
1f660237a4 CREATE_PROJECT: Change build events to also be run in release builds
Unofficial builds using MSVC in release mode will benefit from having a revision number available
2011-04-22 14:45:12 -04:00
Max Horn
6cf1de87ac DEVTOOLS: Renamed 'tools' directory to 'devtools' 2011-04-09 23:47:35 +02:00
Renamed from tools/create_project/visualstudio.cpp (Browse further)