Kaydet (Commit) be3c5c7c authored tarafından Matúš Kukan's avatar Matúš Kukan

sdext: use CustomTarget makefiles

üst b635ee56
...@@ -25,13 +25,15 @@ ...@@ -25,13 +25,15 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above. # instead of those above.
gb_PARTIALBUILD := T $(eval $(call gb_CustomTarget_CustomTarget,sdext/pdfimport,new_style))
hash.cxx : $(SRCDIR)/sdext/source/pdfimport/wrapper/keyword_list SEPI := $(call gb_CustomTarget_get_workdir,sdext/pdfimport)
$(GPERF) -C -t -l -L C++ -m 20 -Z PdfKeywordHash -k'4-5,$$' $< > $@
$(call gb_CustomTarget_get_target,sdext/pdfimport) : $(SEPI)/hash.cxx
.DEFAULT_GOAL := all $(SEPI)/hash.cxx : $(SRCDIR)/sdext/source/pdfimport/wrapper/keyword_list \
.PHONY : all | $(SEPI)/.dir
all : hash.cxx $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),GPF,1)
$(GPERF) -C -t -l -L C++ -m 20 -Z PdfKeywordHash -k'4-5,$$' $< > $@
# vim:set shiftwidth=4 tabstop=4 noexpandtab: # vim:set shiftwidth=4 tabstop=4 noexpandtab:
...@@ -25,16 +25,19 @@ ...@@ -25,16 +25,19 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above. # instead of those above.
PARTIAL_BUILD := T $(eval $(call gb_CustomTarget_CustomTarget,sdext/source/presenter/help/en-US/com.sun.PresenterScreen,new_style))
SOURCEDIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
include $(SRCDIR)/sdext/platform.mk SEPR := $(call gb_CustomTarget_get_workdir,sdext/source/presenter/help/en-US/com.sun.PresenterScreen)
$(call gb_CustomTarget_get_target,sdext/source/presenter/help/en-US/com.sun.PresenterScreen) : \
$(SEPR)/presenter.xhp
presenter.xhp : include $(SRCDIR)/sdext/platform.mk
sed "s/PLATFORMID/$(sdext_PLATFORM)/" < $(SOURCEDIR)/presenter.xhp > $@
.DEFAULT_GOAL := all $(SEPR)/presenter.xhp : \
.PHONY : all $(SRCDIR)/sdext/source/presenter/help/en-US/com.sun.PresenterScreen/presenter.xhp \
all : presenter.xhp | $(SEPR)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SED,1)
sed "s/PLATFORMID/$(sdext_PLATFORM)/" < $< > $@
# vim:set shiftwidth=4 tabstop=4 noexpandtab: # vim:set shiftwidth=4 tabstop=4 noexpandtab:
...@@ -31,10 +31,6 @@ $(eval $(call gb_Extension_Extension,pdfimport,sdext/source/pdfimport)) ...@@ -31,10 +31,6 @@ $(eval $(call gb_Extension_Extension,pdfimport,sdext/source/pdfimport))
$(eval $(call gb_Extension_set_platform,pdfimport,$(sdext_PLATFORM))) $(eval $(call gb_Extension_set_platform,pdfimport,$(sdext_PLATFORM)))
$(eval $(call gb_Extension_add_package_dependencies,pdfimport,\
sdext_pdfimport_keywords \
))
$(eval $(call gb_Extension_add_files,pdfimport,,\ $(eval $(call gb_Extension_add_files,pdfimport,,\
$(call gb_Executable_get_target,xpdfimport) \ $(call gb_Executable_get_target,xpdfimport) \
$(call gb_Library_get_target,pdfimport) \ $(call gb_Library_get_target,pdfimport) \
......
...@@ -31,10 +31,6 @@ $(eval $(call gb_Extension_Extension,presenter-screen,sdext/source/presenter)) ...@@ -31,10 +31,6 @@ $(eval $(call gb_Extension_Extension,presenter-screen,sdext/source/presenter))
$(eval $(call gb_Extension_set_platform,presenter-screen,$(sdext_PLATFORM))) $(eval $(call gb_Extension_set_platform,presenter-screen,$(sdext_PLATFORM)))
$(eval $(call gb_Extension_add_package_dependencies,presenter-screen,\
sdext_presenter_help \
))
$(eval $(call gb_Extension_add_files,presenter-screen,,\ $(eval $(call gb_Extension_add_files,presenter-screen,,\
$(call gb_Library_get_target,PresenterScreen) \ $(call gb_Library_get_target,PresenterScreen) \
)) ))
...@@ -149,8 +145,4 @@ $(eval $(call gb_Extension_add_files,presenter-screen,help/en-US/com.sun.Present ...@@ -149,8 +145,4 @@ $(eval $(call gb_Extension_add_files,presenter-screen,help/en-US/com.sun.Present
$(eval $(call gb_Extension_localize_help,presenter-screen,help/lang/com.sun.PresenterScreen-$(sdext_PLATFORM)/presenter.xhp,$(WORKDIR)/CustomTarget/sdext/source/presenter/help/en-US/com.sun.PresenterScreen/presenter.xhp)) $(eval $(call gb_Extension_localize_help,presenter-screen,help/lang/com.sun.PresenterScreen-$(sdext_PLATFORM)/presenter.xhp,$(WORKDIR)/CustomTarget/sdext/source/presenter/help/en-US/com.sun.PresenterScreen/presenter.xhp))
# this file is created by a custom target, but we depend on it: ensure
# make knows about it
$(WORKDIR)/CustomTarget/sdext/source/presenter/help/en-US/com.sun.PresenterScreen/presenter.xhp :| $(call gb_Package_get_target,sdext_presenter_help)
# vim:set shiftwidth=4 softtabstop=4 expandtab: # vim:set shiftwidth=4 softtabstop=4 expandtab:
...@@ -33,7 +33,6 @@ $(eval $(call gb_Library_add_api,pdfimport,\ ...@@ -33,7 +33,6 @@ $(eval $(call gb_Library_add_api,pdfimport,\
)) ))
$(eval $(call gb_Library_set_include,pdfimport,\ $(eval $(call gb_Library_set_include,pdfimport,\
-I$(WORKDIR)/CustomTarget/sdext/source/pdfimport/wrapper \
-I$(SRCDIR)/sdext/source/pdfimport/inc \ -I$(SRCDIR)/sdext/source/pdfimport/inc \
$$(INCLUDE) \ $$(INCLUDE) \
)) ))
......
...@@ -38,13 +38,13 @@ endif ...@@ -38,13 +38,13 @@ endif
ifeq ($(ENABLE_PDFIMPORT),YES) ifeq ($(ENABLE_PDFIMPORT),YES)
$(eval $(call gb_Module_add_targets,sdext,\ $(eval $(call gb_Module_add_targets,sdext,\
CustomTarget_pdfimport \
Executable_pdf2xml \ Executable_pdf2xml \
Executable_pdfunzip \ Executable_pdfunzip \
Executable_xpdfimport \ Executable_xpdfimport \
Extension_pdfimport \ Extension_pdfimport \
Library_pdfimport \ Library_pdfimport \
StaticLibrary_pdfimport_s \ StaticLibrary_pdfimport_s \
Package_pdfimport_keywords \
)) ))
$(eval $(call gb_Module_add_check_targets,sdext,\ $(eval $(call gb_Module_add_check_targets,sdext,\
...@@ -55,9 +55,9 @@ endif ...@@ -55,9 +55,9 @@ endif
ifeq ($(ENABLE_PRESENTER_SCREEN),YES) ifeq ($(ENABLE_PRESENTER_SCREEN),YES)
$(eval $(call gb_Module_add_targets,sdext,\ $(eval $(call gb_Module_add_targets,sdext,\
Configuration_presenter \ Configuration_presenter \
CustomTarget_presenter \
Extension_presenter \ Extension_presenter \
Library_presenter \ Library_presenter \
Package_presenter_help \
Zip_presenter \ Zip_presenter \
)) ))
endif endif
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# Major Contributor(s):
# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
# (initial developer)
#
# All Rights Reserved.
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_Package_Package,sdext_pdfimport_keywords,$(WORKDIR)/CustomTarget/sdext/source/pdfimport/wrapper))
$(eval $(call gb_Package_add_customtarget,sdext_pdfimport_keywords,sdext/source/pdfimport/wrapper))
$(eval $(call gb_CustomTarget_add_dependencies,sdext/source/pdfimport/wrapper,\
sdext/source/pdfimport/wrapper/keyword_list \
))
# vim:set shiftwidth=4 softtabstop=4 expandtab:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# Major Contributor(s):
# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
# (initial developer)
#
# All Rights Reserved.
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_Package_Package,sdext_presenter_help,$(WORKDIR)/CustomTarget/sdext/source/presenter/help/en-US/com.sun.PresenterScreen))
$(eval $(call gb_Package_add_customtarget,sdext_presenter_help,sdext/source/presenter/help/en-US/com.sun.PresenterScreen))
$(eval $(call gb_CustomTarget_add_dependencies,sdext/source/presenter/help/en-US/com.sun.PresenterScreen,\
sdext/source/presenter/help/en-US/com.sun.PresenterScreen/presenter.xhp \
))
# vim:set shiftwidth=4 softtabstop=4 expandtab:
...@@ -38,12 +38,9 @@ $(eval $(call gb_StaticLibrary_use_externals,pdfimport_s,\ ...@@ -38,12 +38,9 @@ $(eval $(call gb_StaticLibrary_use_externals,pdfimport_s,\
zlib \ zlib \
)) ))
$(eval $(call gb_StaticLibrary_add_package_headers,pdfimport_s,\ $(eval $(call gb_StaticLibrary_add_custom_headers,pdfimport_s,sdext/pdfimport))
sdext_pdfimport_keywords \
))
$(eval $(call gb_StaticLibrary_set_include,pdfimport_s,\ $(eval $(call gb_StaticLibrary_set_include,pdfimport_s,\
-I$(WORKDIR)/CustomTarget/sdext/source/pdfimport/wrapper \
-I$(SRCDIR)/sdext/source/pdfimport/inc \ -I$(SRCDIR)/sdext/source/pdfimport/inc \
$$(INCLUDE) \ $$(INCLUDE) \
)) ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment