1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 # ************************************************************************/
28 # Builds the SpreadSheet examples of the Developers Guide.
32 TARGET
:= test_climaker
37 .IF
"$(CROSS_COMPILING)"=="YES"
44 .INCLUDE
: $(PRJ
)$/util
$/makefile.pmk
47 CSCFLAGS
+= -checked
+ -define:DEBUG
-define:TRACE
-debug
+
49 CSCFLAGS
+= -optimize
+
53 EXETARGET2
=$(BIN
)$/runtests.exe
56 TESTLIB
=$(BIN
)$/$(name
)
58 TESTLIB
=$(BIN
)$/version_current.dll
60 VERSIONLIBS
=version_libs
62 CLI_URE
= $(SOLARBINDIR
)$/cli_ure.dll
63 CLI_URETYPES
= $(SOLARBINDIR
)$/cli_uretypes.dll
64 CLI_BASETYPES
= $(SOLARBINDIR
)$/cli_basetypes.dll
65 CLI_CPPUHELPER
= $(SOLARBINDIR
)$/cli_cppuhelper.dll
66 CLI_OOOTYPES
= $(SOLARBINDIR
)$/cli_oootypes.dll
71 .IF
"$(BUILD_FOR_CLI)" == ""
78 $(MISC
)$/copyassemblies.done \
86 -$(GNUCOPY
) $(VERSIONLIBS
)$/* $(BIN
)
89 $(MISC
)$/copyassemblies.done .ERRREMOVE
:
90 $(GNUCOPY
) $(CLI_CPPUHELPER
) $(BIN
)$/$(CLI_CPPUHELPER
:f
)
91 $(GNUCOPY
) $(CLI_BASETYPES
) $(BIN
)$/$(CLI_BASETYPES
:f
)
92 $(GNUCOPY
) $(CLI_URETYPES
) $(BIN
)$/$(CLI_URETYPES
:f
)
93 $(GNUCOPY
) $(CLI_URE
) $(BIN
)$/$(CLI_URE
:f
)
94 $(GNUCOPY
) $(CLI_OOOTYPES
) $(BIN
)$/$(CLI_OOOTYPES
:f
)
97 CSFILES2
= runtests.cs
99 .IF
"$(CCNUMVER)" >= "001399999999"
100 CSCPLATFORMX86
= -platform
:x86
105 $(EXETARGET2
): $(CSFILES2
)
106 $(CSC
) $(CSCFLAGS
) -target
:exe
-out
:$(EXETARGET2
) $(CSCPLATFORMX86
)\
109 CSFILESLIB
= version.cs
110 $(TESTLIB
): $(CSFILESLIB
) $(SOLARBINDIR
)$/cliureversion.mk
111 $(CSC
) $(CSCFLAGS
) -target
:library
-out
:$(TESTLIB
) \
112 -reference
:$(SOLARBINDIR
)$/cli_ure.dll \
113 -reference
:$(SOLARBINDIR
)$/cli_uretypes.dll \
114 -reference
:$(SOLARBINDIR
)$/cli_basetypes.dll \
115 -reference
:$(SOLARBINDIR
)$/cli_cppuhelper.dll \
116 -reference
:$(SOLARBINDIR
)$/cli_oootypes.dll \
123 @echo
########################### N O T E ######################################
125 @echo To run the
test go to qa\cliversioning
, run dmake and follow instructions.
127 @echo Or
install an office with full system integration and run
$(BIN
)$/runtests.exe
128 @echo in a console withouth build environment.
130 @echo Or
install an office with setup
/a. Expand PATH with the bin folder of the URE.
131 @echo Set UNO_PATH
=system_path_to_program_folder
132 @echo This must be the program folder of the brand layer.
133 @echo For example
, c
:\staroffice\Sun\staroffice
9\program
134 @echo Run runtests.exe.
136 @echo To build a
test library with run.
138 @echo dmake name
=version_10_10_10.dll
140 @echo The name must always start with
'version_'.
141 @echo
########################### N O T E ######################################