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