summaryrefslogtreecommitdiff
path: root/unoil/climaker
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-12-24 12:43:01 +0100
committerDavid Tardon <dtardon@redhat.com>2011-12-24 22:20:56 +0100
commit824a6406050560b6cf6d90510c20e8a4e8b6d062 (patch)
treed0139e5cebd278b21c1d3d9aad437f698c105014 /unoil/climaker
parent8c0e9a86a20478418e1c98f3a808627fe5cde716 (diff)
gbuildize unoil
Diffstat (limited to 'unoil/climaker')
-rw-r--r--unoil/climaker/Makefile61
-rw-r--r--unoil/climaker/makefile.mk93
2 files changed, 61 insertions, 93 deletions
diff --git a/unoil/climaker/Makefile b/unoil/climaker/Makefile
new file mode 100644
index 000000000000..a1f1fe68cf25
--- /dev/null
+++ b/unoil/climaker/Makefile
@@ -0,0 +1,61 @@
+# -*- 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) 2010 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.
+
+gb_PARTIALBUILD := T
+include $(GBUILDDIR)/gbuild_simple.mk
+
+include $(SRCDIR)/unoil/climaker/version.txt
+
+cli_oootypes.dll : $(SRCDIR)/unoil/climaker/version.txt
+ $(call gb_Helper_execute,climaker \
+ $(if $(filter -s,$(MAKEFLAGS)),,--verbose) \
+ --out $@ \
+ --assembly-version $(CLI_OOOTYPES_NEW_VERSION) \
+ --assembly-company "LibreOffice" \
+ --assembly-description "This assembly contains metadata for the LibreOffice API." \
+ -X $(OUTDIR)/bin/udkapi.rdb \
+ -r $(OUTDIR)/bin/cli_uretypes.dll \
+ --keyfile $(OUTDIR)/bin/cliuno.snk \
+ $(OUTDIR)/bin/offapi.rdb)
+
+cli_oootypes.config : $(SRCDIR)/unoil/climaker/cli_oootypes_config $(SRCDIR)/unoil/climaker/version.txt
+ perl $(SRCDIR)/solenv/bin/clipatchconfig.pl $< $@
+
+$(CLI_OOOTYPES_POLICY_ASSEMBLY).dll : cli_oootypes.dll cli_oootypes.config
+ al -out:$@ \
+ -version:$(CLI_OOOTYPES_POLICY_VERSION) \
+ -keyfile:$(OUTDIR)/bin/cliuno.snk \
+ -link:cli_oootypes.config
+
+.DEFAULT_GOAL := all
+.PHONY : all
+all : \
+ cli_oootypes.dll \
+ cli_oootypes.config \
+ $(CLI_OOOTYPES_POLICY_ASSEMBLY).dll
+
+# vim:set shiftwidth=4 tabstop=4 noexpandtab:
diff --git a/unoil/climaker/makefile.mk b/unoil/climaker/makefile.mk
deleted file mode 100644
index d820e72d082e..000000000000
--- a/unoil/climaker/makefile.mk
+++ /dev/null
@@ -1,93 +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 = unoil
-
-# for dummy
-TARGET = unotypes
-
-.INCLUDE : settings.mk
-.INCLUDE : $(PRJ)$/util$/makefile.pmk
-
-.INCLUDE : target.mk
-
-.INCLUDE : version.txt
-
-POLICY_ASSEMBLY_FILE=$(BIN)/$(CLI_OOOTYPES_POLICY_ASSEMBLY).dll
-
-.IF "$(BUILD_FOR_CLI)" != ""
-
-ALLTAR : \
- $(BIN)$/clioootypesversion.mk \
- $(BIN)$/cli_oootypes.dll \
- $(POLICY_ASSEMBLY_FILE)
-
-.ELSE
-
-ALLTAR : \
- $(BIN)$/clioootypesversion.mk
-
-.ENDIF
-
-
-CLIMAKERFLAGS =
-.IF "$(debug)" != ""
-CLIMAKERFLAGS += --verbose
-.ENDIF
-
-RDB = $(SOLARBINDIR)$/offapi.rdb
-EXTRA_RDB = $(SOLARBINDIR)$/udkapi.rdb
-
-$(BIN)/cli_oootypes.dll : $(RDB) $(EXTRA_RDB) version.txt
- $(CLIMAKER) $(CLIMAKERFLAGS) \
- --out $@ \
- --assembly-version $(CLI_OOOTYPES_NEW_VERSION) \
- --assembly-company "OpenOffice.org" \
- --assembly-description "This assembly contains metadata for the StarOffice/OpenOffice.org API." \
- -X $(EXTRA_RDB) \
- -r $(SOLARBINDIR)$/cli_uretypes.dll \
- --keyfile $(SOLARBINDIR)$/cliuno.snk \
- $(RDB)
-
-
-#Create the config file that is used with the policy assembly
-$(BIN)$/cli_oootypes.config: cli_oootypes_config version.txt
- $(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \
- $< $@
-
-$(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_oootypes.config $(BIN)$/cli_oootypes.dll
- $(WRAPCMD) AL.exe -out:$@ \
- -version:$(CLI_OOOTYPES_POLICY_VERSION) \
- -keyfile:$(SOLARBINDIR)$/cliuno.snk \
- -link:$(BIN)$/cli_oootypes.config
-
-#always deliver a clioootypesversion.mk. It is needed for the packing process even for all other
-#platforms. Therefore BUILD_FOR_CLI is not used here
-$(BIN)$/clioootypesversion.mk: version.txt
- $(GNUCOPY) $< $@
-