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 28 29# Builds the SpreadSheet examples of the Developers Guide. 30 31PRJ = ..$/.. 32PRJNAME = cli_ure 33TARGET := test_climaker 34PACKAGE = cliversion 35 36.INCLUDE: settings.mk 37.INCLUDE : $(PRJ)$/util$/makefile.pmk 38 39#.IF "$(BUILD_FOR_CLI)" == "" 40 41.IF "$(debug)" != "" 42CSCFLAGS += -checked+ -define:DEBUG -define:TRACE -debug+ 43.ELSE 44CSCFLAGS += -optimize+ 45.ENDIF 46 47 48EXETARGET2=$(BIN)$/runtests.exe 49 50.IF "$(name)" != "" 51TESTLIB=$(BIN)$/$(name) 52.ELSE 53TESTLIB=$(BIN)$/version_current.dll 54.ENDIF 55VERSIONLIBS=version_libs 56 57CLI_URE = $(SOLARBINDIR)$/cli_ure.dll 58CLI_URETYPES = $(SOLARBINDIR)$/cli_uretypes.dll 59CLI_BASETYPES = $(SOLARBINDIR)$/cli_basetypes.dll 60CLI_CPPUHELPER = $(SOLARBINDIR)$/cli_cppuhelper.dll 61CLI_OOOTYPES = $(SOLARBINDIR)$/cli_oootypes.dll 62 63 64.INCLUDE: target.mk 65 66.IF "$(BUILD_FOR_CLI)" == "" 67ALLTAR: 68 69.ELSE 70ALLTAR: \ 71 $(EXETARGET2) \ 72 $(TESTLIB) \ 73 $(MISC)$/copyassemblies.done \ 74 COPYVERSIONLIBS \ 75 RUNINSTRUCTIONS 76 77.ENDIF 78 79 80COPYVERSIONLIBS: 81 -$(GNUCOPY) $(VERSIONLIBS)$/* $(BIN) 82 83 84$(MISC)$/copyassemblies.done .ERRREMOVE: 85 $(GNUCOPY) $(CLI_CPPUHELPER) $(BIN)$/$(CLI_CPPUHELPER:f) 86 $(GNUCOPY) $(CLI_BASETYPES) $(BIN)$/$(CLI_BASETYPES:f) 87 $(GNUCOPY) $(CLI_URETYPES) $(BIN)$/$(CLI_URETYPES:f) 88 $(GNUCOPY) $(CLI_URE) $(BIN)$/$(CLI_URE:f) 89 $(GNUCOPY) $(CLI_OOOTYPES) $(BIN)$/$(CLI_OOOTYPES:f) 90 $(TOUCH) $@ 91 92CSFILES2 = runtests.cs 93 94.IF "$(CCNUMVER)" >= "001399999999" 95CSCPLATFORMX86 = -platform:x86 96.ELSE 97CSCPLATFORMX86 = 98.ENDIF 99 100$(EXETARGET2): $(CSFILES2) 101 $(CSC) $(CSCFLAGS) -target:exe -out:$(EXETARGET2) $(CSCPLATFORMX86)\ 102 $(CSFILES2) 103 104CSFILESLIB = version.cs 105$(TESTLIB): $(CSFILESLIB) $(SOLARBINDIR)$/cliureversion.mk 106 $(CSC) $(CSCFLAGS) -target:library -out:$(TESTLIB) \ 107 -reference:$(SOLARBINDIR)$/cli_ure.dll \ 108 -reference:$(SOLARBINDIR)$/cli_uretypes.dll \ 109 -reference:$(SOLARBINDIR)$/cli_basetypes.dll \ 110 -reference:$(SOLARBINDIR)$/cli_cppuhelper.dll \ 111 -reference:$(SOLARBINDIR)$/cli_oootypes.dll \ 112 $(CSFILESLIB) 113 114 115 116RUNINSTRUCTIONS : 117 @echo . 118 @echo ########################### N O T E ###################################### 119 @echo . 120 @echo To run the test go to qa\cliversioning, run dmake and follow instructions. 121 @echo . 122 @echo Or install an office with full system integration and run $(BIN)$/runtests.exe 123 @echo in a console withouth build environment. 124 @echo . 125 @echo Or install an office with setup /a. Expand PATH with the bin folder of the URE. 126 @echo Set UNO_PATH=system_path_to_program_folder 127 @echo This must be the program folder of the brand layer. 128 @echo For example, c:\staroffice\Sun\staroffice 9\program 129 @echo Run runtests.exe. 130 @echo . 131 @echo To build a test library with run. 132 @echo 133 @echo dmake name=version_10_10_10.dll 134 @echo 135 @echo The name must always start with 'version_'. 136 @echo ########################### N O T E ###################################### 137 @echo . 138 @echo . 139 140 141 142#.ENDIF 143