diff options
author | David Tardon <dtardon@redhat.com> | 2013-04-21 15:50:23 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-04-22 07:04:11 +0000 |
commit | 1ea1818dd15bcfc1605764b237e6f71e8fcb5635 (patch) | |
tree | f856f4670c1fcb7c3511993a915ec8bfdb2f8c3d /odk | |
parent | 5c7f6ca7e15bbac390730eeb30a864763756447c (diff) |
use Package for unowinreg
Change-Id: I7546e8938ba41e1462e704bd0405c5a887151d7b
Reviewed-on: https://gerrit.libreoffice.org/3531
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'odk')
-rw-r--r-- | odk/CustomTarget_check.mk | 1 | ||||
-rw-r--r-- | odk/CustomTarget_classes.mk | 7 | ||||
-rw-r--r-- | odk/CustomTarget_unowinreg.mk | 12 | ||||
-rw-r--r-- | odk/Module_odk.mk | 3 | ||||
-rw-r--r-- | odk/Package_unowinreg.mk | 28 | ||||
-rw-r--r-- | odk/Zip_uno_loader_classes.mk | 1 |
6 files changed, 32 insertions, 20 deletions
diff --git a/odk/CustomTarget_check.mk b/odk/CustomTarget_check.mk index c0046cd64c8e..cc29e01e5793 100644 --- a/odk/CustomTarget_check.mk +++ b/odk/CustomTarget_check.mk @@ -30,6 +30,7 @@ $(call gb_CustomTarget_get_workdir,odk/check)/checkbin : \ $(call gb_Package_get_target,odk_bin) \ $(if $(filter WNT,$(OS)),$(call gb_Package_get_target,odk_cli)) \ $(if $(filter MACOSX,$(OS)),$(call gb_Package_get_target,odk_macosx)) \ + $(if $(SOLAR_JAVA),$(call gb_Package_get_target,odk_unowinreg)) \ $(call gb_CustomTarget_get_target,odk/odkcommon) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1) touch $@ diff --git a/odk/CustomTarget_classes.mk b/odk/CustomTarget_classes.mk index b009a5863014..ad59a4af0355 100644 --- a/odk/CustomTarget_classes.mk +++ b/odk/CustomTarget_classes.mk @@ -28,11 +28,4 @@ $(odk_WORKDIR)/classes/java.done: $(call gb_JavaClassSet_get_target,loader) cp -a $(call gb_JavaClassSet_get_classdir,loader)/com $(dir $@) touch $@ -odkcommon_ZIPLIST += classes/win/unowinreg.dll -$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/classes,win/unowinreg.dll)) -$(odk_WORKDIR)/classes/win/unowinreg.dll: $(call gb_CustomTarget_get_workdir,odk/unowinreg)/unowinreg.dll - mkdir -p $(dir $@) - $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,CPY,1) - cp $< $@ - # vim: set noet sw=4 ts=4: diff --git a/odk/CustomTarget_unowinreg.mk b/odk/CustomTarget_unowinreg.mk index 76fe2f99f8b0..3a46ddfd6860 100644 --- a/odk/CustomTarget_unowinreg.mk +++ b/odk/CustomTarget_unowinreg.mk @@ -11,11 +11,6 @@ $(eval $(call gb_CustomTarget_CustomTarget,odk/unowinreg)) $(eval $(call gb_CustomTarget_register_target,odk/unowinreg,unowinreg.dll)) -ifeq ($(BUILD_UNOWINREG),YES) -ifeq ($(COM),MSC) -$(call gb_CustomTarget_get_workdir,odk/unowinreg)/unowinreg.dll: $(call gb_Library_get_target,unowinreg) - cp $< $@ -else # COM=GCC $(call gb_CustomTarget_get_workdir,odk/unowinreg)/unowinreg.dll : \ $(SRCDIR)/odk/source/unowinreg/win/unowinreg.cxx $(MINGWCXX) -Wall -D_JNI_IMPLEMENTATION_ \ @@ -25,12 +20,7 @@ $(call gb_CustomTarget_get_workdir,odk/unowinreg)/unowinreg.dll : \ -I$(JAVA_HOME)/include/bsd -I$(JAVA_HOME)/include/linux,\ $(if $(filter NETBSD,$(OS)),-I$(JAVA_HOME)/include/netbsd))) \ -shared -o $@ $< \ - -Wl,--kill-at -lkernel32 -ladvapi32 + -Wl,--kill-at -lkernel32 -ladvapi32 && \ $(MINGWSTRIP) $@ -endif -else # BUILD_UNOWINREG=NO -$(call gb_CustomTarget_get_workdir,odk/unowinreg)/unowinreg.dll: $(TARFILE_LOCATION)/$(UNOWINREG_DLL) - cp $< $@ -endif # vim: set noet sw=4 ts=4: diff --git a/odk/Module_odk.mk b/odk/Module_odk.mk index a7ccf52fbb23..531fdbe33354 100644 --- a/odk/Module_odk.mk +++ b/odk/Module_odk.mk @@ -30,10 +30,11 @@ endif ifneq ($(SOLAR_JAVA),) $(eval $(call gb_Module_add_targets,odk,\ - CustomTarget_unowinreg \ + $(if $(filter YESGCC,$(BUILD_UNOWINREG)$(COM)),CustomTarget_unowinreg) \ CustomTarget_classes \ CustomTarget_javadoc \ $(if $(filter WNT,$(OS)),Library_unowinreg) \ + Package_unowinreg \ Zip_uno_loader_classes \ )) endif diff --git a/odk/Package_unowinreg.mk b/odk/Package_unowinreg.mk new file mode 100644 index 000000000000..0fd09284721c --- /dev/null +++ b/odk/Package_unowinreg.mk @@ -0,0 +1,28 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# 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/. +# + +ifeq ($(BUILD_UNOWINREG),YES) +ifeq ($(COM),MSC) +odk_unowinreg_DIR := $(OUTDIR)/bin +else +odk_unowinreg_DIR := $(call gb_CustomTarget_get_workdir,odk/unowinreg) +endif +odk_unowinreg_FILE := unowinreg.dll +else # BUILD_UNOWINREG=NO +odk_unowinreg_DIR := $(TARFILE_LOCATION) +odk_unowinreg_FILE := $(UNOWINREG_DLL) +endif + +$(eval $(call gb_Package_Package,odk_unowinreg,$(odk_unowinreg_DIR))) + +$(eval $(call gb_Package_set_outdir,odk_unowinreg,$(INSTDIR))) + +$(eval $(call gb_Package_add_file,odk_unowinreg,$(gb_Package_SDKDIRNAME)/classes/win/unowinreg.dll,$(odk_unowinreg_FILE))) + +# vim: set noet sw=4 ts=4: diff --git a/odk/Zip_uno_loader_classes.mk b/odk/Zip_uno_loader_classes.mk index b22aa4d9abda..6cf0bf124205 100644 --- a/odk/Zip_uno_loader_classes.mk +++ b/odk/Zip_uno_loader_classes.mk @@ -13,7 +13,6 @@ $(eval $(call gb_Zip_add_commandoptions,uno_loader_classes,-r)) $(eval $(call gb_Zip_add_files,uno_loader_classes,\ com/sun/star/lib/loader \ - win/unowinreg.dll \ )) $(call gb_Zip_get_target,uno_loader_classes) : $(call gb_CustomTarget_get_target,odk/odkcommon/classes) |