Commit Graph

26 Commits

Author SHA1 Message Date
Mat Sutcliffe
0d52c4ca47 Issue #17 Using xplanemp2 2020-08-02 23:01:29 +01:00
Mat Sutcliffe
1b2b33cf90 Issue #17 Add xplanemp2 submodule 2020-08-02 23:00:21 +01:00
Klaus Basan
e9decab36a Avoid ERROR: Missing XSWIFTBUS_COMMIT variable
see discussion: https://discordapp.com/channels/539048679160676382/539925070550794240/687795747403595847
2020-06-12 18:42:38 +01:00
Lars Toenning
42fd0ed86e Add support for non multi-arch linux distros 2020-06-12 18:42:37 +01:00
Mat Sutcliffe
e1a894f81a [xswiftbus] use $$files in qmake so files show up in VS IDE solution explorer 2020-06-12 18:42:22 +01:00
Mat Sutcliffe
0a2001a68e [xswiftbus] Use std::string_view for performance in CDBusMessage
This avoids repeated dynamic memory allocations in dbusMessageHandler
methods and elsewhere due to repeatedly constructing temporary strings.

std::string_view is a C++17 feature but also part of the Library
Fundamentals TS and available in all our compilers.
2020-01-13 18:53:31 +00:00
Mat Sutcliffe
f056d4fcd6 New schema for the 4th segment of the swift version number
Based on a count of the number of commits since
any of the first 3 segments were changed.
2020-01-07 19:57:26 +00:00
Mat Sutcliffe
836eb107a3 Smart xswiftbus compatibility check based on git commit SHA-1
This is more tolerant that the simple check based on version numbers.
Different versions can be compatible if they have the same SHA-1 when
considering only those files that can influence xswiftbus.
2020-01-07 19:57:25 +00:00
Roland Rossgotterer
6b17f847e9 Fix and improve xswiftbus version mismatch warning 2019-04-11 22:12:03 +01:00
Roland Rossgotterer
7a2ed1433d [XSwiftBus] Add more Linux library dependencies 2019-02-22 20:36:28 +00:00
Roland Rossgotterer
b775d99dc4 [XSwiftBus] Apply XPLM 2.1 packaging structure 2019-02-22 20:36:28 +00:00
Mat Sutcliffe
307e170d5f Integrate swift version numbering into the json config system. 2019-02-22 20:23:26 +00:00
Roland Rossgotterer
6246315b90 Set xswiftbus' dep_target configuration to no_check_exist globally
The configuration for MacOS branch got removed in a previous commit which
caused DBus and libevent libraries not to be installed since they are not
yet existing in the expected path at the time when qmake runs.
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
55c2e2e559 [XSwiftBus] Add getVersionNumber to DBus API
This allows to get the version number of XSwiftBus itself. It maintains the same version as swift (e.g. 0.8.7 without the time stamp) and can be used to compare it for compatibility reasons.

ref T394
2018-11-29 20:54:26 +01:00
Roland Winklmeier
1c1d2b23d7 Install and package libevent_core on Mac OS 2018-11-29 20:54:25 +01:00
Roland Winklmeier
ce0b63f8f1 Add simple config file support to XSwiftBus
This adds a simple configuration file to XSwiftbus. So far, only the
xswiftbus DBus server is configured.

ref T291
2018-08-07 20:40:52 +02:00
Klaus Basan
1336aa05f9 Fixed XSwiftBus pro as discussed here: https://swift-project.slack.com/archives/G7GD2UP9C/p1526231272000077 2018-05-18 00:25:06 +02:00
Roland Winklmeier
6a8ae67e06 [xswiftbus] Make xswiftbus completely Qt free 2018-05-08 16:06:30 +02:00
Roland Winklmeier
b0a8fcaa45 [xswiftbus] Remove BlackMisc dependency
There were only very few classes used from Blackmisc after the interpolator
was moved to the driver. Therefore replace those few classes with
a simple alternative and remove BlackMisc from xswiftbus.
2018-05-08 16:06:30 +02:00
Roland Winklmeier
d77931e5ec [xswiftbus] Replace QtDBus with a libevent driven C++ wrapper on top of libdbus
QtDBus was the main component of xswiftbus' Qt dependency. This is the
first preparation step to get xswiftbus Qt free.
The new implementation is based on the low level libdbus library, which
was also in use by QtDBus itself. But instead of QtDBus, we use now a thin
C++ wrapper. To keep DBus handling async, libevent is used to monitor
timeouts and fds.
2018-05-08 16:06:29 +02:00
Roland Winklmeier
fb47a5356a Install libdbus-1 into xswiftbus on Mac OS
ref T174
2017-10-18 22:58:19 +02:00
Roland Winklmeier
6d8c833464 Preserve symbolic links while installing Qt frameworks
ref T174
2017-10-18 22:58:18 +02:00
Mathew Sutcliffe
c6c2c86d30 Install DBus dependencies alongside XSwiftBus on Windows
Summary:
XSwiftBus needs to be able to locate dbus-1-3.dll, expat.dll, and dbus-daemon.exe.

We simply need to install them in the same folder as XSwiftBus itself (as we already do with blackmisc.dll).

Then we need to install session.conf in a share/dbus-1 subfolder where dbus-daemon.exe can find it.

Reviewers: rwinklmeier

Reviewed By: rwinklmeier

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D54
2017-10-16 14:08:52 +01:00
Roland Winklmeier
c8a9f76a32 Remove the workaround to install libstdc++-6.dll
Summary: In version 5.9.0, Qt fixed installing file names containing the plus sign.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Differential Revision: https://dev.swift-project.org/D45
2017-09-24 19:50:52 +01:00
Roland Winklmeier
b9c06c8581 Fix xswiftbus library install on Unix
Summary:
With Qt 5.9, the install executable changed from coreutils 'install'
 to qmake. This changed the behaviour for symbol links and wild cards.
 Previously, the symbol link target was installed as deep copy but with
 the name of the symbol link on MacOS. Now qmake just creates a new symbol
 link everywhere. Wild cards at install time also do not work anymore.
 Install files are only resolved properly, if they existed when qmake was
 running. This is not the case for our build products.
 To address both issues, we need to manually call cp command. cp command
 does deep copy symbol links, therefore copy only one with the major version
 number only.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: msutcliffe, jenkins

Differential Revision: https://dev.swift-project.org/D38
2017-09-24 19:50:46 +01:00
Mathew Sutcliffe
4a4dea8d4d Rename xbus to xswiftbus
Summary:
I wanted to rename xbus because its relation to //swift// is not immediately clear from the name.

xswiftbus seems reasonable.

Reviewers: #swift_pilot_client, kbasan

Reviewed By: kbasan

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D14
2017-05-05 23:07:11 +01:00