Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / cli_ure / qa / climaker / makefile.mk
blobb979a04861afcd3bbf57dc56525443f1394e9226
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 .
19 PRJ := ..$/..
20 PRJNAME := cli_ure
21 TARGET := test_climaker
22 PACKAGE = climaker
24 #we use the climaker which is build by this project
25 CLIMAKER*=$(WRAPCMD) $(BIN)$/climaker
26 .INCLUDE: settings.mk
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
41 JARCOMPRESS = TRUE
45 CSCFLAGS = -incr
46 .IF "$(debug)" != ""
47 CSCFLAGS += -checked+ -define:DEBUG -define:TRACE -debug+
48 .ELSE
49 CSCFLAGS += -optimize+
50 .ENDIF
53 OUTDIR=$(BIN)$/qa$/climaker
54 EXETARGET=$(OUTDIR)$/test_climaker.exe
56 ALLTAR: $(EXETARGET)
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 \
72 $(CSFILES)
76 #-----------------------------------------------------------------------------
77 CLIMAKERFLAGS =
78 .IF "$(debug)" != ""
79 CLIMAKERFLAGS += --verbose
80 .ENDIF
85 $(OUTDIR)$/types.urd: types.idl
86 - $(MKDIR) $(OUTDIR)
87 $(IDLC) -O$(OUTDIR) -I$(SOLARIDLDIR) -cid -we $<
89 $(OUTDIR)$/types.rdb: $(OUTDIR)$/types.urd
90 - rm $@
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 \
97 $(OUTDIR)$/types.rdb
101 .IF "$(depend)" == ""
102 ALL: ALLTAR
103 .ELSE
104 ALL: ALLDEP
105 .ENDIF
107 .INCLUDE: target.mk
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 ------------------------------------------------------
123 RUN:
124 java -cp $(CLASSPATH) -Dcli_ure_test=$(EXETARGET) $(CT_APP) $(CT_NOOFFICE) $(CT_TESTBASE) $(CT_TEST)
126 run: RUN