1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24PRJ := ..$/.. 25PRJNAME := cli_ure 26TARGET := test_climaker 27PACKAGE = climaker 28 29#we use the climaker which is build by this project 30CLIMAKER*=$(WRAPCMD) $(BIN)$/climaker 31.INCLUDE: settings.mk 32 33 34#----- compile .java files ----------------------------------------- 35 36JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar 37JAVAFILES = ClimakerTestCase.java 38JAVACLASSFILES = $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class) 39 40#----- make a jar from compiled files ------------------------------ 41 42MAXLINELENGTH = 100000 43 44JARCLASSDIRS = $(PACKAGE) 45JARTARGET = $(TARGET).jar 46JARCOMPRESS = TRUE 47 48 49 50CSCFLAGS = -incr 51.IF "$(debug)" != "" 52CSCFLAGS += -checked+ -define:DEBUG -define:TRACE -debug+ 53.ELSE 54CSCFLAGS += -optimize+ 55.ENDIF 56 57 58OUTDIR=$(BIN)$/qa$/climaker 59EXETARGET=$(OUTDIR)$/test_climaker.exe 60 61ALLTAR: $(EXETARGET) 62 63CSFILES = climaker.cs testobjects.cs 64 65 66$(EXETARGET): $(CSFILES) $(OUTDIR)$/cli_test_types.dll 67 $(GNUCOPY) -p $(BIN)$/cli_cppuhelper.dll $(OUTDIR)$/cli_cppuhelper.dll 68 $(GNUCOPY) -p $(BIN)$/cli_uretypes.dll $(OUTDIR)$/cli_uretypes.dll 69 $(GNUCOPY) -p $(BIN)$/cli_basetypes.dll $(OUTDIR)$/cli_basetypes.dll 70 $(GNUCOPY) -p $(BIN)$/cli_ure.dll $(OUTDIR)$/cli_ure.dll 71 $(GNUCOPY) -p $(BIN)$/climaker.exe $(OUTDIR) 72 $(CSC) $(CSCFLAGS) -target:exe -out:$(EXETARGET) \ 73 -reference:$(BIN)$/cli_ure.dll \ 74 -reference:$(BIN)$/cli_uretypes.dll \ 75 -reference:$(BIN)$/cli_basetypes.dll \ 76 -reference:$(OUTDIR)$/cli_test_types.dll \ 77 $(CSFILES) 78 79 80 81#----------------------------------------------------------------------------- 82CLIMAKERFLAGS = 83.IF "$(debug)" != "" 84CLIMAKERFLAGS += --verbose 85.ENDIF 86 87 88 89 90$(OUTDIR)$/types.urd: types.idl 91 - $(MKDIR) $(OUTDIR) 92 $(IDLC) -O$(OUTDIR) -I$(SOLARIDLDIR) -cid -we $< 93 94$(OUTDIR)$/types.rdb: $(OUTDIR)$/types.urd 95 - rm $@ 96 $(REGMERGE) $@ /UCR $< 97 98$(OUTDIR)$/cli_test_types.dll: $(OUTDIR)$/types.rdb $(BIN)$/climaker.exe $(BIN)$/cli_uretypes.dll 99 $(CLIMAKER) $(CLIMAKERFLAGS) --out $@ \ 100 -r $(BIN)$/cli_uretypes.dll \ 101 -X $(SOLARBINDIR)$/types.rdb \ 102 $(OUTDIR)$/types.rdb 103 104 105 106.IF "$(depend)" == "" 107ALL: ALLTAR 108.ELSE 109ALL: ALLDEP 110.ENDIF 111 112.INCLUDE: target.mk 113 114# --- Parameters for the test -------------------------------------- 115 116# test base is java complex 117CT_TESTBASE = -TestBase java_complex 118 119# test looks something like the.full.package.TestName 120CT_TEST = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b) 121 122# start the runner application 123CT_APP = org.openoffice.Runner 124 125CT_NOOFFICE = -NoOffice 126# --- Targets ------------------------------------------------------ 127 128RUN: 129 java -cp $(CLASSPATH) -Dcli_ure_test=$(EXETARGET) $(CT_APP) $(CT_NOOFFICE) $(CT_TESTBASE) $(CT_TEST) 130 131run: RUN 132