Pierre Ossman
fe4b0145de
Set all HAVE_ macros on the top level
This keep everything consistent.
3 months ago
Pierre Ossman
76ee7475c0
Make systemd detection more robust
We don't need to look for this on Windows or macOS, and we need to be
able to gracefully handle systems without pkg-config.
3 months ago
Mike Looijmans
fdd429cd58
x0vncserver: Add support for systemd socket activation
systemd can pass in sockets as file descriptors 3 and beyond. Allows
the server to use socket activation.
When triggered by systemd, no other listening sockets (e.g. rfbport) will
be activated.
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
3 months ago
Pierre Ossman
cb4f920199
Remove old mingw CMake checks
This should have been removed with the code using these defines in
03ca975
.
1 year ago
Pierre Ossman
0043c557fc
Create .la files at the end of the cmake run
We might not have all the necessary information, e.g. all targets might
not exist yet, until we're done going through all CMakeLists.
1 year ago
Pierre Ossman
ebfd56106d
Enable more warnings by default
These are also useful warnings that tend to find real bugs, so let's
enable then.
The downside is they require us to mark certain things so the compiler
knows if they were on purpose or not.
1 year ago
Pierre Ossman
ff25168a53
Always enable -Wvla
It's only the -Werror part we want to be conditional on being debug
builds.
1 year ago
Pierre Ossman
afeeaa667a
Change development version to 1.13.80
1 year ago
Pierre Ossman
7c288cfcdf
Automatically generate RCVERSION
Avoid having to update this manually.
1 year ago
pdlan
484ae7a2ea
Add support for RSA-AES security types
1 year ago
Pierre Ossman
f2bbb6b303
Move include_directories() to proper places
We should scope these as narrowely as possible to avoid side effects.
1 year ago
Pierre Ossman
101cef956d
Find FFMPEG using pkg-config
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.
1 year ago
Pierre Ossman
4cf31302a1
Fix up ffmpeg header and library handling
FFMPEG is needed by the RFB library, so all the details about it should
only be applied there and not for other components.
1 year ago
Pierre Ossman
115d3f883e
Add target_link_directory() compat function
We need this function to deal with pkgconfig files properly, but
unfortunately it doesn't exist until CMake 3.13, and we need to support
CMake 3.10. So add a hacky compatibility function for older systems.
1 year ago
Pierre Ossman
99209d0339
Enable stream sanity checks in debug builds
Enable this automatically for developers so we increase the chance of
these problems getting caught. There is a risk of overhead though so
keep them disabled for release builds.
2 years ago
Pierre Ossman
d0c7b915c7
Remove 32-/64-bit distinctions
The migration from 32-bit to 64-bit has long passed. Let's get rid of
all distinctions as native applications it the norm now.
2 years ago
Mārtiņš Možeiko
139e5e9477
support H264 decoding with MediaFoundation on Windows
2 years ago
Vladimir Sukhonosov
03df448496
H264 Decoder
Linux implementation using ffmpeg
2 years ago
Jan Grulich
d2d5270462
SELinux: restore SELinux context in case of different policies
2 years ago
Pierre Ossman
cb3c78f433
Raise CMake requirement to 3.10
It's difficult to support both old and new versions, so raise the
requirement to the oldest that is commonly used, which is CMake 3.10.2
on Ubuntu 18.04.
2 years ago
Pierre Ossman
56c50c0146
Change development version to 1.12.80
2 years ago
Pierre Ossman
e7f8370ffc
Disable dangerous macOS SDK macros
They define macros such as "check()" which causes our code to break as
we have methods with that name.
2 years ago
Alex Richardson
9d2b692afd
Allow building with -DBUILD_VIEWER=OFF
Without this change I get CMake errors due to use of ${FLTK_INCLUDE_DIR}
and references to the non-existent vncviewer target.
2 years ago
Pierre Ossman
087895a2f8
Disable nonliteral format warnings on clang
These are incompatible with functions such as gettext() as clang hasn't
implemented the function attribute function_arg.
2 years ago
Pierre Ossman
a7f1984a08
Change development version to 1.11.80
3 years ago
Pierre Ossman
fdde72c820
Move release cmake stuff to release directory
It's just confusing when this is split over two directories.
3 years ago
Samuel Mannehed
3264216c2d
Bump up Windows version from Vista to Windows 7
4 years ago
Pierre Ossman
ecb016fe3f
Switch region code to pixman
This is the current upstream so let's make use of it to get the latest
in features and fixes.
4 years ago
Pierre Ossman
e4f253e1d1
Use standard install dir variable names
This makes our builds directly compatible with most distributions
without packagers/users having to specify extra flags.
5 years ago
Pierre Ossman
1af1cfdf87
Start sessions via PAM
This sets up a more correct session as there are key tasks that
need to be performed by PAM. E.g. systemd will allocate cgroups
and start base services.
In order to easily handle this as a system service the mapping of
displays is now done via a configuration file.
5 years ago
Pierre Ossman
d80817f101
Make PAM mandatory
It is present on all UNIX systems anyway, so let's simplify things.
We will need it for more proper session startup anyway.
5 years ago
Pierre Ossman
df25ae4119
Always install systemd services
It is the most common init system these days so it should not be
hidden in the contrib/ directory.
This also removes all old SysV files from the contrib packages.
6 years ago
Pierre Ossman
ebaa948e46
Add default configuration files
Install some example files to make things more easily discoverable.
5 years ago
Pierre Ossman
0029e3e2b4
Change development version to 1.10.80
4 years ago
Bernhard M. Wiedemann
e27c896998
Use cmake TIMESTAMP function
because it is not only platform independent
but also allows to override the build date
This helps to make tigervnc builds reproducible
See https://reproducible-builds.org/ for why this is good
Also adds UTC flag, to be independent of timezone.
Also changes JAVA_DATE format to ISO-8601 date format.
Requires cmake-2.8.11+ from 2013
5 years ago
Pierre Ossman
beb59a4320
Remove variable length arrays
These are not allowed in C++, and have been made optional in C11.
So let's just get rid of them and any issues they may cause.
5 years ago
Pierre Ossman
1f8d9988d1
Change development version to 1.9.80
5 years ago
Peter Åstrand (astrand)
f6ebe21f6c
Fix windows build with -DCMAKE_BUILD_TYPE=Debug on machines with IActiveDesktop
Avoid that the check_c_source_compiles tests fails due to unused
variables, since Debug adds -Werror.
6 years ago
Pierre Ossman
d5391142f7
Make sure we get C99
The compiler might default to something older, so make sure we get
the features we need.
6 years ago
Pierre Ossman
eefa6fe6e7
Change development version to 1.8.80
7 years ago
Joel Teichroeb
ec71201348
Check CMake version for MinGW RC file handling
7 years ago
Pierre Ossman
f524072e54
Change development version to 1.7.80
7 years ago
Pierre Ossman
4b9c1ff9a8
Use cmake_policy() in a safe way
cmake_policy() by itself raises the minimum requirement on CMake.
We want it to be optional though, so add the necessary if() around
it.
8 years ago
Pierre Ossman
14c563a22e
Avoid builtin dgettext when checking libc
The builtin causes errors in the test, and we're also trying to
determine if it is provided by libc or not.
8 years ago
Pierre Ossman
aaa2d0e44c
Silence CMake link interface warning
We don't modify the link interface directly so these warnings are
just useless noise. We could in theory use the new naming instead,
but at least CMake 2.8.12 is buggy and screws up the link when that
policy is active.
8 years ago
Pierre Ossman
210b4b5b24
Don't probe libintl if it wasn't found
It just makes CMake error out rather than continue without NLS
support.
8 years ago
Pierre Ossman
b74728f9d6
Add option to enable thread sanitizer
8 years ago
Pierre Ossman
1cc323df53
Raise system requirement on Windows to Vista/2008
We need the newer versions of Windows to get access to better
thread primitives.
8 years ago
Pierre Ossman
c416ad5389
Change development version to 1.6.80
8 years ago
DRC
872e5dd859
Allow BUILD_TIMESTAMP to be set statically
8 years ago