1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28PRJ := ..$/.. 29PRJNAME := cli_ure 30TARGET := test_climaker 31PACKAGE = climaker 32 33#we use the climaker which is build by this project 34CLIMAKER*=$(WRAPCMD) $(BIN)$/climaker 35.INCLUDE: settings.mk 36 37 38#----- compile .java files ----------------------------------------- 39 40JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar 41JAVAFILES = ClimakerTestCase.java 42JAVACLASSFILES = $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class) 43 44#----- make a jar from compiled files ------------------------------ 45 46MAXLINELENGTH = 100000 47 48JARCLASSDIRS = $(PACKAGE) 49JARTARGET = $(TARGET).jar 50JARCOMPRESS = TRUE 51 52 53 54CSCFLAGS = -incr 55.IF "$(debug)" != "" 56CSCFLAGS += -checked+ -define:DEBUG -define:TRACE -debug+ 57.ELSE 58CSCFLAGS += -optimize+ 59.ENDIF 60 61 62OUTDIR=$(BIN)$/qa$/climaker 63EXETARGET=$(OUTDIR)$/test_climaker.exe 64 65ALLTAR: $(EXETARGET) 66 67CSFILES = climaker.cs testobjects.cs 68 69 70$(EXETARGET): $(CSFILES) $(OUTDIR)$/cli_test_types.dll 71 $(GNUCOPY) -p $(BIN)$/cli_cppuhelper.dll $(OUTDIR)$/cli_cppuhelper.dll 72 $(GNUCOPY) -p $(BIN)$/cli_uretypes.dll $(OUTDIR)$/cli_uretypes.dll 73 $(GNUCOPY) -p $(BIN)$/cli_basetypes.dll $(OUTDIR)$/cli_basetypes.dll 74 $(GNUCOPY) -p $(BIN)$/cli_ure.dll $(OUTDIR)$/cli_ure.dll 75 $(GNUCOPY) -p $(BIN)$/climaker.exe $(OUTDIR) 76 $(CSC) $(CSCFLAGS) -target:exe -out:$(EXETARGET) \ 77 -reference:$(BIN)$/cli_ure.dll \ 78 -reference:$(BIN)$/cli_uretypes.dll \ 79 -reference:$(BIN)$/cli_basetypes.dll \ 80 -reference:$(OUTDIR)$/cli_test_types.dll \ 81 $(CSFILES) 82 83 84 85#----------------------------------------------------------------------------- 86CLIMAKERFLAGS = 87.IF "$(debug)" != "" 88CLIMAKERFLAGS += --verbose 89.ENDIF 90 91 92 93 94$(OUTDIR)$/types.urd: types.idl 95 - $(MKDIR) $(OUTDIR) 96 $(IDLC) -O$(OUTDIR) -I$(SOLARIDLDIR) -cid -we $< 97 98$(OUTDIR)$/types.rdb: $(OUTDIR)$/types.urd 99 - rm $@ 100 $(REGMERGE) $@ /UCR $< 101 102$(OUTDIR)$/cli_test_types.dll: $(OUTDIR)$/types.rdb $(BIN)$/climaker.exe $(BIN)$/cli_uretypes.dll 103 $(CLIMAKER) $(CLIMAKERFLAGS) --out $@ \ 104 -r $(BIN)$/cli_uretypes.dll \ 105 -X $(SOLARBINDIR)$/types.rdb \ 106 $(OUTDIR)$/types.rdb 107 108 109 110.IF "$(depend)" == "" 111ALL: ALLTAR 112.ELSE 113ALL: ALLDEP 114.ENDIF 115 116.INCLUDE: target.mk 117 118# --- Parameters for the test -------------------------------------- 119 120# test base is java complex 121CT_TESTBASE = -TestBase java_complex 122 123# test looks something like the.full.package.TestName 124CT_TEST = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b) 125 126# start the runner application 127CT_APP = org.openoffice.Runner 128 129CT_NOOFFICE = -NoOffice 130# --- Targets ------------------------------------------------------ 131 132RUN: 133 java -cp $(CLASSPATH) -Dcli_ure_test=$(EXETARGET) $(CT_APP) $(CT_NOOFFICE) $(CT_TESTBASE) $(CT_TEST) 134 135run: RUN 136