1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.8.8.1 $
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 #*************************************************************************
34 TARGET
:= test_climaker
37 #we use the climaker which is build by this project
38 CLIMAKER
*=$(WRAPCMD
) $(BIN
)$/climaker
42 #----- compile .java files -----------------------------------------
44 JARFILES
= sandbox.jar ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
45 JAVAFILES
= ClimakerTestCase.java
46 JAVACLASSFILES
= $(foreach,i
,$(JAVAFILES
) $(CLASSDIR
)$/$(PACKAGE
)$/$(i
:b
).class
)
48 #----- make a jar from compiled files ------------------------------
50 MAXLINELENGTH
= 100000
52 JARCLASSDIRS
= $(PACKAGE
)
53 JARTARGET
= $(TARGET
).jar
60 CSCFLAGS
+= -checked
+ -define:DEBUG
-define:TRACE
-debug
+
62 CSCFLAGS
+= -optimize
+
66 OUTDIR
=$(BIN
)$/qa
$/climaker
67 EXETARGET
=$(OUTDIR
)$/test_climaker.exe
71 CSFILES
= climaker.cs testobjects.cs
74 $(EXETARGET
): $(CSFILES
) $(OUTDIR
)$/cli_test_types.dll
75 $(GNUCOPY
) -p
$(BIN
)$/cli_cppuhelper.dll
$(OUTDIR
)$/cli_cppuhelper.dll
76 $(GNUCOPY
) -p
$(BIN
)$/cli_uretypes.dll
$(OUTDIR
)$/cli_uretypes.dll
77 $(GNUCOPY
) -p
$(BIN
)$/cli_basetypes.dll
$(OUTDIR
)$/cli_basetypes.dll
78 $(GNUCOPY
) -p
$(BIN
)$/cli_ure.dll
$(OUTDIR
)$/cli_ure.dll
79 $(GNUCOPY
) -p
$(BIN
)$/climaker.exe
$(OUTDIR
)
80 $(CSC
) $(CSCFLAGS
) -target
:exe
-out
:$(EXETARGET
) \
81 -reference
:$(BIN
)$/cli_ure.dll \
82 -reference
:$(BIN
)$/cli_uretypes.dll \
83 -reference
:$(BIN
)$/cli_basetypes.dll \
84 -reference
:$(OUTDIR
)$/cli_test_types.dll \
89 #-----------------------------------------------------------------------------
92 CLIMAKERFLAGS
+= --verbose
98 $(OUTDIR
)$/types.urd
: types.idl
100 $(IDLC
) -O
$(OUTDIR
) -I
$(SOLARIDLDIR
) -cid
-we
$<
102 $(OUTDIR
)$/types.rdb
: $(OUTDIR
)$/types.urd
104 $(REGMERGE
) $@
/UCR
$<
106 $(OUTDIR
)$/cli_test_types.dll
: $(OUTDIR
)$/types.rdb
$(BIN
)$/climaker.exe
$(BIN
)$/cli_uretypes.dll
107 $(CLIMAKER
) $(CLIMAKERFLAGS
) --out
$@ \
108 -r
$(BIN
)$/cli_uretypes.dll \
109 -X
$(SOLARBINDIR
)$/types.rdb \
114 .IF
"$(depend)" == ""
122 # --- Parameters for the test --------------------------------------
124 # test base is java complex
125 CT_TESTBASE
= -TestBase java_complex
127 # test looks something like the.full.package.TestName
128 CT_TEST
= -o
$(PACKAGE
:s\
$/\.\
).
$(JAVAFILES
:b
)
130 # start the runner application
131 CT_APP
= org.openoffice.Runner
133 CT_NOOFFICE
= -NoOffice
134 # --- Targets ------------------------------------------------------
137 java
-cp
$(CLASSPATH
) -Dcli_ure_test
=$(EXETARGET
) $(CT_APP
) $(CT_NOOFFICE
) $(CT_TESTBASE
) $(CT_TEST
)