diff options
author | David Tardon <dtardon@redhat.com> | 2012-08-20 11:16:21 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-08-24 13:22:01 +0200 |
commit | ee0a39c52e53c20ee5bf18a30101bc7d69c24a5c (patch) | |
tree | 464e840a257e6ad9afda2e1c1105d400b87c225c /ucpp | |
parent | df4ff3547078c17cf69f7574dd7995cc51cc7934 (diff) |
adapt ucpp for UnpackedTarball
Change-Id: I0871baf8a6c72ea0c7b44a7abfc8d5152b331db5
Diffstat (limited to 'ucpp')
-rw-r--r-- | ucpp/CustomTarget_source.mk | 35 | ||||
-rw-r--r-- | ucpp/Executable_ucpp.mk | 20 | ||||
-rw-r--r-- | ucpp/Module_ucpp.mk | 5 | ||||
-rw-r--r-- | ucpp/UnpackedTarball_ucpp.mk | 20 |
4 files changed, 30 insertions, 50 deletions
diff --git a/ucpp/CustomTarget_source.mk b/ucpp/CustomTarget_source.mk deleted file mode 100644 index 3bdc8c4cd987..000000000000 --- a/ucpp/CustomTarget_source.mk +++ /dev/null @@ -1,35 +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,ucpp/source)) - -$(call gb_CustomTarget_get_target,ucpp/source) : $(call gb_CustomTarget_get_workdir,ucpp/source)/done - -# FIXME: do not hardcode the path here -ifeq ($(OS_FOR_BUILD),WNT) -ucpp_FIXED_TARFILE_LOCATION := $(shell cygpath -u $(TARFILE_LOCATION))/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz -else -ucpp_FIXED_TARFILE_LOCATION := $(TARFILE_LOCATION)/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz -endif - -$(call gb_CustomTarget_get_workdir,ucpp/source)/done : \ - $(ucpp_FIXED_TARFILE_LOCATION) \ - $(SRCDIR)/ucpp/ucpp.patch \ - | $(call gb_CustomTarget_get_workdir,ucpp/source)/.dir - -$(call gb_CustomTarget_get_workdir,ucpp/source)/done : - $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),TAR,1) - $(call gb_Helper_abbreviate_dirs,\ - cd $(dir $@) && \ - $(GNUTAR) -x -z $(STRIP_COMPONENTS)=1 -f $< && \ - $(GNUPATCH) -p0 < $(SRCDIR)/ucpp/ucpp.patch && \ - touch $@ \ - ) - -# vim: set noet sw=4 ts=4: diff --git a/ucpp/Executable_ucpp.mk b/ucpp/Executable_ucpp.mk index 386020aa7291..325d4149598e 100644 --- a/ucpp/Executable_ucpp.mk +++ b/ucpp/Executable_ucpp.mk @@ -11,9 +11,7 @@ $(eval $(call gb_Executable_Executable,ucpp)) $(eval $(call gb_Executable_set_warnings_not_errors,ucpp)) -$(eval $(call gb_Executable_use_custom_headers,ucpp,\ - ucpp/source \ -)) +$(eval $(call gb_Executable_use_unpacked,ucpp,ucpp)) $(eval $(call gb_Executable_add_defs,ucpp,\ -DNO_UCPP_BUF \ @@ -22,14 +20,14 @@ $(eval $(call gb_Executable_add_defs,ucpp,\ )) $(eval $(call gb_Executable_add_generated_cobjects,ucpp,\ - CustomTarget/ucpp/source/assert \ - CustomTarget/ucpp/source/cpp \ - CustomTarget/ucpp/source/eval \ - CustomTarget/ucpp/source/hash \ - CustomTarget/ucpp/source/lexer \ - CustomTarget/ucpp/source/macro \ - CustomTarget/ucpp/source/mem \ - CustomTarget/ucpp/source/nhash \ + UnpackedTarball/ucpp/assert \ + UnpackedTarball/ucpp/cpp \ + UnpackedTarball/ucpp/eval \ + UnpackedTarball/ucpp/hash \ + UnpackedTarball/ucpp/lexer \ + UnpackedTarball/ucpp/macro \ + UnpackedTarball/ucpp/mem \ + UnpackedTarball/ucpp/nhash \ )) # vim: set noet sw=4 ts=4: diff --git a/ucpp/Module_ucpp.mk b/ucpp/Module_ucpp.mk index fc37f0259eb3..2bb67d9d26fc 100644 --- a/ucpp/Module_ucpp.mk +++ b/ucpp/Module_ucpp.mk @@ -9,13 +9,10 @@ $(eval $(call gb_Module_Module,ucpp)) -$(eval $(call gb_Module_add_targets,ucpp,\ - CustomTarget_source \ -)) - ifneq ($(CROSS_COMPILING),YES) $(eval $(call gb_Module_add_targets,ucpp,\ Executable_ucpp \ + UnpackedTarball_ucpp \ )) endif diff --git a/ucpp/UnpackedTarball_ucpp.mk b/ucpp/UnpackedTarball_ucpp.mk new file mode 100644 index 000000000000..d5e39d7cc713 --- /dev/null +++ b/ucpp/UnpackedTarball_ucpp.mk @@ -0,0 +1,20 @@ +# -*- 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_UnpackedTarball_UnpackedTarball,ucpp)) + +$(eval $(call gb_UnpackedTarball_set_tarball,ucpp,0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz)) + +$(eval $(call gb_UnpackedTarball_set_patchlevel,ucpp,0)) + +$(eval $(call gb_UnpackedTarball_add_patches,ucpp,\ + ucpp/ucpp.patch \ +)) + +# vim: set noet sw=4 ts=4: |