2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 TARGET
:= test_climaker
24 #we use the climaker which is build by this project
25 CLIMAKER
*=$(WRAPCMD
) $(BIN
)$/climaker
29 #----- compile .java files -----------------------------------------
31 JARFILES
= ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
32 JAVAFILES
= ClimakerTestCase.java
33 JAVACLASSFILES
= $(foreach,i
,$(JAVAFILES
) $(CLASSDIR
)$/$(PACKAGE
)$/$(i
:b
).class
)
35 #----- make a jar from compiled files ------------------------------
37 MAXLINELENGTH
= 100000
39 JARCLASSDIRS
= $(PACKAGE
)
40 JARTARGET
= $(TARGET
).jar
47 CSCFLAGS
+= -checked
+ -define:DEBUG
-define:TRACE
-debug
+
49 CSCFLAGS
+= -optimize
+
53 OUTDIR
=$(BIN
)$/qa
$/climaker
54 EXETARGET
=$(OUTDIR
)$/test_climaker.exe
58 CSFILES
= climaker.cs testobjects.cs
61 $(EXETARGET
): $(CSFILES
) $(OUTDIR
)$/cli_test_types.dll
62 $(GNUCOPY
) -p
$(BIN
)$/cli_cppuhelper.dll
$(OUTDIR
)$/cli_cppuhelper.dll
63 $(GNUCOPY
) -p
$(BIN
)$/cli_uretypes.dll
$(OUTDIR
)$/cli_uretypes.dll
64 $(GNUCOPY
) -p
$(BIN
)$/cli_basetypes.dll
$(OUTDIR
)$/cli_basetypes.dll
65 $(GNUCOPY
) -p
$(BIN
)$/cli_ure.dll
$(OUTDIR
)$/cli_ure.dll
66 $(GNUCOPY
) -p
$(BIN
)$/climaker.exe
$(OUTDIR
)
67 $(CSC
) $(CSCFLAGS
) -target
:exe
-out
:$(EXETARGET
) \
68 -reference
:$(BIN
)$/cli_ure.dll \
69 -reference
:$(BIN
)$/cli_uretypes.dll \
70 -reference
:$(BIN
)$/cli_basetypes.dll \
71 -reference
:$(OUTDIR
)$/cli_test_types.dll \
76 #-----------------------------------------------------------------------------
79 CLIMAKERFLAGS
+= --verbose
85 $(OUTDIR
)$/types.urd
: types.idl
87 $(IDLC
) -O
$(OUTDIR
) -I
$(SOLARIDLDIR
) -cid
-we
$<
89 $(OUTDIR
)$/types.rdb
: $(OUTDIR
)$/types.urd
91 $(REGMERGE
) $@
/UCR
$<
93 $(OUTDIR
)$/cli_test_types.dll
: $(OUTDIR
)$/types.rdb
$(BIN
)$/climaker.exe
$(BIN
)$/cli_uretypes.dll
94 $(CLIMAKER
) $(CLIMAKERFLAGS
) --out
$@ \
95 -r
$(BIN
)$/cli_uretypes.dll \
96 -X
$(SOLARBINDIR
)$/types.rdb \
101 .IF
"$(depend)" == ""
109 # --- Parameters for the test --------------------------------------
111 # test base is java complex
112 CT_TESTBASE
= -TestBase java_complex
114 # test looks something like the.full.package.TestName
115 CT_TEST
= -o
$(PACKAGE
:s\
$/\.\
).
$(JAVAFILES
:b
)
117 # start the runner application
118 CT_APP
= org.openoffice.Runner
120 CT_NOOFFICE
= -NoOffice
121 # --- Targets ------------------------------------------------------
124 java
-cp
$(CLASSPATH
) -Dcli_ure_test
=$(EXETARGET
) $(CT_APP
) $(CT_NOOFFICE
) $(CT_TESTBASE
) $(CT_TEST
)