summaryrefslogtreecommitdiff
path: root/l10ntools/Executable_genlang.mk
blob: 4bd206c14ad3e407fde3dfc3ea6d913ba54891eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

$(eval $(call gb_Executable_Executable,genlang))

$(eval $(call gb_Executable_set_include,genlang,\
    -I$(SRCDIR)/l10ntools/inc \
    $$(INCLUDE) \
))

$(eval $(call gb_Executable_add_scanners,genlang,\
    l10ntools/source/gLexPo   \
    l10ntools/source/gLexUi   \
    l10ntools/source/gLexSrc  \
    l10ntools/source/gLexXcu  \
    l10ntools/source/gLexXcs  \
    l10ntools/source/gLexXrm  \
    l10ntools/source/gLexXhp  \
    l10ntools/source/gLexUlf  \
    l10ntools/source/gLexTree \
))

$(eval $(call gb_Executable_add_exception_objects,genlang,\
    l10ntools/source/gLang      \
    l10ntools/source/gL10nMem   \
    l10ntools/source/gConvProp  \
    l10ntools/source/gConv      \
    l10ntools/source/gConvPo    \
    l10ntools/source/gConvSrc   \
    l10ntools/source/gConvUi    \
    l10ntools/source/gConvXrm   \
    l10ntools/source/gConvXhp   \
    l10ntools/source/gConvXcs   \
    l10ntools/source/gConvXcu   \
    l10ntools/source/gConvUlf   \
    l10ntools/source/gConvTree  \
))

# vim:set noet sw=4 ts=4:




# localizer for new l10n framework
APP1TARGET=   genLang 
APP1OBJS=     $(OBJFILES)
APP1RPATH=    NONE
APP1LINKTYPE= STATIC

APP1LIBS= 
APP1STDLIBS= 
APP1LIBSALCPPRT=


# --- Targets ------------------------------------------------------
.INCLUDE :  target.mk

$(MISC)$/%_yy.c : %lex.l
	flex -l -w -8 -o$@ $<

# --- Files --------------------------------------------------------


genPO: ALLTAR
	+$(PERL) $(SOLARENV)/bin/deliver.pl