diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-06 19:26:39 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-17 17:34:23 +0200 |
commit | 2674376ddff9370988fe1fcad0ec519d1e68e869 (patch) | |
tree | 042a9581e042b88006b4e8cbb2372b98da0b6da0 /i18npool/source/indexentry | |
parent | 3aeeb8fb5d5342b73f1b2f8dde9f270b46bd94c2 (diff) |
convert i18npool to gbuild
Diffstat (limited to 'i18npool/source/indexentry')
-rw-r--r-- | i18npool/source/indexentry/Makefile | 40 | ||||
-rw-r--r-- | i18npool/source/indexentry/data/index_data.map | 17 | ||||
-rw-r--r-- | i18npool/source/indexentry/data/makefile.mk | 67 | ||||
-rw-r--r-- | i18npool/source/indexentry/makefile.mk | 69 |
4 files changed, 40 insertions, 153 deletions
diff --git a/i18npool/source/indexentry/Makefile b/i18npool/source/indexentry/Makefile new file mode 100644 index 000000000000..a95e3672ac5c --- /dev/null +++ b/i18npool/source/indexentry/Makefile @@ -0,0 +1,40 @@ +# -*- 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. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# 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. + +all : $(subst .txt,.cxx,$(notdir $(wildcard $(SRC_ROOT)/i18npool/source/indexentry/data/*.txt))) + +include $(GBUILDDIR)/gbuild_simple.mk + +%.cxx : %_invis.cxx + sed 's/\(^.*get_\)/SAL_DLLPUBLIC_EXPORT \1/' $< > $@ + +%_invis.cxx : $(realpath $(SRC_ROOT)/i18npool/source/indexentry/data)/%.txt + $(gb_Helper_execute)genindex_data $< $@ $* + +.PHONY: all +# vim: set noet sw=4 ts=4: diff --git a/i18npool/source/indexentry/data/index_data.map b/i18npool/source/indexentry/data/index_data.map deleted file mode 100644 index 30d03853d6ad..000000000000 --- a/i18npool/source/indexentry/data/index_data.map +++ /dev/null @@ -1,17 +0,0 @@ -UDK_3_0_0 { -global: - GetVersionInfo; - get_indexdata_ko_dict; - get_indexdata_zh_pinyin; - get_indexdata_zh_radical; - get_indexdata_zh_stroke; - get_indexdata_zh_TW_radical; - get_indexdata_zh_TW_stroke; - get_indexdata_zh_zhuyin; - get_ko_phonetic; - get_zh_pinyin; - get_zh_zhuyin; - -local: - *; -}; diff --git a/i18npool/source/indexentry/data/makefile.mk b/i18npool/source/indexentry/data/makefile.mk deleted file mode 100644 index 84d4281a3f53..000000000000 --- a/i18npool/source/indexentry/data/makefile.mk +++ /dev/null @@ -1,67 +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=i18npool -TARGET=index_data -LIBTARGET=NO - -# --- Settings ----------------------------------------------------- -.INCLUDE : settings.mk - -# Fix heap limit problem on MSC -.IF "$(COM)" == "MSC" -.IF "$(COMEX)" != "8" -CDEFS+=-Zm300 -.ENDIF -.ENDIF - -# --- Files -------------------------------------------------------- - -# index data library -SHL1TARGET=$(TARGET) -SHL1IMPLIB=i$(SHL1TARGET) - -SHL1VERSIONMAP=$(SHL1TARGET).map -SHL1DEF=$(MISC)$/$(SHL1TARGET).def -DEF1NAME=$(SHL1TARGET) - -DATA_TXTFILES:=$(shell @ls ./*.txt) -SHL1OBJS=$(subst,./,$(SLO)$/ $(DATA_TXTFILES:s/.txt/.obj/)) - -LIB1TARGET= $(SLB)$/$(SHL1TARGET).lib -LIB1OBJFILES=$(SHL1OBJS) - -# --- Targets ------------------------------------------------------ -.INCLUDE : target.mk - -$(MISC)$/%.cxx : %.txt - $(AUGMENT_LIBRARY_PATH) $(OUT_FOR_BUILD)$/bin$/genindex_data $< $@ $* - -# ugly - is this dependency really required here? -$(foreach,i,$(shell @$(FIND) . -name "*.txt") $(MISC)$/dict_$(i:b).cxx) : $(BIN)$/genindex_data$(EXECPOST) - diff --git a/i18npool/source/indexentry/makefile.mk b/i18npool/source/indexentry/makefile.mk deleted file mode 100644 index 79e3eaf95c4e..000000000000 --- a/i18npool/source/indexentry/makefile.mk +++ /dev/null @@ -1,69 +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=i18npool -TARGET=indexentry - -ENABLE_EXCEPTIONS=TRUE - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- - -SLOFILES= \ - $(SLO)$/indexentrysupplier.obj \ - $(SLO)$/indexentrysupplier_asian.obj \ - $(SLO)$/indexentrysupplier_ja_phonetic.obj \ - $(SLO)$/indexentrysupplier_default.obj \ - $(SLO)$/indexentrysupplier_common.obj - -.IF "$(CROSS_COMPILING)" != "YES" - -OBJFILES = $(OBJ)$/genindex_data.obj - -APP1TARGET = genindex_data -APP1RPATH = NONE - -DEPOBJFILES = $(OBJ)$/genindex_data.obj -APP1OBJS = $(DEPOBJFILES) - -APP1STDLIBS = $(SALLIB) \ - $(ICUINLIB) \ - $(ICUUCLIB) \ - $(ICUDATALIB) - -.ENDIF - -# --- Targets ------------------------------------------------------ - -.INCLUDE : target.mk - |