Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / testtools / source / cliversioning / makefile.mk
blobfc59d14113a51d1aa5a97f5ce1c82f8715989a71
1 #*************************************************************************
2 #
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
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.
30 PRJ = ..$/..
31 PRJNAME = cli_ure
32 TARGET := test_climaker
33 PACKAGE = cliversion
35 .INCLUDE: settings.mk
37 .IF "$(CROSS_COMPILING)"=="YES"
39 all:
40 # nothing
42 .ENDIF
44 .INCLUDE : $(PRJ)$/util$/makefile.pmk
46 .IF "$(debug)" != ""
47 CSCFLAGS += -checked+ -define:DEBUG -define:TRACE -debug+
48 .ELSE
49 CSCFLAGS += -optimize+
50 .ENDIF
53 EXETARGET2=$(BIN)$/runtests.exe
55 .IF "$(name)" != ""
56 TESTLIB=$(BIN)$/$(name)
57 .ELSE
58 TESTLIB=$(BIN)$/version_current.dll
59 .ENDIF
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
69 .INCLUDE: target.mk
71 .IF "$(BUILD_FOR_CLI)" == ""
72 ALLTAR:
74 .ELSE
75 ALLTAR: \
76 $(EXETARGET2) \
77 $(TESTLIB) \
78 $(MISC)$/copyassemblies.done \
79 COPYVERSIONLIBS \
80 RUNINSTRUCTIONS
82 .ENDIF
85 COPYVERSIONLIBS:
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)
95 $(TOUCH) $@
97 CSFILES2 = runtests.cs
99 .IF "$(CCNUMVER)" >= "001399999999"
100 CSCPLATFORMX86 = -platform:x86
101 .ELSE
102 CSCPLATFORMX86 =
103 .ENDIF
105 $(EXETARGET2): $(CSFILES2)
106 $(CSC) $(CSCFLAGS) -target:exe -out:$(EXETARGET2) $(CSCPLATFORMX86)\
107 $(CSFILES2)
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 \
117 $(CSFILESLIB)
121 RUNINSTRUCTIONS :
122 @echo .
123 @echo ########################### N O T E ######################################
124 @echo .
125 @echo To run the test go to qa\cliversioning, run dmake and follow instructions.
126 @echo .
127 @echo Or install an office with full system integration and run $(BIN)$/runtests.exe
128 @echo in a console withouth build environment.
129 @echo .
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.
135 @echo .
136 @echo To build a test library with run.
137 @echo
138 @echo dmake name=version_10_10_10.dll
139 @echo
140 @echo The name must always start with 'version_'.
141 @echo ########################### N O T E ######################################
142 @echo .
143 @echo .