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