1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir# ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir
29*cdf0e10cSrcweir# Builds the SpreadSheet examples of the Developers Guide.
30*cdf0e10cSrcweir
31*cdf0e10cSrcweirPRJ = ..$/..
32*cdf0e10cSrcweirPRJNAME = cli_ure
33*cdf0e10cSrcweirTARGET := test_climaker
34*cdf0e10cSrcweirPACKAGE = cliversion
35*cdf0e10cSrcweir
36*cdf0e10cSrcweir.INCLUDE: settings.mk
37*cdf0e10cSrcweir.INCLUDE : $(PRJ)$/util$/makefile.pmk
38*cdf0e10cSrcweir
39*cdf0e10cSrcweir#.IF "$(BUILD_FOR_CLI)" == ""
40*cdf0e10cSrcweir
41*cdf0e10cSrcweir.IF "$(debug)" != ""
42*cdf0e10cSrcweirCSCFLAGS += -checked+ -define:DEBUG -define:TRACE -debug+
43*cdf0e10cSrcweir.ELSE
44*cdf0e10cSrcweirCSCFLAGS += -optimize+
45*cdf0e10cSrcweir.ENDIF
46*cdf0e10cSrcweir
47*cdf0e10cSrcweir
48*cdf0e10cSrcweirEXETARGET2=$(BIN)$/runtests.exe
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir.IF "$(name)" != ""
51*cdf0e10cSrcweirTESTLIB=$(BIN)$/$(name)
52*cdf0e10cSrcweir.ELSE
53*cdf0e10cSrcweirTESTLIB=$(BIN)$/version_current.dll
54*cdf0e10cSrcweir.ENDIF
55*cdf0e10cSrcweirVERSIONLIBS=version_libs
56*cdf0e10cSrcweir
57*cdf0e10cSrcweirCLI_URE = $(SOLARBINDIR)$/cli_ure.dll
58*cdf0e10cSrcweirCLI_URETYPES = $(SOLARBINDIR)$/cli_uretypes.dll
59*cdf0e10cSrcweirCLI_BASETYPES = $(SOLARBINDIR)$/cli_basetypes.dll
60*cdf0e10cSrcweirCLI_CPPUHELPER = $(SOLARBINDIR)$/cli_cppuhelper.dll
61*cdf0e10cSrcweirCLI_OOOTYPES = $(SOLARBINDIR)$/cli_oootypes.dll
62*cdf0e10cSrcweir
63*cdf0e10cSrcweir
64*cdf0e10cSrcweir.INCLUDE: target.mk
65*cdf0e10cSrcweir
66*cdf0e10cSrcweir.IF "$(BUILD_FOR_CLI)" == ""
67*cdf0e10cSrcweirALLTAR:
68*cdf0e10cSrcweir
69*cdf0e10cSrcweir.ELSE
70*cdf0e10cSrcweirALLTAR: \
71*cdf0e10cSrcweir	$(EXETARGET2) \
72*cdf0e10cSrcweir	$(TESTLIB) \
73*cdf0e10cSrcweir	$(MISC)$/copyassemblies.done \
74*cdf0e10cSrcweir	COPYVERSIONLIBS \
75*cdf0e10cSrcweir    RUNINSTRUCTIONS
76*cdf0e10cSrcweir
77*cdf0e10cSrcweir.ENDIF
78*cdf0e10cSrcweir
79*cdf0e10cSrcweir
80*cdf0e10cSrcweirCOPYVERSIONLIBS:
81*cdf0e10cSrcweir		-$(GNUCOPY) $(VERSIONLIBS)$/* $(BIN)
82*cdf0e10cSrcweir
83*cdf0e10cSrcweir
84*cdf0e10cSrcweir$(MISC)$/copyassemblies.done .ERRREMOVE:
85*cdf0e10cSrcweir    $(GNUCOPY) $(CLI_CPPUHELPER) $(BIN)$/$(CLI_CPPUHELPER:f)
86*cdf0e10cSrcweir    $(GNUCOPY) $(CLI_BASETYPES) $(BIN)$/$(CLI_BASETYPES:f)
87*cdf0e10cSrcweir    $(GNUCOPY) $(CLI_URETYPES) $(BIN)$/$(CLI_URETYPES:f)
88*cdf0e10cSrcweir    $(GNUCOPY) $(CLI_URE) $(BIN)$/$(CLI_URE:f)
89*cdf0e10cSrcweir    $(GNUCOPY) $(CLI_OOOTYPES) $(BIN)$/$(CLI_OOOTYPES:f)
90*cdf0e10cSrcweir    $(TOUCH) $@
91*cdf0e10cSrcweir
92*cdf0e10cSrcweirCSFILES2 = runtests.cs
93*cdf0e10cSrcweir
94*cdf0e10cSrcweir.IF "$(CCNUMVER)" >= "001399999999"
95*cdf0e10cSrcweirCSCPLATFORMX86 = -platform:x86
96*cdf0e10cSrcweir.ELSE
97*cdf0e10cSrcweirCSCPLATFORMX86 =
98*cdf0e10cSrcweir.ENDIF
99*cdf0e10cSrcweir
100*cdf0e10cSrcweir$(EXETARGET2): $(CSFILES2)
101*cdf0e10cSrcweir	$(CSC) $(CSCFLAGS) -target:exe -out:$(EXETARGET2) $(CSCPLATFORMX86)\
102*cdf0e10cSrcweir		$(CSFILES2)
103*cdf0e10cSrcweir
104*cdf0e10cSrcweirCSFILESLIB = version.cs
105*cdf0e10cSrcweir$(TESTLIB): $(CSFILESLIB) $(SOLARBINDIR)$/cliureversion.mk
106*cdf0e10cSrcweir	$(CSC) $(CSCFLAGS) -target:library -out:$(TESTLIB) \
107*cdf0e10cSrcweir		-reference:$(SOLARBINDIR)$/cli_ure.dll \
108*cdf0e10cSrcweir 		-reference:$(SOLARBINDIR)$/cli_uretypes.dll \
109*cdf0e10cSrcweir 		-reference:$(SOLARBINDIR)$/cli_basetypes.dll \
110*cdf0e10cSrcweir		-reference:$(SOLARBINDIR)$/cli_cppuhelper.dll \
111*cdf0e10cSrcweir		-reference:$(SOLARBINDIR)$/cli_oootypes.dll \
112*cdf0e10cSrcweir		$(CSFILESLIB)
113*cdf0e10cSrcweir
114*cdf0e10cSrcweir
115*cdf0e10cSrcweir
116*cdf0e10cSrcweirRUNINSTRUCTIONS :
117*cdf0e10cSrcweir    @echo .
118*cdf0e10cSrcweir    @echo ###########################   N O T E  ######################################
119*cdf0e10cSrcweir    @echo .
120*cdf0e10cSrcweir    @echo To run the test go to qa\cliversioning, run dmake and follow instructions.
121*cdf0e10cSrcweir    @echo .
122*cdf0e10cSrcweir	@echo Or install an office with full system integration and run $(BIN)$/runtests.exe
123*cdf0e10cSrcweir	@echo in a console withouth build environment.
124*cdf0e10cSrcweir	@echo .
125*cdf0e10cSrcweir	@echo Or install an office with setup /a. Expand PATH with the bin folder of the URE.
126*cdf0e10cSrcweir	@echo Set UNO_PATH=system_path_to_program_folder
127*cdf0e10cSrcweir	@echo This must be the program folder of the brand layer.
128*cdf0e10cSrcweir	@echo For example, c:\staroffice\Sun\staroffice 9\program
129*cdf0e10cSrcweir	@echo Run runtests.exe.
130*cdf0e10cSrcweir    @echo .
131*cdf0e10cSrcweir    @echo To build a test library with run.
132*cdf0e10cSrcweir    @echo
133*cdf0e10cSrcweir    @echo dmake name=version_10_10_10.dll
134*cdf0e10cSrcweir    @echo
135*cdf0e10cSrcweir    @echo  The name must always start with 'version_'.
136*cdf0e10cSrcweir    @echo ###########################   N O T E  ######################################
137*cdf0e10cSrcweir    @echo .
138*cdf0e10cSrcweir    @echo .
139*cdf0e10cSrcweir
140*cdf0e10cSrcweir
141*cdf0e10cSrcweir
142*cdf0e10cSrcweir#.ENDIF
143