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

vcl: use CustomTarget makefiles

üst afd5eb1f
...@@ -23,10 +23,14 @@ ...@@ -23,10 +23,14 @@
# 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.
all : afm_hash.hpp $(eval $(call gb_CustomTarget_CustomTarget,vcl/generic/fontmanager,new_style))
afm_hash.hpp : $(realpath $(dir $(firstword $(MAKEFILE_LIST))))/afm_keyword_list VCFM := $(call gb_CustomTarget_get_workdir,vcl/generic/fontmanager)
$(call gb_CustomTarget_get_target,vcl/generic/fontmanager) : $(VCFM)/afm_hash.hpp
$(VCFM)/afm_hash.hpp : $(SRCDIR)/vcl/generic/fontmanager/afm_keyword_list | $(VCFM)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),GPF,1)
$(GPERF) -C -t -l -L C++ -m 20 -Z AfmKeywordHash -k '1,4,6,$$' $< | sed -e "s/(char\*)0/(char\*)0, NOPE/g" | grep -v "^#line" > $@ $(GPERF) -C -t -l -L C++ -m 20 -Z AfmKeywordHash -k '1,4,6,$$' $< | sed -e "s/(char\*)0/(char\*)0, NOPE/g" | grep -v "^#line" > $@
.PHONY : all
# vim: set noet sw=4: # vim: set noet sw=4:
...@@ -25,10 +25,14 @@ ...@@ -25,10 +25,14 @@
# 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.
KDEXLib.cxx : KDEXLib.moc $(eval $(call gb_CustomTarget_CustomTarget,vcl/unx/kde4,new_style))
KDEXLib.moc : $(realpath $(dir $(firstword $(MAKEFILE_LIST))))/KDEXLib.hxx VCKM := $(call gb_CustomTarget_get_workdir,vcl/unx/kde4)
$(call gb_CustomTarget_get_target,vcl/unx/kde4) : $(VCKM)/KDEXLib.moc
$(VCKM)/KDEXLib.moc : $(SRCDIR)/vcl/unx/kde4/KDEXLib.hxx | $(VCKM)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MOC,1)
$(MOC4) $< -o $@ $(MOC4) $< -o $@
.PHONY : all
# vim: set noet sw=4: # vim: set noet sw=4:
...@@ -43,14 +43,13 @@ $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.unx)) ...@@ -43,14 +43,13 @@ $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.unx))
endif endif
$(eval $(call gb_Library_add_package_headers,vcl,vcl_inc)) $(eval $(call gb_Library_add_package_headers,vcl,vcl_inc))
$(eval $(call gb_Library_add_package_headers,vcl,vcl_afmhash))
$(eval $(call gb_Library_add_custom_headers,vcl,vcl/generic/fontmanager))
$(eval $(call gb_Library_set_include,vcl,\ $(eval $(call gb_Library_set_include,vcl,\
$$(INCLUDE) \ $$(INCLUDE) \
-I$(SRCDIR)/vcl/inc \ -I$(SRCDIR)/vcl/inc \
-I$(SRCDIR)/solenv/inc \
$(if $(filter WNTGCC,$(OS)$(COM)),-I$(OUTDIR)/inc/external/wine) \ $(if $(filter WNTGCC,$(OS)$(COM)),-I$(OUTDIR)/inc/external/wine) \
-I$(WORKDIR)/CustomTarget/vcl/generic/fontmanager \
)) ))
$(eval $(call gb_Library_add_defs,vcl,\ $(eval $(call gb_Library_add_defs,vcl,\
...@@ -451,9 +450,6 @@ $(eval $(call gb_Library_use_externals,vcl,\ ...@@ -451,9 +450,6 @@ $(eval $(call gb_Library_use_externals,vcl,\
endif endif
ifeq ($(GUIBASE),headless) ifeq ($(GUIBASE),headless)
$(eval $(call gb_Library_add_cxxflags,vcl,\
$$(FREETYPE_CFLAGS) \
))
$(eval $(call gb_Library_add_defs,vcl,\ $(eval $(call gb_Library_add_defs,vcl,\
-DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \ -DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \
-DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \ -DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \
......
...@@ -28,13 +28,11 @@ ...@@ -28,13 +28,11 @@
$(eval $(call gb_Library_Library,vclplug_kde4)) $(eval $(call gb_Library_Library,vclplug_kde4))
$(eval $(call gb_Library_add_package_headers,vcl,vcl_kde4moc)) $(eval $(call gb_Library_add_custom_headers,vclplug_kde4,vcl/unx/kde4))
$(eval $(call gb_Library_set_include,vclplug_kde4,\ $(eval $(call gb_Library_set_include,vclplug_kde4,\
$$(INCLUDE) \ $$(INCLUDE) \
-I$(SRCDIR)/vcl/inc \ -I$(SRCDIR)/vcl/inc \
-I$(SRCDIR)/solenv/inc \
-I$(WORKDIR)/CustomTarget/vcl/unx/kde4 \
)) ))
$(eval $(call gb_Library_set_include,vclplug_kde4,\ $(eval $(call gb_Library_set_include,vclplug_kde4,\
...@@ -95,10 +93,9 @@ $(eval $(call gb_Library_add_exception_objects,vclplug_kde4,\ ...@@ -95,10 +93,9 @@ $(eval $(call gb_Library_add_exception_objects,vclplug_kde4,\
# KDE/Qt consider -Wshadow more trouble than benefit # KDE/Qt consider -Wshadow more trouble than benefit
$(eval $(call gb_Library_add_cxxflags,vclplug_kde4,\ $(eval $(call gb_Library_add_cxxflags,vclplug_kde4,\
-Wno-shadow \ -Wno-shadow \
)) ))
ifeq ($(OS),LINUX) ifeq ($(OS),LINUX)
$(eval $(call gb_Library_add_linked_libs,vclplug_kde4,\ $(eval $(call gb_Library_add_linked_libs,vclplug_kde4,\
dl \ dl \
......
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
$(eval $(call gb_Module_Module,vcl)) $(eval $(call gb_Module_Module,vcl))
$(eval $(call gb_Module_add_targets,vcl,\ $(eval $(call gb_Module_add_targets,vcl,\
AllLangResTarget_vcl \
CustomTarget_afm_hash \
Library_vcl \ Library_vcl \
StaticLibrary_vclmain \
Package_inc \ Package_inc \
Package_afmhash \ StaticLibrary_vclmain \
AllLangResTarget_vcl \
)) ))
ifeq ($(GUIBASE),unx) ifeq ($(GUIBASE),unx)
...@@ -62,8 +62,8 @@ $(eval $(call gb_Module_add_targets,vcl,\ ...@@ -62,8 +62,8 @@ $(eval $(call gb_Module_add_targets,vcl,\
endif endif
ifneq ($(ENABLE_KDE4),) ifneq ($(ENABLE_KDE4),)
$(eval $(call gb_Module_add_targets,vcl,\ $(eval $(call gb_Module_add_targets,vcl,\
CustomTarget_kde4_moc \
Library_vclplug_kde4 \ Library_vclplug_kde4 \
Package_kde4moc \
)) ))
endif endif
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. 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.
#
# The Initial Developer of the Original Code is
# Bjoern Michaelsen <bjoern.michaelsen@canonical.com> (Canonical Ltd.)
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Contributor(s): Jan Holesovsky <kendy@suse.cz>
#
# 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,vcl_afmhash,$(WORKDIR)/CustomTarget/vcl/generic/fontmanager))
$(eval $(call gb_Package_add_customtarget,vcl_afmhash,vcl/generic/fontmanager))
# vim: set noet sw=4 ts=4:
# -*- 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) 2011 Red Hat, Inc., Caolán McNamara <caolanm@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,vcl_kde4moc,$(WORKDIR)/CustomTarget/vcl/unx/kde4))
$(eval $(call gb_Package_add_customtarget,vcl_kde4moc,vcl/unx/kde4))
# vim: set noet sw=4 ts=4:
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