Commit Graph

36 Commits

Author SHA1 Message Date
akallabeth a27d9508e2
[cmake] unify CFLAGS to string
* move to common CMake function
* escape CFLAGS
2024-10-25 11:40:43 +02:00
akallabeth aa9b03df25
[cmake] generate full buildflags.h CFLAGS
Combine current configuration flags with CMAKE_C_FLAGS
2024-10-24 09:08:08 +02:00
akallabeth cfc37caeb8
[cmake] cleaning_configure_file
add a wrapper to automatically add generated files to clean target
2024-10-02 23:28:08 +02:00
akallabeth 98f22d49b9 [CMake] add public headers as INTERFACE target 2024-09-12 18:54:40 +02:00
Armin Novak 33764e603a [common,addin] make plugin loader path configurable
* Add new option WITH_ABSOLUTE_PLUGIN_LOAD_PATHS to allow overriding
  platform default option (load channel plugins with absolute paths or
  from environment search paths)
* Fix freerdp_get_dynamic_addin_install_path: use native platform path
  separators
2024-01-30 09:48:52 +01:00
Armin Novak 704ee8bc4b [settings] add unused values and sign correct keys
* add -1 as unused enum entry
* change key parameter type from size_t to SSIZE_T
2023-11-24 14:54:56 +01:00
akallabeth cd4d77af86 [settings] add deprecation warnings
direct struct access to rdpSettings now produces warnings if not
explicitly deactiaved by defining FREERDP_SETTINGS_INTERNAL_USE
2023-11-24 14:54:56 +01:00
akallabeth 82eefe0bd1 [settings] auto generate key types from struct
* use enum types for settings getter/setter to have compiler check if
  keys are valid
* generate enum types from struct at compile time
* CMake option WITH_OPAQUE_SETTINGS to hide rdpStruct implementation
  from external projects
2023-11-24 14:54:56 +01:00
akallabeth 57bec81019 [cmake] fix build with -DWITH_SERVER=OFF 2023-11-07 10:53:46 +01:00
akallabeth 92e453754b [CMake] add public headers to targets
Add all public headers to the respective library targets.
This helps an IDE to show the headers grouped to the correct target.
2023-10-19 13:43:57 +02:00
Armin Novak d1f8c00f7b Fixed duplicated symbols 2022-03-03 11:26:48 +01:00
Armin Novak b2ad47a809 Reorganized FreeRDP headers 2022-03-03 11:26:48 +01:00
Bernhard Miklautz 6fa3608111 cleanup cmake exports and pkg-config files
With this commit the "exported" components (usable with pkg-config and
cmake find module package)
* winpr - winpr library and headers
* freerdp - core library and headers
* freerdp-client - client specific library
* freerdp-server - server specific library
* rdtk - rdtk headers and library

To allow the installation of multiple different version (different major
number) the include files were moved into the respective sub folder:
freerdp -> freerdp{MAJOR}/freerdp (currently freerdp2/freerdp/)
winpr -> winpr{MAJOR}/winpr (currently winrp1/winpr/)
rdtk -> rdpk{MAJOR}/rdtk (currently rdtk0/rdtk/

The generated pkg-config and cmake find modules now also include the major
version number. Currently the following pkg-config are generated and
installed.
* winpr1
* freerdp2
* freerdp-server2
* freerdp-client2
* rdtk0

As cmake is able to handle multiple versions out of the box the
following can be used to find a specific module:

find_package(WinPR)
find_package(FreeRDP)
find_package(FreeRDP-Server)
find_package(FreeRDP-Client)
find_package(RdTk)

As cmake doesn't automatically resolve dependencies for packages it is
necessary to manually include the requirements. For example if
FreeRDP-Client is required WinPR and FreeRDP need to be included
(find_package) as well.

This commit also fixes the installation when STATIC_CHANNELS are built.
WITH STATIC_CHANNELS all channels are linked into libfreerdp-client, for
this all channels are generated as linker archive and linked together in
the final step. Before the intermediate linker archives were, although
not required and useful, installed. Same applies for server side
channels.
2016-01-12 17:32:33 +01:00
Bernhard Miklautz d73c4898c1 Add build-config.h
build-config.h should contain configure/compile time settings that are
relevant for projects that use FreeRDP.

For example the compiled in plugin search paths.
2015-11-09 15:54:22 +01:00
Marc-André Moreau 1c9231acf8 libfreerdp-rail: remove 2014-11-12 19:51:17 -05:00
Bernhard Miklautz c9f49162bd install version.h 2013-11-06 17:44:17 +01:00
Bernhard Miklautz a0161a12ac moved version information to freerdp/version.h
fixed #1465
2013-11-06 17:29:33 +01:00
Marc-André Moreau 63858bf722 cmake: improve NSIS packaging 2012-10-17 13:07:29 -04:00
Marc-André Moreau e60a092d81 freerdp: fix headers 2012-10-08 23:02:04 -04:00
Marc-André Moreau 837cc777ce channels: move include/freerdp/plugins to include/freerdp/client 2012-10-08 20:33:58 -04:00
Marc-André Moreau 93f88d1c48 channels: added support for loading plugins from a static entry table 2012-10-08 19:54:11 -04:00
Marc-André Moreau e9936ddc96 cmake: merging with master 2012-08-14 20:21:00 -04:00
Marc-André Moreau c5624ce58f include: fix installation of headers 2012-08-14 19:55:48 -04:00
Vic Lee 6d431d7a28 cmake: in case build path is different config.h needs to be install separately. 2012-08-13 17:24:52 +08:00
Marc-André Moreau 6720e664d7 winpr: get rid of config.h include in installable headers 2012-08-12 20:43:24 -04:00
Vic Lee 052f841d7f server: add rdpsnd server channel library. 2012-05-24 14:03:21 +08:00
Marc-André Moreau 85eaf79239 cunit: fix compilation 2012-05-05 20:45:13 -04:00
maelnor 61010feae8 Fix header files installation 2012-02-22 13:17:59 +04:00
Anthony Tong 00133a2090 build fixes 2011-10-17 09:39:21 -04:00
Vic Lee f9ef2784f7 include: fix libfreerdp-codec header installation. 2011-10-04 19:07:54 +08:00
ydal 784633aba0 Edited include/CMakeLists.txt via GitHub 2011-09-07 16:24:17 +09:00
Rex Tsai a75b4f8162 cmake: Install all extra headres. 2011-09-01 22:28:48 +08:00
Vic Lee 559e610b80 cmake: fix installation of all headers. 2011-08-30 16:00:09 +08:00
Otavio Salvador b41e5419a1 cmake: fix headers installation path
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-07-17 16:05:32 -03:00
Marc-André Moreau fd2d804578 cmake: updated copyright notices 2011-07-02 13:58:55 -04:00
Marc-André Moreau e038b068b8 cmake: initial commit 2011-06-30 20:31:07 -04:00