diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-06 11:00:06 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-06 11:00:06 +0000 |
commit | 8783a4a12f4b1f78dfb609a962c38b361082bd14 (patch) | |
tree | 297a3d8530cc31ddce9e71a51c6748ac9bd8ac17 /toolkit | |
parent | 1d230c2b96b61cddad4478ad57d4a9f29f4c8791 (diff) |
INTEGRATION: CWS layout_DEV300 (1.1.2); FILE ADDED
2008/02/18 15:23:56 jcn 1.1.2.5: Compile fix for universal build --disable-layout: add default target.
2008/02/14 15:26:29 jcn 1.1.2.4: Do not build anything at all in workben/layout if --disable-layout.
Fixes universal build. Thanks, Fridrich.
2008/02/12 15:54:56 jcn 1.1.2.3: Remove LAYOUTLIB definition from makefiles.
2008/02/11 15:13:38 jcn 1.1.2.2: Make layout stuff in toolkit build with --enable-layout.
2008/02/08 18:44:46 jcn 1.1.2.1: Initial toolkit import from ee9a2fcc29d7e2f01cc80ef7c13bf7bc7d55ae7e.
layout/source/awt -> toolkit/source/awt
layout/source/core -> toolkit/source/layout
layout/source/wrapper -> toolkit/source/vclcompat
layout/inc/layout -> toolkit/inc/layout
layout/source/inc -> toolkit/inc/layout
layout/workben -> toolkit/workben/layout
That's ooo-build trunk r11539 @ ooh680-m5/src680-m245.
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/workben/layout/makefile.mk | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/toolkit/workben/layout/makefile.mk b/toolkit/workben/layout/makefile.mk new file mode 100644 index 000000000000..aa1f31dcd369 --- /dev/null +++ b/toolkit/workben/layout/makefile.mk @@ -0,0 +1,95 @@ +PRJ=../.. +PRJNAME=toolkit +TARGET=test +TARGETTYPE=GUI +LIBTARGET=NO +ENABLE_EXCEPTIONS=TRUE + +.INCLUDE : settings.mk + +.IF "$(ENABLE_LAYOUT)" == "TRUE" + +CFLAGS += -I$(PRJ)/source/layout + +# Allow zoom and wordcount to be built without depending on svx,sv,sfx2 +CFLAGS += -I../$(PRJ)/svx/inc -I../$(PRJ)/svtools/inc -I../$(PRJ)/sfx2/inc + +.INCLUDE : $(PRJ)$/util$/makefile.pmk + +CFLAGS += -DENABLE_LAYOUT=1 -DTEST_LAYOUT=1 + +.IF "$(COMNAME)" == "gcc3" +CFLAGS+=-Wall -Wno-non-virtual-dtor +.ENDIF + +CXXFILES=\ + editor.cxx \ + wordcountdialog.cxx \ + test.cxx \ + zoom.cxx + +OBJFILES=\ + $(OBJ)$/editor.obj \ + $(OBJ)$/test.obj \ + $(OBJ)$/wordcountdialog.obj \ + $(OBJ)$/zoom.obj + +APP1TARGET=$(TARGET) +APP1OBJS=$(OBJFILES) +APP1STDLIBS= \ + $(TOOLSLIB) \ + $(COMPHELPERLIB) \ + $(VCLLIB) \ + $(CPPULIB) \ + $(CPPUHELPERLIB) \ + $(SALLIB) \ + $(XMLSCRIPTLIB) \ + $(LAYOUTLIB)\ + $(TKLIB) + +all: svtools ALLTAR + +.INCLUDE : target.mk + +# FIXME: move this rule and .xml files into sw/svx trees, +# install into xml directory instead of lib. +ALLTAR: \ + $(DLLDEST)$/wordcount.xml\ + $(DLLDEST)$/zoom.xml\ + $(DLLDEST)$/de/wordcount.xml\ + $(DLLDEST)$/de/zoom.xml\ + $(DLLDEST)$/nl/wordcount.xml\ + $(DLLDEST)$/nl/zoom.xml + +TRALAY=tralay +$(WITH_LANG:f:t"/%.xml ")/%.xml: %.xml + $(TRALAY) -m localize.sdf -o . -l $(WITH_LANG:f:t" -l ") $< + rm -rf en-US + +$(DLLDEST)$/%.xml: %.xml +# modes, INSTALL? + -$(MKDIR) $(@:d) + $(COPY) $< $@ + +svtools: + # FIXME: there's a bug in svtools layout or usage + # Include files are in svtools/inc, but are referenced as <svtools/..> + # They probably should be in svtools/inc/svtools + # This means that include files can only be included after svtools + # is built, which would mean a circular dependency, + # because svtools depends on toolkit. + ln -sf ../$(PRJ)/svtools/inc svtools + +dist .PHONY : + $(SHELL) ./un-test.sh zoom.cxx > ../$(PRJ)/svx/source/dialog/zoom.cxx + $(SHELL) ./un-test.sh zoom.hxx > ../$(PRJ)/svx/source/dialog/zoom.hxx + touch ../$(PRJ)/svx/source/dialog/dlgfact.cxx + $(SHELL) ./un-test.sh wordcountdialog.cxx > ../$(PRJ)/sw/source/ui/dialog/wordcountdialog.cxx + $(SHELL) ./un-test.sh wordcountdialog.hxx > ../$(PRJ)/sw/source/ui/inc/wordcountdialog.hxx + touch ../$(PRJ)/sw/source/ui/dialog/swdlgfact.cxx + # FIXME: broken setup + ln -sf ../inc/wordcountdialog.hxx ../$(PRJ)/sw/source/ui/dialog/wordcountdialog.hxx + +.ELSE # ENABLE_LAYOUT != TRUE +all .PHONY: +.ENDIF # ENABLE_LAYOUT != TRUE |