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

sdext: use CustomTarget makefiles

üst b635ee56
......@@ -25,13 +25,15 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# 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
$(GPERF) -C -t -l -L C++ -m 20 -Z PdfKeywordHash -k'4-5,$$' $< > $@
SEPI := $(call gb_CustomTarget_get_workdir,sdext/pdfimport)
$(call gb_CustomTarget_get_target,sdext/pdfimport) : $(SEPI)/hash.cxx
.DEFAULT_GOAL := all
.PHONY : all
all : hash.cxx
$(SEPI)/hash.cxx : $(SRCDIR)/sdext/source/pdfimport/wrapper/keyword_list \
| $(SEPI)/.dir
$(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:
......@@ -25,16 +25,19 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
PARTIAL_BUILD := T
SOURCEDIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
$(eval $(call gb_CustomTarget_CustomTarget,sdext/source/presenter/help/en-US/com.sun.PresenterScreen,new_style))
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 :
sed "s/PLATFORMID/$(sdext_PLATFORM)/" < $(SOURCEDIR)/presenter.xhp > $@
include $(SRCDIR)/sdext/platform.mk
.DEFAULT_GOAL := all
.PHONY : all
all : presenter.xhp
$(SEPR)/presenter.xhp : \
$(SRCDIR)/sdext/source/presenter/help/en-US/com.sun.PresenterScreen/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:
......@@ -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_add_package_dependencies,pdfimport,\
sdext_pdfimport_keywords \
))
$(eval $(call gb_Extension_add_files,pdfimport,,\
$(call gb_Executable_get_target,xpdfimport) \
$(call gb_Library_get_target,pdfimport) \
......
......@@ -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_add_package_dependencies,presenter-screen,\
sdext_presenter_help \
))
$(eval $(call gb_Extension_add_files,presenter-screen,,\
$(call gb_Library_get_target,PresenterScreen) \
))
......@@ -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))
# 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:
......@@ -33,7 +33,6 @@ $(eval $(call gb_Library_add_api,pdfimport,\
))
$(eval $(call gb_Library_set_include,pdfimport,\
-I$(WORKDIR)/CustomTarget/sdext/source/pdfimport/wrapper \
-I$(SRCDIR)/sdext/source/pdfimport/inc \
$$(INCLUDE) \
))
......
......@@ -38,13 +38,13 @@ endif
ifeq ($(ENABLE_PDFIMPORT),YES)
$(eval $(call gb_Module_add_targets,sdext,\
CustomTarget_pdfimport \
Executable_pdf2xml \
Executable_pdfunzip \
Executable_xpdfimport \
Extension_pdfimport \
Library_pdfimport \
StaticLibrary_pdfimport_s \
Package_pdfimport_keywords \
))
$(eval $(call gb_Module_add_check_targets,sdext,\
......@@ -55,9 +55,9 @@ endif
ifeq ($(ENABLE_PRESENTER_SCREEN),YES)
$(eval $(call gb_Module_add_targets,sdext,\
Configuration_presenter \
CustomTarget_presenter \
Extension_presenter \
Library_presenter \
Package_presenter_help \
Zip_presenter \
))
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,\
zlib \
))
$(eval $(call gb_StaticLibrary_add_package_headers,pdfimport_s,\
sdext_pdfimport_keywords \
))
$(eval $(call gb_StaticLibrary_add_custom_headers,pdfimport_s,sdext/pdfimport))
$(eval $(call gb_StaticLibrary_set_include,pdfimport_s,\
-I$(WORKDIR)/CustomTarget/sdext/source/pdfimport/wrapper \
-I$(SRCDIR)/sdext/source/pdfimport/inc \
$$(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