Commit Graph

35 Commits

Author SHA1 Message Date
Mat Sutcliffe
307e170d5f Integrate swift version numbering into the json config system. 2019-02-22 20:23:26 +00:00
Mat Sutcliffe
82679a3010 Replace qmake variable BLACK_CONFIG with a system based on json files.
The config is loaded from json files by qmake, and we define the qmake
function `swiftConfig` for checking whether a feature is enabled.
This function can be directly used in `buildconfig_gen.cpp.in`,
so the trick with C++ comment tokens in variables is not needed.
2019-02-22 20:23:25 +00:00
Mat Sutcliffe
df563d5b29 Fixes needed to compile swift with MSVC with the /permissive- switch
which enables more C++ standard conformance.
2018-11-16 02:49:55 +01:00
Klaus Basan
180214e4f0 Ref T404, fixed the UTF issues for hotkeys
* QStringLiteral expects UTF16 for MSVC compilers
* we use descriptive names now
* UTF flag for MSVC compilers
* added the SLACK discussion as comment under https://dev.swift-project.org/T404
2018-11-16 02:49:53 +01:00
Roland Winklmeier
bd3710b40c Enable P3D config for MinGW builds 2018-11-16 02:49:51 +01:00
Roland Winklmeier
be14be1e7c Disable MinGW debug optimizations 2018-08-31 20:08:15 +02:00
Roland Winklmeier
87bb9e28cd Fix MinGW build without any optimizations
Building without any optimizations disabled implicit inlining of
MetaClass::getMemberList() and we ended up with many undefined symbols.
2018-05-04 23:03:33 +02:00
Roland Winklmeier
be82b95605 Don't build P3D driver with MinGW 64 bit for now 2018-04-05 02:53:11 +02:00
Klaus Basan
c5f57a6bd1 Ref T197, P3D x86 build
* pro files
* description
2017-12-21 19:46:14 +01:00
Roland Winklmeier
7317ddd155 Add first batch of configuration tests
Summary:
Configuration tests check whether all mandatory dependencies to build
swift are met. They can also be used to check optional dependencies, which
results in certain features to be enabled or disabled.
This first batch tests for mandatory libraries libpng, zlib and OpenGL.
If this is not tested and some libraries are missing, the developer will
be notified very late in the build.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: msutcliffe, jenkins

Differential Revision: https://dev.swift-project.org/D34
2017-09-24 19:49:30 +01:00
Mathew Sutcliffe
1400f38aa9 Add missing PRE_TARGETDEPS in simulator plugin projects
Summary:
This fixes issue reported by Klaus in Slack:
> when I change something in the plugin driver, I always have to rebuild the plugins before I can debug again.

Also refactored `libraries.pri` to remove duplication.

Reviewers: #swift_pilot_client, rwinklmeier

Reviewed By: #swift_pilot_client, rwinklmeier

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D31
2017-09-24 19:49:18 +01:00
Roland Winklmeier
984b30aef3 Enable P3D-v4 64 bit build
Summary:
This commit enables P3D-v4 for 64 bit including all dependent libraries.
Those binaries are not yet installed, since they are considered
experimental.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Differential Revision: https://dev.swift-project.org/D30
2017-09-24 19:49:16 +01:00
Mathew Sutcliffe
ce1730b453 refs #937 Support for clazy. 2017-04-19 19:31:36 +01:00
Klaus Basan
f85501c7bf refs #921, use QVersionNumber
* CVersion removed
* remaining utility functions moved to CBuildConfig
* patch version -> micro version (Qt naming)
* using classes adjusted
2017-04-18 00:06:58 +01:00
Klaus Basan
347b54171b refs #891, added dir / config for P3D plugin 2017-04-17 23:57:13 +01:00
Mathew Sutcliffe
a74fcc3a7c Support for MSVC 2017 RC. 2017-02-24 00:18:18 +00:00
Roland Winklmeier
0a43ec6542 C++ flag large-address-aware is only valid for 32 bit builds 2016-12-13 19:01:10 +01:00
Mathew Sutcliffe
10ca2026a9 refs #802 Enable build with Clang on Windows. 2016-12-13 19:00:42 +01:00
Mathew Sutcliffe
c43c1458f4 Minor cleanup in qmake files. 2016-12-13 19:00:24 +01:00
Roland Winklmeier
ffa0b503a8 Handle addresses larger than 2 GB for MinGW builds
Before this commit, the default memory limit was around 2 GB and
our MinGW built executables hit this limit. Swift and all 3rd party
libraries are 64 bit safe, so it is also safe to use the
large-address-aware linker flag. This allows memory allocation up
to 4 GB.

refs #788
2016-12-06 09:46:55 +01:00
Roland Winklmeier
a87a4a7ef1 Install crashpad binaries
refs #490
2016-08-09 17:52:28 +02:00
Roland Winklmeier
e47aec223e Integrate Crashpad crash handler into CApplication
Crash handler launches an external crash handler executable called
swift_crashpad_handler. It monitores the parent process and produces
a local dump in case of a crash.
For release builds, the dump is also uploaded to a crash report server.

refs #490
2016-08-09 17:51:57 +02:00
Roland Winklmeier
71d9439537 Install all xbus dependencies
refs #615
2016-05-20 01:40:16 +02:00
Roland Winklmeier
d379f14133 Introduce build config template buildconfig.h.in
refs #625
2016-03-31 17:12:01 +02:00
Mathew Sutcliffe
a895cc2c54 refs #624 Removed many workarounds, no longer needed. 2016-03-22 16:02:58 +00:00
Mathew Sutcliffe
e9bb8f2fcc refs #624 Update qmake to CONFIG += c++14. 2016-03-19 20:39:25 +00:00
Roland Winklmeier
f82895501f Fix build on Mac OS X El Capitan (10.11) 2016-02-21 23:09:31 +01:00
Mathew Sutcliffe
1282fc4c14 refs #540 Add the ability to capture the current call stack, and use it in singleShot. 2015-12-08 22:30:10 +00:00
Mathew Sutcliffe
7d5e416991 Enable multi-core when compiling with the Visual Studio IDE. 2015-12-08 21:16:24 +00:00
Mathew Sutcliffe
d32f211a71 refs #461 Unify FS9/FSX platform conditions. 2015-11-23 23:29:27 +00:00
Roland Winklmeier
de87399080 Rename externals environmental variable to SWIFT_EXTERNALS_DIR 2015-11-23 23:29:25 +00:00
Mathew Sutcliffe
09c0d4b862 refs #461 Only complain about missing externals when qmake is really generating build files.
This is so we can use the fromfile function to extract variables from pro files.
2015-11-23 10:55:46 +00:00
Roland Winklmeier
b97a04373e Select externals subdir based on QMAKESPEC
refs #468
2015-11-22 19:41:47 +01:00
Roland Winklmeier
5eddef0f12 Add install targets
refs #486
2015-11-19 21:07:14 +00:00
Mathew Sutcliffe
dbb5a240da refs #482 Added new qmake feature files and includes. 2015-11-19 21:02:38 +00:00