xref: /aoo41x/main/svx/AllLangResTarget_svx.mk (revision f35c6d02)
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/sidebar/paragraph/ParaPropertyPanel.src \
87    svx/source/sidebar/insert/InsertPropertyPanel.src \
88    svx/source/stbctrls/stbctrls.src \
89    svx/source/svdraw/svdstr.src \
90    svx/source/table/table.src \
91    svx/source/tbxctrls/colrctrl.src \
92    svx/source/tbxctrls/extrusioncontrols.src \
93    svx/source/tbxctrls/fontworkgallery.src \
94    svx/source/tbxctrls/grafctrl.src \
95    svx/source/tbxctrls/lboxctrl.src \
96    svx/source/tbxctrls/tbcontrl.src \
97    svx/source/tbxctrls/tbunosearchcontrollers.src \
98    svx/source/toolbars/extrusionbar.src \
99    svx/source/toolbars/fontworkbar.src \
100    svx/source/unodraw/unodraw.src \
101))
102
103$(call gb_SrsPartTarget_get_target,svx/source/fmcomp/gridctrl.src) : $(WORKDIR)/inc/svx/globlmn.hrc
104$(call gb_SrsPartTarget_get_target,svx/source/form/fmexpl.src) : $(WORKDIR)/inc/svx/globlmn.hrc
105$(call gb_SrsPartTarget_get_target,svx/source/form/datanavi.src) : $(WORKDIR)/inc/svx/globlmn.hrc
106$(call gb_SrsPartTarget_get_target,svx/source/form/formshell.src) : $(WORKDIR)/inc/svx/globlmn.hrc
107$(call gb_SrsTarget_get_clean_target,svx/res) : $(WORKDIR)/inc/svx/globlmn.hrc_clean
108
109$(OUTDIR)/inc/svx/globlmn.hrc : $(WORKDIR)/inc/svx/globlmn.hrc
110	$(call gb_Deliver_deliver,$<,$@)
111
112# hack !!!
113# just a temporary - globlmn.hrc about to be removed!
114ifeq ($(strip $(WITH_LANG)),)
115$(WORKDIR)/inc/svx/globlmn.hrc : $(SRCDIR)/svx/inc/globlmn_tmpl.hrc
116	echo copying $@
117	-mkdir -p $(WORKDIR)/inc/svx
118	cp $(SRCDIR)/svx/inc/globlmn_tmpl.hrc $(WORKDIR)/inc/svx/globlmn.hrc
119	rm -f $(WORKDIR)/inc/svx/lastrun.mk
120else
121-include $(WORKDIR)/inc/svx/lastrun.mk
122ifneq ($(gb_lastrun_globlmn),MERGED)
123.PHONY : $(WORKDIR)/inc/svx/globlmn.hrc
124endif
125$(WORKDIR)/inc/svx/globlmn.hrc : $(SRCDIR)/svx/inc/globlmn_tmpl.hrc $(gb_SrsPartMergeTarget_SDFLOCATION)/svx/inc/localize.sdf
126	echo merging $@
127	-mkdir -p $(WORKDIR)/inc/svx
128	rm -f $(WORKDIR)/inc/svx/lastrun.mk
129	echo gb_lastrun_globlmn:=MERGED > $(WORKDIR)/inc/svx/lastrun.mk
130	$(call gb_Helper_abbreviate_dirs_native, \
131		$(gb_SrsPartMergeTarget_TRANSEXCOMMAND) \
132		-p svx \
133		 -i $< -o $@ -m $(gb_SrsPartMergeTarget_SDFLOCATION)/svx/inc/localize.sdf -l all)
134endif
135
136.PHONY : $(WORKDIR)/inc/svx/globlmn.hrc_clean
137$(WORKDIR)/inc/svx/globlmn.hrc_clean :
138	rm -f $(WORKDIR)/inc/svx/lastrun.mk \
139		$(WORKDIR)/inc/svx/globlmn.hrc
140
141
142# vim: set noet sw=4 ts=4:
143