xref: /trunk/main/svx/AllLangResTarget_svx.mk (revision da72173f)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24$(eval $(call gb_AllLangResTarget_AllLangResTarget,svx))
25
26$(eval $(call gb_AllLangResTarget_set_reslocation,svx,svx))
27
28$(eval $(call gb_AllLangResTarget_add_srs,svx,\
29	svx/res \
30))
31
32$(eval $(call gb_SrsTarget_SrsTarget,svx/res))
33
34$(eval $(call gb_SrsTarget_set_include,svx/res,\
35	$$(INCLUDE) \
36	-I$(OUTDIR)/inc \
37	-I$(WORKDIR)/inc \
38	-I$(WORKDIR)/inc/svx \
39	-I$(SRCDIR)/svx/source/inc \
40	-I$(SRCDIR)/svx/source/dialog \
41	-I$(SRCDIR)/svx/inc/ \
42))
43
44$(eval $(call gb_SrsTarget_add_files,svx/res,\
45    svx/source/accessibility/accessibility.src \
46    svx/source/dialog/bmpmask.src \
47    svx/source/dialog/contdlg.src \
48    svx/source/dialog/ctredlin.src \
49    svx/source/dialog/dlgctrl.src \
50    svx/source/dialog/docrecovery.src \
51    svx/source/dialog/fontwork.src \
52    svx/source/dialog/frmsel.src \
53    svx/source/dialog/hdft.src \
54    svx/source/dialog/hyprlink.src \
55    svx/source/dialog/imapdlg.src \
56    svx/source/dialog/langbox.src \
57    svx/source/dialog/language.src \
58    svx/source/dialog/optgrid.src \
59    svx/source/dialog/passwd.src \
60    svx/source/dialog/prtqry.src \
61    svx/source/dialog/rubydialog.src \
62    svx/source/dialog/ruler.src \
63    svx/source/dialog/sdstring.src \
64    svx/source/dialog/srchdlg.src \
65    svx/source/dialog/svxbmpnumvalueset.src \
66    svx/source/dialog/swframeposstrings.src \
67    svx/source/dialog/txenctab.src \
68    svx/source/dialog/ucsubset.src \
69    svx/source/engine3d/float3d.src \
70    svx/source/engine3d/string3d.src \
71    svx/source/fmcomp/gridctrl.src \
72    svx/source/form/datanavi.src \
73    svx/source/form/filtnav.src \
74    svx/source/form/fmexpl.src \
75    svx/source/form/fmstring.src \
76    svx/source/form/formshell.src \
77    svx/source/items/svxerr.src \
78    svx/source/items/svxitems.src \
79    svx/source/mnuctrls/mnuctrls.src \
80    svx/source/sidebar/EmptyPanel.src \
81    svx/source/sidebar/area/AreaPropertyPanel.src \
82    svx/source/sidebar/graphic/GraphicPropertyPanel.src \
83    svx/source/sidebar/line/LinePropertyPanel.src \
84    svx/source/sidebar/possize/PosSizePropertyPanel.src \
85    svx/source/sidebar/text/TextPropertyPanel.src \
86    svx/source/stbctrls/stbctrls.src \
87    svx/source/svdraw/svdstr.src \
88    svx/source/table/table.src \
89    svx/source/tbxctrls/colrctrl.src \
90    svx/source/tbxctrls/extrusioncontrols.src \
91    svx/source/tbxctrls/fontworkgallery.src \
92    svx/source/tbxctrls/grafctrl.src \
93    svx/source/tbxctrls/lboxctrl.src \
94    svx/source/tbxctrls/linectrl.src \
95    svx/source/tbxctrls/tbcontrl.src \
96    svx/source/tbxctrls/tbunosearchcontrollers.src \
97    svx/source/toolbars/extrusionbar.src \
98    svx/source/toolbars/fontworkbar.src \
99    svx/source/unodraw/unodraw.src \
100))
101
102$(call gb_SrsPartTarget_get_target,svx/source/fmcomp/gridctrl.src) : $(WORKDIR)/inc/svx/globlmn.hrc
103$(call gb_SrsPartTarget_get_target,svx/source/form/fmexpl.src) : $(WORKDIR)/inc/svx/globlmn.hrc
104$(call gb_SrsPartTarget_get_target,svx/source/form/datanavi.src) : $(WORKDIR)/inc/svx/globlmn.hrc
105$(call gb_SrsPartTarget_get_target,svx/source/form/formshell.src) : $(WORKDIR)/inc/svx/globlmn.hrc
106$(call gb_SrsTarget_get_clean_target,svx/res) : $(WORKDIR)/inc/svx/globlmn.hrc_clean
107
108$(OUTDIR)/inc/svx/globlmn.hrc : $(WORKDIR)/inc/svx/globlmn.hrc
109	$(call gb_Deliver_deliver,$<,$@)
110
111# hack !!!
112# just a temporary - globlmn.hrc about to be removed!
113ifeq ($(strip $(WITH_LANG)),)
114$(WORKDIR)/inc/svx/globlmn.hrc : $(SRCDIR)/svx/inc/globlmn_tmpl.hrc
115	echo copying $@
116	-mkdir -p $(WORKDIR)/inc/svx
117	cp $(SRCDIR)/svx/inc/globlmn_tmpl.hrc $(WORKDIR)/inc/svx/globlmn.hrc
118	rm -f $(WORKDIR)/inc/svx/lastrun.mk
119else
120-include $(WORKDIR)/inc/svx/lastrun.mk
121ifneq ($(gb_lastrun_globlmn),MERGED)
122.PHONY : $(WORKDIR)/inc/svx/globlmn.hrc
123endif
124$(WORKDIR)/inc/svx/globlmn.hrc : $(SRCDIR)/svx/inc/globlmn_tmpl.hrc $(gb_SrsPartMergeTarget_SDFLOCATION)/svx/inc/localize.sdf
125	echo merging $@
126	-mkdir -p $(WORKDIR)/inc/svx
127	rm -f $(WORKDIR)/inc/svx/lastrun.mk
128	echo gb_lastrun_globlmn:=MERGED > $(WORKDIR)/inc/svx/lastrun.mk
129	$(call gb_Helper_abbreviate_dirs_native, \
130		$(gb_SrsPartMergeTarget_TRANSEXCOMMAND) \
131		-p svx \
132		 -i $< -o $@ -m $(gb_SrsPartMergeTarget_SDFLOCATION)/svx/inc/localize.sdf -l all)
133endif
134
135.PHONY : $(WORKDIR)/inc/svx/globlmn.hrc_clean
136$(WORKDIR)/inc/svx/globlmn.hrc_clean :
137	rm -f $(WORKDIR)/inc/svx/lastrun.mk \
138		$(WORKDIR)/inc/svx/globlmn.hrc
139
140
141# vim: set noet sw=4 ts=4:
142