Module: check_mk
Branch: master
Commit: 355e515d63f67199b5ac2c0041df6dd33d687ce1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=355e515d63f671…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Fri Jan 19 14:35:56 2018 +0100
Windows agent: build check_mk_agent.a library
Link this lib to both check_mk_agent.exe and WindowsAgentTest.exe. The
target was to allow different compile options (include path) for test
sources than for the rest of the sources but reuse same object files /
libraries for both the exe and tests without the need to compile them
twice.
Fix linkage by replacing global extern variables with_stderr and
g_workers_job_object with member variables in Environment.
Change-Id: Ic77e14c1d252adae674de37009b53d7f8d1500b3
---
agents/windows/Environment.cc | 7 ++++--
agents/windows/Environment.h | 13 ++++++++++-
agents/windows/ExternalCmd.cc | 13 +++++------
agents/windows/ExternalCmd.h | 9 +++++---
agents/windows/Makefile.am | 27 ++++++----------------
agents/windows/check_mk_agent.cc | 23 ++++--------------
agents/windows/configure.ac | 1 +
agents/windows/test/EnvironmentTest.cc | 20 ++++++++++------
.../windows/test/sections/SectionEventlogTest.cc | 20 ++++++++--------
.../windows/test/sections/SectionLogwatchTest.cc | 24 +++++++++----------
10 files changed, 75 insertions(+), 82 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=355e515d63…