aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/StaticBuild.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Don't link gcrypt for static GnuTLSPierre Ossman2024-03-151-5/+0
| | | | | | GnuTLS seems to have dropped grypt support ages ago, so let's not confuse things by assuming it might be needed when linking GnuTLS statically.
* Move where -nodefaultlibs is specifiedPierre Ossman2023-06-281-4/+3
| | | | | | | The previous method isn't compatible with CMake's try_compile() as it will respect CMAKE_EXE_LINKER_FLAGS, but not CMAKE_C_LINK_EXECUTABLE and friends. This results in the default libraries being completely missing, and the compile test failing.
* Add support for RSA-AES security typespdlan2022-09-011-0/+6
|
* Use pkg-config for pixmanPierre Ossman2022-06-071-1/+1
| | | | | | This is the standard method of finding it on Unix systems, so make sure we use it. Still keep a fallback, though, for other systems, e.g. Windows.
* Allow building with -DBUILD_VIEWER=OFFAlex Richardson2021-07-151-1/+1
| | | | | Without this change I get CMake errors due to use of ${FLTK_INCLUDE_DIR} and references to the non-existent vncviewer target.
* Fix bad library references for some static depsPierre Ossman2020-12-071-2/+2
|
* Add comment why unistring is linked dynamicallyPierre Ossman2020-12-071-0/+2
|
* Update build system so it will compile on Windows 10.Danny Park2020-08-181-2/+47
| | | | | | With this commit, TigerVNC will compile for Windows using MSYS2, MinGW-w64 and Inno Setup 6. The resulting binaries have some dll dependencies (even with BUILD_STATIC). The required dll dependencies are not included in the installer. Unfortunately, the latest version of MSYS2 and MinGW-w64 do not produce a working executable for Windows 7.
* Merge branch 'regions' of https://github.com/CendioOssman/tigervncPierre Ossman2020-06-151-0/+1
|\
| * Switch region code to pixmanPierre Ossman2020-05-011-0/+1
| | | | | | | | | | This is the current upstream so let's make use of it to get the latest in features and fixes.
| * Also link in math library in static buildPierre Ossman2020-05-011-1/+1
| | | | | | | | | | It's included by default in dynamic builds so we need to make sure it isn't lost when switching to static.
* | Implement touch gesture handling on UnixAaron Sowry2020-05-291-2/+2
| | | | | | | | | | Allows the user to perform certain important mouse operations using touch gestures instead.
* | Implement X Input pointer handling for UnixAaron Sowry2020-05-291-0/+3
|/ | | | | | | | Switch from using Core events to using X Input events for pointer devices in order to differentiate between mouse events and touch events. Because FLTK doesn't understand X Input 2, we intercept these events and translate them to core events where possible.
* Fix C linking when doing static buildsPierre Ossman2020-03-121-2/+3
|
* Include Carbon when statically linking gettext on macOSPierre Ossman2020-01-301-0/+3
| | | | | As gettext needs some stuff from Carbon and we don't want to rely on it being pulled in as a side effect.
* Fix link order of nettle and hogweedPierre Ossman2019-12-091-1/+1
| | | | | Hogweed needs nettle, not the other way around. So make sure they are specified in the correct order for the static link to succeed.
* Include libuuid in static buildsPierre Ossman2019-01-091-1/+1
| | | | Modern fontconfig needs it, so make sure it is included.
* Link zlib statically on all platformsPeter Åstrand (astrand)2018-09-191-4/+1
| | | | | The API and ABI isn't as stable as we need, so it isn't safe to link it dynamically even on Linux.
* Add RandR support for x0vncserverPeter Åstrand (astrand)2018-04-091-0/+3
| | | | | | | | Change Xserver screen through libXrandr. For complex configurations, all outputs must have corresponding size modes. As a special case, if the client requests a single screen with an odd size (for example when adjusting the size of a non-fullscreen vncviewer), find a smaller suitable mode, and reduce the framebuffer size as well.
* Add libpng as a dependency for freetype for static buildsPierre Ossman2017-08-241-1/+1
| | | | Newer versions of Freetype requires libpng as well.
* Add option to enable thread sanitizerPierre Ossman2015-11-271-0/+7
|
* Allow static linking against only the GCC libsDRC2015-10-271-1/+7
|
* Add address sanitizer switchPierre Ossman2015-09-291-0/+3
| | | | | | Useful for debugging memory leaks and access violations. It is not available on Windows though, and there is some problem compiling ObjectiveC++ with it turned on.
* Merge branch 'upreqs' of https://github.com/CendioOssman/tigervncPierre Ossman2015-03-121-1/+1
|\ | | | | | | | | | | Conflicts: contrib/packages/rpm/el5/SPECS/tigervnc.spec vncviewer/Viewport.cxx
| * Drop bundled zlibPierre Ossman2015-02-031-1/+1
| | | | | | | | | | We're not doing a sufficient job of keeping this updated so list it as an external requirement instead.
* | Merge branch 'perf' of https://github.com/CendioOssman/tigervncPierre Ossman2015-02-131-2/+6
|\ \
| * | GnuTLS needs socket libraries so include them in the static linkPierre Ossman2015-02-131-2/+6
| |/
* / Build fixes for modern versions of binutils.Peter Åstrand (astrand)2015-02-101-2/+2
|/ | | | Need to explicitly list DSOs.
* Static build fix - only attempt to link against libtasn1 if it's presentBrian P. Hinz2014-11-041-1/+6
| | | | | GnuTLS may be compiled without external libtasn1, so we shouldn't try to link against it unless it's actually present.
* Back out previous changeBrian P. Hinz2014-11-041-6/+1
| | | | Needed to merge upstream changes in before creating pull request.
* Merge remote-tracking branch 'upstream/master' into buildfixesBrian P. Hinz2014-11-031-11/+29
|\
| * Handle mingw circular dependencies in base librariesPierre Ossman2014-11-031-1/+5
| | | | | | | | Our link order should now match the built-in library list.
| * Use dynamic builds by defaultPierre Ossman2014-10-281-1/+1
| | | | | | | | | | Static builds are the special case, so it should be left off by default.
| * Include gettext and zlib in static GnuTLS linkPierre Ossman2014-10-281-0/+9
| | | | | | | | | | This is needed to make sure they are always included, and in the proper order.
| * Only link with crypt32 on WindowsPierre Ossman2014-10-281-1/+6
| | | | | | | | | | crypt32 is a Windows thing, and it is used no matter the crypto backend.
| * Put quotes around entire static link variablesPierre Ossman2014-10-281-8/+8
| | | | | | | | | | | | CMake is very aggressive about minimising the list of libraries, so we need to be similarily aggressive about quotes to make sure we get everything we want and in the correct order.
* | Static build fix - only attempt to link against libtasn1 if it's presentBrian P. Hinz2014-11-031-1/+6
|/ | | | | GnuTLS may be compiled without external libtasn1, so we shouldn't try to link against it unless it's actually present.
* Add in missing dependency for windows builds.Brian P. Hinz2014-10-221-1/+1
| | | | Commit f95272d created some undefined references in GnuTLS.
* Extend "static" build optionPierre Ossman2014-10-171-0/+96
Try to link as much as possible statically in an effort to produce binaries that can be run everywhere.