update dev300-m58
[ooovba.git] / toolkit / workben / layout / makefile.mk
blob0741a210d2e356233c5660514f0ca8e689c78b03
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.3 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=../..
33 PRJNAME=toolkit
34 TARGET=test
35 TARGETTYPE=GUI
36 LIBTARGET=NO
37 ENABLE_EXCEPTIONS=TRUE
39 .INCLUDE : settings.mk
41 .IF "$(ENABLE_LAYOUT)" == "TRUE"
43 # Allow zoom and wordcount to be built without depending on svx,sv,sfx2
44 CFLAGS += -I../$(PRJ)/svx/inc -I../$(PRJ)/svtools/inc -I../$(PRJ)/sfx2/inc -I../$(PRJ)/sc/inc -I../$(PRJ)/sc/source/ui/inc -I../$(PRJ)/sw/inc
46 .INCLUDE : $(PRJ)$/util$/makefile.pmk
48 .IF "$(COMNAME)" == "gcc3"
49 CFLAGS+=-Wall -Wno-non-virtual-dtor
50 .ENDIF
52 CXXFILES=\
53 editor.cxx \
54 plugin.cxx \
55 recover.cxx \
56 wordcountdialog.cxx \
57 test.cxx \
58 zoom.cxx
60 OBJFILES=\
61 $(OBJ)$/editor.obj \
62 $(OBJ)$/plugin.obj \
63 $(OBJ)$/recover.obj \
64 $(OBJ)$/test.obj \
65 $(OBJ)$/tpsort.obj \
66 $(OBJ)$/sortdlg.obj \
67 $(OBJ)$/wordcountdialog.obj \
68 $(OBJ)$/zoom.obj
70 APP1TARGET=$(TARGET)
71 APP1OBJS=$(OBJFILES)
72 APP1STDLIBS= \
73 $(TOOLSLIB) \
74 $(COMPHELPERLIB) \
75 $(VCLLIB) \
76 $(CPPULIB) \
77 $(CPPUHELPERLIB) \
78 $(SALLIB) \
79 $(XMLSCRIPTLIB) \
80 $(TKLIB) \
81 $(SVXLIB) \
82 $(ISCLIB) \
85 svtools = $(INCCOM)/svtools
86 default: ALLTAR
88 .INCLUDE : target.mk
90 XML_FILES=\
91 insert-sheet.xml\
92 message-box.xml\
93 move-copy-sheet.xml\
94 recover.xml\
95 sort-options.xml\
96 string-input.xml\
97 tab-dialog.xml\
98 wordcount.xml\
99 zoom.xml\
101 TRALAY=$(AUGMENT_LIBRARY_PATH) tralay
102 XML_LANGS=$(alllangiso)
104 ALLTAR: localize.sdf $(BIN)/testrc $(svtools) $(foreach,i,$(XML_FILES) en-US/$i)
106 $(XML_LANGS:f:t"/%.xml ")/%.xml: %.xml
107 $(TRALAY) -m localize.sdf -o . -l $(XML_LANGS:f:t" -l ") $<
108 rm -rf en-US
110 $(BIN)/%: %.in
111 cp $< $@
113 $(svtools):
114 # FIXME: there's a bug in svtools layout or usage
115 # Include files are in svtools/inc, but are referenced as <svtools/..>
116 # They probably should be in svtools/inc/svtools
117 # This means that include files can only be included after svtools
118 # is built, which would mean a circular dependency,
119 # because svtools depends on toolkit.
120 ln -sf ..$/$(PRJ)$/svtools$/inc $(INCCOM)$/svtools
122 dist .PHONY :
123 cp -pv message-box.xml $(PRJ)/uiconfig/layout
124 cp -pv tab-dialog.xml $(PRJ)/uiconfig/layout
125 $(SHELL) ./un-test.sh zoom.cxx > ../$(PRJ)/svx/source/dialog/zoom.cxx
126 $(SHELL) ./un-test.sh zoom.hxx > ../$(PRJ)/svx/source/dialog/zoom.hxx
127 touch ../$(PRJ)/svx/source/dialog/dlgfact.cxx
128 cp -pv zoom.xml ../$(PRJ)/svx/uiconfig/layout
129 $(SHELL) ./un-test.sh wordcountdialog.cxx > ../$(PRJ)/sw/source/ui/dialog/wordcountdialog.cxx
130 $(SHELL) ./un-test.sh wordcountdialog.hxx > ../$(PRJ)/sw/source/ui/inc/wordcountdialog.hxx
131 touch ../$(PRJ)/sw/source/ui/dialog/swdlgfact.cxx
132 cp -pv wordcount.xml ../$(PRJ)/sw/uiconfig/layout
133 # FIXME: broken setup
134 ln -sf ../inc/wordcountdialog.hxx ../$(PRJ)/sw/source/ui/dialog/wordcountdialog.hxx
135 $(SHELL) ./un-test.sh tpsort.cxx > ../$(PRJ)/sc/source/ui/dbgui/tpsort.cxx
136 $(SHELL) ./un-test.sh tpsort.hxx > ../$(PRJ)/sc/source/ui/inc/tpsort.hxx
137 $(SHELL) ./un-test.sh sortdlg.cxx > ../$(PRJ)/sc/source/ui/dbgui/sortdlg.cxx
138 $(SHELL) ./un-test.sh sortdlg.hxx > ../$(PRJ)/sc/source/ui/inc/sortdlg.hxx
139 touch ../$(PRJ)/sc/source/ui/attrdlg/scdlgfact.cxx
140 touch ../$(PRJ)/sc/source/ui/view/cellsh2.cxx
141 cp -pv insert-sheet.xml ../$(PRJ)/sc/uiconfig/layout
142 cp -pv move-copy-sheet.xml ../$(PRJ)/sc/uiconfig/layout
143 cp -pv sort-options.xml ../$(PRJ)/sc/uiconfig/layout
144 cp -pv string-input.xml ../$(PRJ)/sc/uiconfig/layout
146 localize.sdf: $(PRJ)/../svx/source/dialog/localize.sdf $(PRJ)/../sw/source/ui/dialog/localize.sdf $(PRJ)/../sc/source/ui/src/localize.sdf
147 grep sortdlg.src $(PRJ)/../sc/source/ui/src/localize.sdf | awk -F'\t' '{{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "sc\\uiconfig\\layout\\sort-options.xml", $$3, "layout", $$6 "_label", "", "", $$8, "0", $$10, $$11, $$12, "", $$14, $$15}}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\t_label/\tRID_SCDLG_SORT_title/' > sort-options-$@
148 grep wordcountdialog.src $(PRJ)/../sw/source/ui/dialog/localize.sdf | awk -F'\t' '{{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "sw\\uiconfig\\layout\\wordcount.xml", $$3, "layout", $$6 "_label", "", "", $$8, "0", $$10, $$11, $$12, "", $$14, $$15}}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\t_label/\tDLG_WORDCOUNT_title/' > wordcount-$@
149 grep zoom.src $(PRJ)/source/dialog/localize.sdf | awk -F'\t' '{{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "svx\\uiconfig\\layout\\zoom.xml", $$3, "layout", $$6 "_label", "", "", $$8, "0", $$10, $$11, $$12, "", $$14, $$15}}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\t_label/\tRID_SVXDLG_ZOOM_title/' > zoom-$@
150 echo '#empty' | cat - sort-options-$@ wordcount-$@ zoom-$@ > $@
151 rm -f *-$@
153 .ELSE # ENABLE_LAYOUT != TRUE
154 all .PHONY:
155 .ENDIF # ENABLE_LAYOUT != TRUE