summaryrefslogtreecommitdiffstats
path: root/cppuhelper/unotypes
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2011-08-23 15:03:09 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-01-02 15:33:13 +0100
commitb222aa8fff63c803781703e72366ca203f3e6a76 (patch)
treed60c88c7fc81374162dc2653d9fc6aa56c6c1cea /cppuhelper/unotypes
parentcppuhelper: add visibility symbols as first step for porting to gbuild (diff)
downloadcore-b222aa8fff63c803781703e72366ca203f3e6a76.tar.gz
core-b222aa8fff63c803781703e72366ca203f3e6a76.zip
cppuhelper: convert to gbuild
missing subsequent test qa/propertysetmixin/makefile.mk
Diffstat (limited to 'cppuhelper/unotypes')
-rw-r--r--cppuhelper/unotypes/Makefile119
-rw-r--r--cppuhelper/unotypes/makefile.mk52
2 files changed, 119 insertions, 52 deletions
diff --git a/cppuhelper/unotypes/Makefile b/cppuhelper/unotypes/Makefile
new file mode 100644
index 000000000000..fae02aeca501
--- /dev/null
+++ b/cppuhelper/unotypes/Makefile
@@ -0,0 +1,119 @@
+# -*- 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>
+#
+# 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_simple.mk
+
+all: private_types.flag unotypes.flag
+
+# private_types
+private_types.flag: private_types.rdb
+ $(call gb_Helper_abbreviate_dirs_native, \
+ $(call gb_Helper_execute,cppumaker) -O. -BUCR -C $< \
+ -Tcppuhelper.detail.XExceptionThrower \
+ -X$(OUTDIR_FOR_BUILD)/bin/types.rdb)
+ touch $@
+
+private_types.rdb: XExceptionThrower.urd
+ $(call gb_Helper_abbreviate_dirs_native, \
+ $(call gb_Helper_execute,regmerge) $@ /UCR $< \
+ $(OUTDIR_FOR_BUILD)/bin/types.rdb)
+
+XExceptionThrower.urd: $(SRCDIR)/cppuhelper/unotypes/cppuhelper/detail/XExceptionThrower.idl
+ $(call gb_Helper_abbreviate_dirs_native, \
+ $(call gb_Helper_execute,idlc) -I. -I$(OUTDIR_FOR_BUILD)/idl -O. $<)
+
+# unotypes
+unotypes.flag:
+ $(call gb_Helper_abbreviate_dirs_native, \
+ $(call gb_Helper_execute,cppumaker) -O. -BUCR -C \
+ $(foreach type,$(UNOTYPES),-T$(type)) $(OUTDIR_FOR_BUILD)/bin/udkapi.rdb)
+
+UNOTYPES := \
+ com.sun.star.beans.PropertyAttribute \
+ com.sun.star.beans.PropertyValue \
+ com.sun.star.beans.XFastPropertySet \
+ com.sun.star.beans.XMultiPropertySet \
+ com.sun.star.beans.XPropertyAccess \
+ com.sun.star.beans.XPropertySet \
+ com.sun.star.beans.XPropertySetOption \
+ com.sun.star.bridge.UnoUrlResolver \
+ com.sun.star.bridge.XUnoUrlResolver \
+ com.sun.star.connection.SocketPermission \
+ com.sun.star.container.XElementAccess \
+ com.sun.star.container.XEnumerationAccess \
+ com.sun.star.container.XHierarchicalNameAccess \
+ com.sun.star.container.XNameAccess \
+ com.sun.star.container.XNameContainer \
+ com.sun.star.container.XSet \
+ com.sun.star.io.FilePermission \
+ com.sun.star.io.IOException \
+ com.sun.star.lang.DisposedException \
+ com.sun.star.lang.WrappedTargetRuntimeException \
+ com.sun.star.lang.XComponent \
+ com.sun.star.lang.XEventListener \
+ com.sun.star.lang.XInitialization \
+ com.sun.star.lang.XMultiComponentFactory \
+ com.sun.star.lang.XMultiServiceFactory \
+ com.sun.star.lang.XServiceInfo \
+ com.sun.star.lang.XSingleComponentFactory \
+ com.sun.star.lang.XSingleServiceFactory \
+ com.sun.star.lang.XTypeProvider \
+ com.sun.star.loader.XImplementationLoader \
+ com.sun.star.reflection.XArrayTypeDescription \
+ com.sun.star.reflection.XCompoundTypeDescription \
+ com.sun.star.reflection.XEnumTypeDescription \
+ com.sun.star.reflection.XIdlClass \
+ com.sun.star.reflection.XIdlField2 \
+ com.sun.star.reflection.XIdlReflection \
+ com.sun.star.reflection.XIndirectTypeDescription \
+ com.sun.star.reflection.XInterfaceAttributeTypeDescription \
+ com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \
+ com.sun.star.reflection.XInterfaceMemberTypeDescription \
+ com.sun.star.reflection.XInterfaceMethodTypeDescription \
+ com.sun.star.reflection.XInterfaceTypeDescription2 \
+ com.sun.star.reflection.XMethodParameter \
+ com.sun.star.reflection.XStructTypeDescription \
+ com.sun.star.reflection.XTypeDescription \
+ com.sun.star.reflection.XUnionTypeDescription \
+ com.sun.star.registry.XImplementationRegistration \
+ com.sun.star.registry.XRegistryKey \
+ com.sun.star.registry.XSimpleRegistry \
+ com.sun.star.security.RuntimePermission \
+ com.sun.star.security.XAccessController \
+ com.sun.star.uno.DeploymentException \
+ com.sun.star.uno.RuntimeException \
+ com.sun.star.uno.XAggregation \
+ com.sun.star.uno.XComponentContext \
+ com.sun.star.uno.XCurrentContext \
+ com.sun.star.uno.XUnloadingPreference \
+ com.sun.star.uno.XWeak \
+ com.sun.star.util.XMacroExpander
+
+.DEFAULT_GOAL:=all
+.PHONY: all
+# vim: set noet sw=4 ts=4:
diff --git a/cppuhelper/unotypes/makefile.mk b/cppuhelper/unotypes/makefile.mk
deleted file mode 100644
index f58a7ebf18ad..000000000000
--- a/cppuhelper/unotypes/makefile.mk
+++ /dev/null
@@ -1,52 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2010 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ = ..
-
-PRJNAME = cppuhelper
-TARGET = private_types
-
-.INCLUDE : settings.mk
-
-UNOUCRRDB = $(BIN)$/$(TARGET).rdb
-UNOUCRDEP = $(UNOUCRRDB)
-UNOUCROUT = $(OUT)$/inc$/private
-
-CPPUMAKERFLAGS += -C -X$(SOLARBINDIR)$/types.rdb
-
-UNOTYPES = \
- cppuhelper.detail.XExceptionThrower
-
-ALLIDLFILES = \
- .$/cppuhelper$/detail$/XExceptionThrower.idl
-
-.INCLUDE : target.mk
-
-$(UNOUCRRDB) : $(ALLIDLFILES) $(SOLARBINDIR)$/types.rdb
- $(IDLC) -I. -I$(SOLARIDLDIR) -O$(UCR) $(ALLIDLFILES)
- $(REGMERGE) $@ /UCR $(UCR)$/{$(?:f:s/.idl/.urd/)}
- touch $@