From e629526bf5304107c08de38ecaf8f856922a24d5 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 21 Sep 2011 19:51:11 +0300 Subject: Fixes for MSVC build --- desktop/Executable_crashrep.com.mk | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'desktop/Executable_crashrep.com.mk') diff --git a/desktop/Executable_crashrep.com.mk b/desktop/Executable_crashrep.com.mk index 5d01173a7b41..45e841028388 100644 --- a/desktop/Executable_crashrep.com.mk +++ b/desktop/Executable_crashrep.com.mk @@ -23,31 +23,37 @@ # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # instead of those above. -$(eval $(call gb_Executable_Executable,crashrep.com)) +ifeq ($(OS_FOR_BUILD),WNT) +crashrepcom := crashrep_com +else +crashrepcom := crashrep.com +endif -$(eval $(call gb_Executable_set_targettype_gui,crashrep.com,NO)) +$(eval $(call gb_Executable_Executable,$(crashrepcom))) -$(eval $(call gb_Executable_add_precompiled_header,crashrep.com,desktop/inc/pch/precompiled_desktop.hxx)) +$(eval $(call gb_Executable_set_targettype_gui,$(crashrepcom),NO)) -$(eval $(call gb_Executable_set_include,crashrep.com,\ +$(eval $(call gb_Executable_add_precompiled_header,$(crashrepcom),desktop/inc/pch/precompiled_desktop.hxx)) + +$(eval $(call gb_Executable_set_include,$(crashrepcom),\ $$(INCLUDE) \ -I$(SRCDIR)/desktop/inc/pch \ )) -$(eval $(call gb_Executable_add_defs,crashrep.com,\ +$(eval $(call gb_Executable_add_defs,$(crashrepcom),\ $(LFS_CFLAGS) \ )) -$(eval $(call gb_Executable_add_linked_libs,crashrep.com,\ +$(eval $(call gb_Executable_add_linked_libs,$(crashrepcom),\ user32 \ )) -$(eval $(call gb_Executable_add_exception_objects,crashrep.com,\ +$(eval $(call gb_Executable_add_exception_objects,$(crashrepcom),\ desktop/win32/source/guistdio/guistdio \ )) -# the resulting executable is called soffice.bin.exe, copy it to soffice.bin -$(eval $(call gb_Package_Package,crashrep.com,$(OUTDIR)/bin)) -$(eval $(call gb_Package_add_file,crashrep.com,bin/crashrep.com,crashrep.com.exe)) +# the resulting executable is called $(crashrepcom).exe, copy it to crashrep.com +$(eval $(call gb_Package_Package,$(crashrepcom),$(OUTDIR)/bin)) +$(eval $(call gb_Package_add_file,$(crashrepcom),bin/crashrep.com,$(crashrepcom).exe)) # vim: set ts=4 sw=4 et: -- cgit