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