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.
23 TARGET
:= test_climaker
28 .IF
"$(CROSS_COMPILING)"=="YES"
35 .INCLUDE
: $(PRJ
)$/util
$/makefile.pmk
38 CSCFLAGS
+= -checked
+ -define:DEBUG
-define:TRACE
-debug
+
40 CSCFLAGS
+= -optimize
+
44 EXETARGET2
=$(BIN
)$/runtests.exe
47 TESTLIB
=$(BIN
)$/$(name
)
49 TESTLIB
=$(BIN
)$/version_current.dll
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
62 .IF
"$(BUILD_FOR_CLI)" == ""
69 $(MISC
)$/copyassemblies.done \
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
)
88 CSFILES2
= runtests.cs
90 .IF
"$(CCNUMVER)" >= "001399999999"
91 CSCPLATFORMX86
= -platform
:x86
96 $(EXETARGET2
): $(CSFILES2
)
97 $(CSC
) $(CSCFLAGS
) -target
:exe
-out
:$(EXETARGET2
) $(CSCPLATFORMX86
)\
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 \
114 @echo
########################### N O T E ######################################
116 @echo To run the
test go to qa\cliversioning
, run dmake and follow instructions.
118 @echo Or
install an office with full system integration and run
$(BIN
)$/runtests.exe
119 @echo in a console without build environment.
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.
127 @echo To build a
test library with run.
129 @echo dmake name
=version_10_10_10.dll
131 @echo The name must always start with
'version_'.
132 @echo
########################### N O T E ######################################