wireshark/extcap
Peter Wu 5cc461490d CMake: use object libraries to avoid redundant builds
Some source files are duplicated via add_executable. Assuming that these
are not affected by target-specific preprocessor macros, they can be
built only once and shared among executables.

In one configuration, this reduces the number of object files by 55
(cli_main.c and version_info.c alone were built 15 times each).

Removes the version dependency from each target since the 'version_info'
target can now declare this dependency. Remove CLEAN_C_FILES from extcap
since it is not used to set -Werror. Due to removing some files from
wireshark_FILES (and others), these are no longer part of checkAPIs
though. Hopefully that is acceptable.

Change-Id: I0a3f1ffb950e70a6176c96d867f694fbc6476f58
Reviewed-on: https://code.wireshark.org/review/31509
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: João Valverde <j@v6e.pt>
Petri-Dish: João Valverde <j@v6e.pt>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-12 18:20:44 +00:00
..
.editorconfig Win32: Make extcap utilities console applications. 2018-10-12 19:01:49 +00:00
CMakeLists.txt CMake: use object libraries to avoid redundant builds 2019-01-12 18:20:44 +00:00
androiddump.c cli_main: remove real_main from stack traces for non-Windows 2019-01-02 12:08:20 +00:00
ciscodump.c cli_main: remove real_main from stack traces for non-Windows 2019-01-02 12:08:20 +00:00
dpauxmon.c Extcap programs must write to the packet pipe in binary mode. 2018-07-19 09:30:52 +00:00
dpauxmon_user.h extcap: Support for DisplayPort AUX channel monitors 2018-05-14 10:44:37 +00:00
extcap-base.c extcap: save debug flag and use it to activate ssh debug. 2018-11-14 04:58:38 +00:00
extcap-base.h Put the main() and wmain() routines for CLI programs into a separate file. 2018-12-13 00:52:11 +00:00
randpktdump.c cli_main: remove real_main from stack traces for non-Windows 2019-01-02 12:08:20 +00:00
sdjournal.c writecap: rename pcapng_write_session_block to _section_block 2018-12-18 23:41:41 +00:00
ssh-base.c ssh-base: fix no previous prototype for ‘extcap_log’ [-Wmissing-prototypes] 2018-12-26 20:14:37 +00:00
ssh-base.h extcap: save debug flag and use it to activate ssh debug. 2018-11-14 04:58:38 +00:00
sshdump.c cli_main: remove real_main from stack traces for non-Windows 2019-01-02 12:08:20 +00:00
udpdump.c cli_main: remove real_main from stack traces for non-Windows 2019-01-02 12:08:20 +00:00