summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-04-21 16:08:16 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-04-22 07:04:33 +0000
commit0d752247d882fd120a3f8d984c73c78e9d565e79 (patch)
tree1d1856aeb49b1e5ccd89e65480a8191ce69eb462 /odk
parent1ea1818dd15bcfc1605764b237e6f71e8fcb5635 (diff)
replace CustomTarget_odk/odkcommon/lib by Package
Change-Id: I929384077255b2fd944abf2da573c66572dec62b Reviewed-on: https://gerrit.libreoffice.org/3532 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'odk')
-rw-r--r--odk/CustomTarget_check.mk1
-rw-r--r--odk/CustomTarget_lib.mk40
-rw-r--r--odk/CustomTarget_odkcommon.mk1
-rw-r--r--odk/Module_odk.mk2
-rw-r--r--odk/Package_lib.mk28
5 files changed, 30 insertions, 42 deletions
diff --git a/odk/CustomTarget_check.mk b/odk/CustomTarget_check.mk
index cc29e01e5793..dc2ff275ff74 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)) \
+ $(call gb_Package_get_target,odk_lib) \
$(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)
diff --git a/odk/CustomTarget_lib.mk b/odk/CustomTarget_lib.mk
deleted file mode 100644
index 910211e05f1e..000000000000
--- a/odk/CustomTarget_lib.mk
+++ /dev/null
@@ -1,40 +0,0 @@
-# -*- 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/.
-#
-
-$(eval $(call gb_CustomTarget_CustomTarget,odk/odkcommon/lib))
-
-define odk_lib
-odkcommon_ZIPLIST += lib/$(notdir $(1))
-$(call gb_CustomTarget_get_target,odk/odkcommon/lib) : \
- $(odk_WORKDIR)/lib/$(notdir $(1))
-$(odk_WORKDIR)/lib/$(notdir $(1)) : $(1)
- mkdir -p $$(dir $$@)
- $$(call gb_Output_announce,$$(subst $$(WORKDIR)/,,$$@),build,CPY,1)
- cp $$< $$@
-endef
-
-ifeq ($(COM),MSC)
-odk_LIBLIST := \
- sal \
- salhelper \
- cppu \
- cppuhelper \
- purpenvhelper
-
-$(foreach lib,$(odk_LIBLIST),$(eval $(call odk_lib,$(call gb_Library_get_target,$(lib)))))
-else ifeq ($(OS),LINUX)
-odkcommon_ZIPLIST += lib/libsalcpprt.a
-$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/lib,libsalcpprt.a))
-$(odk_WORKDIR)/lib/libsalcpprt.a: $(call gb_StaticLibrary_get_target,salcpprt)
- mkdir -p $(dir $@)
- $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,CPY,1)
- cp $< $@
-endif
-
-# vim: set noet sw=4 ts=4:
diff --git a/odk/CustomTarget_odkcommon.mk b/odk/CustomTarget_odkcommon.mk
index 4e903a1e2d1e..99e42e63d133 100644
--- a/odk/CustomTarget_odkcommon.mk
+++ b/odk/CustomTarget_odkcommon.mk
@@ -19,7 +19,6 @@ $(call gb_CustomTarget_get_target,odk/odkcommon): \
$(call gb_CustomTarget_get_target,odk/odkcommon/docs/common/ref) \
$(call gb_CustomTarget_get_target,odk/odkcommon/settings) \
$(call gb_CustomTarget_get_target,odk/odkcommon/classes) \
- $(call gb_CustomTarget_get_target,odk/odkcommon/lib) \
$(call gb_CustomTarget_get_target,odk/odkcommon/idl) \
$(call gb_CustomTarget_get_target,odk/odkcommon/include)
diff --git a/odk/Module_odk.mk b/odk/Module_odk.mk
index 531fdbe33354..58bdb4d60a8c 100644
--- a/odk/Module_odk.mk
+++ b/odk/Module_odk.mk
@@ -14,12 +14,12 @@ $(eval $(call gb_Module_add_targets,odk,\
$(if $(filter WNT,$(OS)),Package_cli) \
$(if $(DOXYGEN),CustomTarget_doxygen) \
CustomTarget_check \
- CustomTarget_lib \
CustomTarget_settings \
CustomTarget_autodoc \
Executable_unoapploader \
Package_bin \
Package_examples \
+ Package_lib \
))
ifeq ($(OS),MACOSX)
diff --git a/odk/Package_lib.mk b/odk/Package_lib.mk
new file mode 100644
index 000000000000..4a3199cc40cf
--- /dev/null
+++ b/odk/Package_lib.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/.
+#
+
+$(eval $(call gb_Package_Package,odk_lib,$(OUTDIR)/lib))
+
+$(eval $(call gb_Package_set_outdir,odk_lib,$(INSTDIR)))
+
+$(eval $(call gb_Package_add_files,odk_lib,$(gb_Package_SDKDIRNAME)/lib,\
+ $(if $(filter MSC,$(COM)),\
+ $(foreach lib,\
+ cppu \
+ cppuhelper \
+ purpenvhelper \
+ sal \
+ salhelper \
+ ,$(notdir $(call gb_Library_get_target,$(lib))) \
+ ) \
+ ) \
+ $(if $(filter LINUX,$(OS)),$(notdir $(call gb_StaticLibrary_get_target,salcpprt))) \
+))
+
+# vim: set noet sw=4 ts=4: