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

cppu: use InternalUnoApi

üst bd988a23
......@@ -37,10 +37,9 @@ $(eval $(call gb_CppunitTest_use_libraries,cppu_qa_any, \
$(gb_STDLIBS) \
))
$(eval $(call gb_CppunitTest_set_include,cppu_qa_any,\
-I$(WORKDIR)/CustomTarget/cppu/qa \
-I$(SRCDIR)/cppu/inc \
$$(INCLUDE) \
$(eval $(call gb_CppunitTest_use_internal_comprehensive_api,cppu_qa_any, \
cppu \
udkapi \
))
# vim: set noet sw=4 ts=4:
......@@ -37,10 +37,9 @@ $(eval $(call gb_CppunitTest_use_libraries,cppu_qa_recursion, \
$(gb_STDLIBS) \
))
$(eval $(call gb_CppunitTest_set_include,cppu_qa_recursion,\
-I$(WORKDIR)/CustomTarget/cppu/qa \
-I$(SRCDIR)/cppu/inc \
$$(INCLUDE) \
$(eval $(call gb_CppunitTest_use_internal_comprehensive_api,cppu_qa_recursion, \
cppu \
udkapi \
))
# vim: set noet sw=4 ts=4:
......@@ -37,10 +37,9 @@ $(eval $(call gb_CppunitTest_use_libraries,cppu_qa_reference, \
$(gb_STDLIBS) \
))
$(eval $(call gb_CppunitTest_set_include,cppu_qa_reference,\
-I$(WORKDIR)/CustomTarget/cppu/qa \
-I$(SRCDIR)/cppu/inc \
$$(INCLUDE) \
$(eval $(call gb_CppunitTest_use_internal_comprehensive_api,cppu_qa_reference, \
cppu \
udkapi \
))
# vim: set noet sw=4 ts=4:
......@@ -37,10 +37,9 @@ $(eval $(call gb_CppunitTest_use_libraries,cppu_qa_unotype, \
$(gb_STDLIBS) \
))
$(eval $(call gb_CppunitTest_set_include,cppu_qa_unotype,\
-I$(WORKDIR)/CustomTarget/cppu/qa \
-I$(SRCDIR)/cppu/inc \
$$(INCLUDE) \
$(eval $(call gb_CppunitTest_use_internal_comprehensive_api,cppu_qa_unotype, \
cppu \
udkapi \
))
# vim: set noet sw=4 ts=4:
......@@ -37,10 +37,9 @@ $(eval $(call gb_CppunitTest_use_libraries,cppu_test_cppumaker, \
$(gb_STDLIBS) \
))
$(eval $(call gb_CppunitTest_set_include,cppu_test_cppumaker,\
-I$(WORKDIR)/CustomTarget/cppu/qa \
-I$(SRCDIR)/cppu/inc \
$$(INCLUDE) \
$(eval $(call gb_CppunitTest_use_internal_comprehensive_api,cppu_test_cppumaker, \
cppu \
udkapi \
))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
#
# -*- 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
......@@ -13,7 +12,8 @@
# License.
#
# Major Contributor(s):
# Copyright (C) 2011 Matúš Kukan <matus.kukan@gmail.com> (initial developer)
# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
# (initial developer)
#
# All Rights Reserved.
#
......@@ -25,15 +25,23 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_Package_Package,cppu_generated))
$(eval $(call gb_InternalUnoApi_InternalUnoApi,cppu))
$(eval $(call gb_InternalUnoApi_use_api,cppu,\
udkapi \
))
$(eval $(call gb_InternalUnoApi_set_include,cppu,\
-I$(OUTDIR)/idl \
$$(INCLUDE) \
))
$(eval $(call gb_Package_add_customtarget,cppu_generated,cppu/qa))
$(eval $(call gb_InternalUnoApi_add_idlfiles,cppu,cppu/qa,\
types \
))
$(eval $(call gb_CustomTarget_add_outdir_dependencies,cppu/qa,\
$(gb_UnoApiTarget_CPPUMAKERTARGET) \
$(gb_UnoApiTarget_IDLCTARGET) \
$(gb_UnoApiTarget_REGMERGETARGET) \
$(OUTDIR_FOR_BUILD)/bin/udkapi.rdb \
$(eval $(call gb_InternalUnoApi_add_idlfiles,cppu,cppu/qa/cppumaker,\
types \
))
# vim: set noet sw=4 ts=4:
# vim:set shiftwidth=4 softtabstop=4 expandtab:
......@@ -27,11 +27,6 @@
$(eval $(call gb_Library_Library,affine_uno))
$(eval $(call gb_Library_set_include,affine_uno,\
$$(INCLUDE) \
-I$(SRCDIR)/cppu/inc \
))
$(eval $(call gb_Library_use_api,affine_uno,\
udkapi \
offapi \
......
......@@ -29,13 +29,7 @@ $(eval $(call gb_Library_Library,cppu))
$(eval $(call gb_Library_set_soversion_script,cppu,3,$(SRCDIR)/cppu/util/cppu.map))
# Unit tests depend on cppu_generated custom target
$(eval $(call gb_Library_use_package,cppu,cppu_generated))
$(eval $(call gb_Library_set_include,cppu,\
$$(INCLUDE) \
-I$(SRCDIR)/cppu/inc \
))
$(eval $(call gb_Library_use_package,cppu,cppu_inc))
$(eval $(call gb_Library_use_api,cppu,\
udkapi \
......
......@@ -27,11 +27,6 @@
$(eval $(call gb_Library_Library,log_uno))
$(eval $(call gb_Library_set_include,log_uno,\
$$(INCLUDE) \
-I$(SRCDIR)/cppu/inc \
))
$(eval $(call gb_Library_use_api,log_uno,\
udkapi \
offapi \
......
......@@ -29,11 +29,6 @@ $(eval $(call gb_Library_Library,purpenvhelper))
$(eval $(call gb_Library_set_soversion_script,purpenvhelper,3,$(SRCDIR)/cppu/util/uno_purpenvhelpergcc3.map))
$(eval $(call gb_Library_set_include,purpenvhelper,\
$$(INCLUDE) \
-I$(SRCDIR)/cppu/inc \
))
$(eval $(call gb_Library_add_defs,purpenvhelper,\
-DPURPENV_DLLIMPLEMENTATION \
))
......
......@@ -27,11 +27,6 @@
$(eval $(call gb_Library_Library,unsafe_uno))
$(eval $(call gb_Library_set_include,unsafe_uno,\
$$(INCLUDE) \
-I$(SRCDIR)/cppu/inc \
))
$(eval $(call gb_Library_use_api,unsafe_uno,\
udkapi \
offapi \
......
......@@ -28,12 +28,12 @@
$(eval $(call gb_Module_Module,cppu))
$(eval $(call gb_Module_add_targets,cppu,\
InternalUnoApi_cppu \
Library_affine_uno \
Library_cppu \
Library_log_uno \
Library_purpenvhelper \
Library_unsafe_uno \
Package_generated \
Package_inc \
))
......
# -*- Mode: makefile; 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 Matúš Kukan <matus.kukan@gmail.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.
gb_PARTIALBUILD:=T
include $(GBUILDDIR)/gbuild.mk
all: qa/cppumaker.flag qa/cppumaker/cppumaker.flag
%/cppumaker.flag: %/cppumaker.rdb $(gb_UnoApiTarget_CPPUMAKERTARGET)
$(call gb_Helper_abbreviate_dirs_native, \
$(call gb_Helper_execute,cppumaker) -O. -BUCR -C $< $(OUTDIR_FOR_BUILD)/bin/udkapi.rdb)
touch $@
%/cppumaker.rdb: %/types.urd
$(call gb_Helper_abbreviate_dirs_native, \
$(call gb_Helper_execute,regmerge) $@ /UCR $<)
%/types.urd: $(SRCDIR)/cppu/%/types.idl
$(call gb_Helper_abbreviate_dirs_native, \
$(call gb_Helper_execute,idlc) -O$* -I$(OUTDIR_FOR_BUILD)/idl -cid -we $<)
.DEFAULT_GOAL:=all
.PHONY: all
# vim: set noet sw=4 ts=4:
......@@ -348,6 +348,9 @@ $(eval $(foreach method,\
add_ldflags \
set_ldflags \
add_libs \
use_internal_api \
use_internal_bootstrap_api \
use_internal_comprehensive_api \
set_library_path_flags \
set_objcflags \
set_objcxxflags \
......
......@@ -56,7 +56,7 @@ define gb_UnoApiPartTarget__command
$(call gb_Output_announce,$(2),$(true),IDL,2)
mkdir -p $(call gb_UnoApiPartTarget_get_target,$(dir $(2))) && \
RESPONSEFILE=$(call var2file,$(shell $(gb_MKTEMP)),500,\
$(call gb_Helper_convert_native,$(INCLUDE) $(DEFS) \
$(call gb_Helper_convert_native,$(INCLUDE) \
-M $(basename $(call gb_UnoApiPartTarget_get_dep_target,$(dir $(2)))) \
-O $(call gb_UnoApiPartTarget_get_target,$(dir $(2))) -verbose -C \
$(sort $(patsubst $(call gb_UnoApiPartTarget_get_target,%.urd),$(SRCDIR)/%.idl,$(3))))) && \
......
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