Updated scripts and build docs.

master
DominikDeak 3 years ago
parent bb21dc127a
commit 536b9cf9b4
No known key found for this signature in database
GPG Key ID: 85514EC0CCE7007C
  1. 16
      Documentation/BuildingOnDarwin.md
  2. 17
      Documentation/BuildingOnWindows.md
  3. 2
      Scripts/Build/BuildDarwin.sh

@ -7,6 +7,7 @@
* [Homebrew](http://brew.sh/) * [Homebrew](http://brew.sh/)
* [Python 3](https://www.python.org/downloads/windows/) * [Python 3](https://www.python.org/downloads/windows/)
* [XCode](https://developer.apple.com/xcode/download/) * [XCode](https://developer.apple.com/xcode/download/)
* [Qt5](https://download.qt.io/official_releases/qt/)
2. Run the installer script to configure additional dependencies, as noted below. If you wish to examine what packages will be installed, see package lists [`PackageListBrew.txt`](../Scripts/Install/PackageListBrew.txt) and [`PackageListPython.txt`](../Scripts/Install/PackageListPython.txt). 2. Run the installer script to configure additional dependencies, as noted below. If you wish to examine what packages will be installed, see package lists [`PackageListBrew.txt`](../Scripts/Install/PackageListBrew.txt) and [`PackageListPython.txt`](../Scripts/Install/PackageListPython.txt).
@ -45,3 +46,18 @@ Similarly, one can clean the project, which resets Git repositories to a clean s
```sh ```sh
./Scripts/clean.py ./Scripts/clean.py
``` ```
<!--
### Issues
If you are building on Apple M1 and having trouble linking `arm64` binaries with the Qt5 library, try the following. Install Qt build dependencies:
```sh
brew install pcre2 harfbuzz freetype
```
Reinstall Qt5 and build from source:
```sh
brew reinstall -s qt5
```
-->

@ -12,16 +12,9 @@
* [WiX Toolset](https://wixtoolset.org/releases/), install the following components: * [WiX Toolset](https://wixtoolset.org/releases/), install the following components:
* WiX Toolset Build Tools * WiX Toolset Build Tools
* WiX Toolset Visual Studio 2019 Extension * WiX Toolset Visual Studio 2019 Extension
* [Qt 5](https://www.qt.io/download/), select the following components: * [Qt5](https://download.qt.io/official_releases/qt/)
* Qt 5.12.9 / MSVC 2017 64-bit
2. Edit the [`Scripts\config.txt`](../Scripts/config.txt) file and make sure the following variables are configured properly under the `[Windows]` section: 2. Run the installer script to configure additional dependencies, as noted below. If you wish to examine what packages will be installed, see package lists [`PackageListChoco.config`](../Scripts/Install/PackageListChoco.config) and [`PackageListPython.txt`](../Scripts/Install/PackageListPython.txt).
* `libQtPath` -- Full path to the Qt library, Visual C++, 64-bit build.
* `vcvarsallPath` -- Full path to Visual Studio's `vcvarsall.bat` command script. This sets the necessary compiler environment variables for building. See [Microsoft C++ toolset documentation](https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019) for details.
* `cmakeGenerator` -- Specifies the generator setting for cmake. Run `cmake --help` to choose a suitable generator that best matches the Visual Studio version installed earlier.
3. Run the installer script to configure additional dependencies, as noted below. If you wish to examine what packages will be installed, see package lists [`PackageListChoco.config`](../Scripts/Install/PackageListChoco.config) and [`PackageListPython.txt`](../Scripts/Install/PackageListPython.txt).
* If Python is already installed: * If Python is already installed:
```bat ```bat
@ -34,6 +27,12 @@
Use the `--upgrade` switch (Python), or the `-upgrade` switch (PowerShell) to refresh packages at a later date. Use the `--upgrade` switch (Python), or the `-upgrade` switch (PowerShell) to refresh packages at a later date.
3. Edit the [`Scripts\config.txt`](../Scripts/config.txt) file and make sure the following variables are configured properly under the `[Windows]` section:
* `libQtPath` -- Full path to the Qt library, Visual C++, 64-bit build.
* `vcvarsallPath` -- Full path to Visual Studio's `vcvarsall.bat` command script. This sets the necessary compiler environment variables for building. See [Microsoft C++ toolset documentation](https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019) for details.
* `cmakeGenerator` -- Specifies the generator setting for cmake. Run `cmake --help` to choose a suitable generator that best matches the Visual Studio version installed earlier.
### Building ### Building
Build the project with the following Python script. Packages will be copied into the [`Binaries`](../Binaries) directory. Build the project with the following Python script. Packages will be copied into the [`Binaries`](../Binaries) directory.

@ -6,7 +6,7 @@ configureCMake() {
-D CMAKE_PREFIX_PATH="${libQtPath};${openSSLPath}" \ -D CMAKE_PREFIX_PATH="${libQtPath};${openSSLPath}" \
-D CMAKE_BUILD_TYPE=Release \ -D CMAKE_BUILD_TYPE=Release \
-D CMAKE_OSX_DEPLOYMENT_TARGET=10.12 \ -D CMAKE_OSX_DEPLOYMENT_TARGET=10.12 \
-D CMAKE_OSX_ARCHITECTURES="arm64;x86_64" \ -D CMAKE_OSX_ARCHITECTURES=x86_64 \
-D SYNERGY_ENTERPRISE=ON \ -D SYNERGY_ENTERPRISE=ON \
-D SYNERGY_REVISION="${productRevision}" \ -D SYNERGY_REVISION="${productRevision}" \
|| exit 1 || exit 1

Loading…
Cancel
Save