comphelper/Module_comphelper.mk | 2 ++ comphelper/StaticLibrary_windows_process.mk | 14 ++++++++------ include/comphelper/windowsStart.hxx | 4 ++-- onlineupdate/Executable_updater.mk | 2 +- onlineupdate/Module_onlineupdate.mk | 3 +-- onlineupdate/source/update/updater/updater.cxx | 2 +- 6 files changed, 15 insertions(+), 12 deletions(-)
New commits: commit 5875fd0313cb0aeb7e63d5ea9455f83ea18787b5 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Mon Aug 7 15:35:30 2017 +0200 updater: move the windows process starting code to comphelper Change-Id: I1a499f57d01ee28afdb2c4f85dc976f2e6837dfd Reviewed-on: https://gerrit.libreoffice.org/40837 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/comphelper/Module_comphelper.mk b/comphelper/Module_comphelper.mk index e04d230d2069..30ac708a927d 100644 --- a/comphelper/Module_comphelper.mk +++ b/comphelper/Module_comphelper.mk @@ -21,6 +21,8 @@ $(eval $(call gb_Module_Module,comphelper)) $(eval $(call gb_Module_add_targets,comphelper,\ Library_comphelper \ + $(if $(filter WNT,$(OS)),\ + StaticLibrary_windows_process )\ )) $(eval $(call gb_Module_add_subsequentcheck_targets,comphelper,\ diff --git a/onlineupdate/StaticLibrary_winhelper.mk b/comphelper/StaticLibrary_windows_process.mk similarity index 55% rename from onlineupdate/StaticLibrary_winhelper.mk rename to comphelper/StaticLibrary_windows_process.mk index e6058c3f51e7..1b086eac952b 100644 --- a/onlineupdate/StaticLibrary_winhelper.mk +++ b/comphelper/StaticLibrary_windows_process.mk @@ -7,16 +7,18 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -$(eval $(call gb_StaticLibrary_StaticLibrary,winhelper)) +$(eval $(call gb_StaticLibrary_StaticLibrary,windows_process)) -$(eval $(call gb_StaticLibrary_set_include,winhelper,\ - -I$(SRCDIR)/onlineupdate/inc/ \ - -I$(SRCDIR)/onlineupdate/source/winhelper/ \ +$(eval $(call gb_StaticLibrary_set_include,windows_process,\ $$(INCLUDE) \ )) -$(eval $(call gb_StaticLibrary_add_exception_objects,winhelper,\ - onlineupdate/source/winhelper/windowsStart \ +$(eval $(call gb_StaticLibrary_add_defs,windows_process,\ + -DUNICODE \ +)) + +$(eval $(call gb_StaticLibrary_add_exception_objects,windows_process,\ + comphelper/source/windows/windows_process \ )) # vim:set shiftwidth=4 tabstop=4 noexpandtab: */ diff --git a/onlineupdate/source/winhelper/windowsStart.cxx b/comphelper/source/windows/windows_process.cxx similarity index 100% rename from onlineupdate/source/winhelper/windowsStart.cxx rename to comphelper/source/windows/windows_process.cxx diff --git a/onlineupdate/inc/winhelper/windowsStart.hxx b/include/comphelper/windowsStart.hxx similarity index 88% rename from onlineupdate/inc/winhelper/windowsStart.hxx rename to include/comphelper/windowsStart.hxx index 7a9d54a506f2..ce66ef933b68 100644 --- a/onlineupdate/inc/winhelper/windowsStart.hxx +++ b/include/comphelper/windowsStart.hxx @@ -3,8 +3,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_ONLINEUPDATE_INC_WINSTART_HXX -#define INCLUDED_ONLINEUPDATE_INC_WINSTART_HXX +#ifndef INCLUDED_COMPHELPER_WINSTART_HXX +#define INCLUDED_COMPHELPER_WINSTART_HXX #ifdef _WIN32 #include <windows.h> diff --git a/onlineupdate/Executable_updater.mk b/onlineupdate/Executable_updater.mk index 6071ae54837a..754fc9e898d5 100644 --- a/onlineupdate/Executable_updater.mk +++ b/onlineupdate/Executable_updater.mk @@ -23,7 +23,7 @@ $(eval $(call gb_Executable_use_static_libraries,updater,\ libmarverify \ updatehelper \ $(if $(filter WNT,$(OS)), \ - winhelper )\ + windows_process )\ )) $(eval $(call gb_Executable_use_externals,updater,\ diff --git a/onlineupdate/Module_onlineupdate.mk b/onlineupdate/Module_onlineupdate.mk index 2f3817182e03..a900e631a877 100644 --- a/onlineupdate/Module_onlineupdate.mk +++ b/onlineupdate/Module_onlineupdate.mk @@ -17,8 +17,7 @@ $(eval $(call gb_Module_add_targets,onlineupdate,\ StaticLibrary_updatehelper \ $(if $(filter WNT,$(OS)),\ Executable_update_service \ - WinResTarget_updater \ - StaticLibrary_winhelper )\ + WinResTarget_updater )\ Executable_mar \ Executable_updater \ Executable_mbsdiff \ diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx index 8a1ef8bf5b24..1509d570ba23 100644 --- a/onlineupdate/source/update/updater/updater.cxx +++ b/onlineupdate/source/update/updater/updater.cxx @@ -63,7 +63,7 @@ #include <onlineupdate/mozilla/Types.h> #ifdef _WIN32 -#include <winhelper/windowsStart.hxx> +#include <comphelper/windowsStart.hxx> #include "uachelper.h" #include "pathhash.h" _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits