1*2407af08SAndrew Rist#**************************************************************
2*2407af08SAndrew Rist#
3*2407af08SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*2407af08SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*2407af08SAndrew Rist#  distributed with this work for additional information
6*2407af08SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*2407af08SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*2407af08SAndrew Rist#  "License"); you may not use this file except in compliance
9*2407af08SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*2407af08SAndrew Rist#
11*2407af08SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*2407af08SAndrew Rist#
13*2407af08SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*2407af08SAndrew Rist#  software distributed under the License is distributed on an
15*2407af08SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2407af08SAndrew Rist#  KIND, either express or implied.  See the License for the
17*2407af08SAndrew Rist#  specific language governing permissions and limitations
18*2407af08SAndrew Rist#  under the License.
19*2407af08SAndrew Rist#
20*2407af08SAndrew Rist#**************************************************************
21*2407af08SAndrew Rist
22*2407af08SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir
25cdf0e10cSrcweir# Builds the SpreadSheet examples of the Developers Guide.
26cdf0e10cSrcweir
27cdf0e10cSrcweirPRJ = ..$/..
28cdf0e10cSrcweirPRJNAME = cli_ure
29cdf0e10cSrcweirTARGET := test_climaker
30cdf0e10cSrcweirPACKAGE = cliversion
31cdf0e10cSrcweir
32cdf0e10cSrcweir.INCLUDE: settings.mk
33cdf0e10cSrcweir.INCLUDE : $(PRJ)$/util$/makefile.pmk
34cdf0e10cSrcweir
35cdf0e10cSrcweir#.IF "$(BUILD_FOR_CLI)" == ""
36cdf0e10cSrcweir
37cdf0e10cSrcweir.IF "$(debug)" != ""
38cdf0e10cSrcweirCSCFLAGS += -checked+ -define:DEBUG -define:TRACE -debug+
39cdf0e10cSrcweir.ELSE
40cdf0e10cSrcweirCSCFLAGS += -optimize+
41cdf0e10cSrcweir.ENDIF
42cdf0e10cSrcweir
43cdf0e10cSrcweir
44cdf0e10cSrcweirEXETARGET2=$(BIN)$/runtests.exe
45cdf0e10cSrcweir
46cdf0e10cSrcweir.IF "$(name)" != ""
47cdf0e10cSrcweirTESTLIB=$(BIN)$/$(name)
48cdf0e10cSrcweir.ELSE
49cdf0e10cSrcweirTESTLIB=$(BIN)$/version_current.dll
50cdf0e10cSrcweir.ENDIF
51cdf0e10cSrcweirVERSIONLIBS=version_libs
52cdf0e10cSrcweir
53cdf0e10cSrcweirCLI_URE = $(SOLARBINDIR)$/cli_ure.dll
54cdf0e10cSrcweirCLI_URETYPES = $(SOLARBINDIR)$/cli_uretypes.dll
55cdf0e10cSrcweirCLI_BASETYPES = $(SOLARBINDIR)$/cli_basetypes.dll
56cdf0e10cSrcweirCLI_CPPUHELPER = $(SOLARBINDIR)$/cli_cppuhelper.dll
57cdf0e10cSrcweirCLI_OOOTYPES = $(SOLARBINDIR)$/cli_oootypes.dll
58cdf0e10cSrcweir
59cdf0e10cSrcweir
60cdf0e10cSrcweir.INCLUDE: target.mk
61cdf0e10cSrcweir
62cdf0e10cSrcweir.IF "$(BUILD_FOR_CLI)" == ""
63cdf0e10cSrcweirALLTAR:
64cdf0e10cSrcweir
65cdf0e10cSrcweir.ELSE
66cdf0e10cSrcweirALLTAR: \
67cdf0e10cSrcweir	$(EXETARGET2) \
68cdf0e10cSrcweir	$(TESTLIB) \
69cdf0e10cSrcweir	$(MISC)$/copyassemblies.done \
70cdf0e10cSrcweir	COPYVERSIONLIBS \
71cdf0e10cSrcweir    RUNINSTRUCTIONS
72cdf0e10cSrcweir
73cdf0e10cSrcweir.ENDIF
74cdf0e10cSrcweir
75cdf0e10cSrcweir
76cdf0e10cSrcweirCOPYVERSIONLIBS:
77cdf0e10cSrcweir		-$(GNUCOPY) $(VERSIONLIBS)$/* $(BIN)
78cdf0e10cSrcweir
79cdf0e10cSrcweir
80cdf0e10cSrcweir$(MISC)$/copyassemblies.done .ERRREMOVE:
81cdf0e10cSrcweir    $(GNUCOPY) $(CLI_CPPUHELPER) $(BIN)$/$(CLI_CPPUHELPER:f)
82cdf0e10cSrcweir    $(GNUCOPY) $(CLI_BASETYPES) $(BIN)$/$(CLI_BASETYPES:f)
83cdf0e10cSrcweir    $(GNUCOPY) $(CLI_URETYPES) $(BIN)$/$(CLI_URETYPES:f)
84cdf0e10cSrcweir    $(GNUCOPY) $(CLI_URE) $(BIN)$/$(CLI_URE:f)
85cdf0e10cSrcweir    $(GNUCOPY) $(CLI_OOOTYPES) $(BIN)$/$(CLI_OOOTYPES:f)
86cdf0e10cSrcweir    $(TOUCH) $@
87cdf0e10cSrcweir
88cdf0e10cSrcweirCSFILES2 = runtests.cs
89cdf0e10cSrcweir
90cdf0e10cSrcweir.IF "$(CCNUMVER)" >= "001399999999"
91cdf0e10cSrcweirCSCPLATFORMX86 = -platform:x86
92cdf0e10cSrcweir.ELSE
93cdf0e10cSrcweirCSCPLATFORMX86 =
94cdf0e10cSrcweir.ENDIF
95cdf0e10cSrcweir
96cdf0e10cSrcweir$(EXETARGET2): $(CSFILES2)
97cdf0e10cSrcweir	$(CSC) $(CSCFLAGS) -target:exe -out:$(EXETARGET2) $(CSCPLATFORMX86)\
98cdf0e10cSrcweir		$(CSFILES2)
99cdf0e10cSrcweir
100cdf0e10cSrcweirCSFILESLIB = version.cs
101cdf0e10cSrcweir$(TESTLIB): $(CSFILESLIB) $(SOLARBINDIR)$/cliureversion.mk
102cdf0e10cSrcweir	$(CSC) $(CSCFLAGS) -target:library -out:$(TESTLIB) \
103cdf0e10cSrcweir		-reference:$(SOLARBINDIR)$/cli_ure.dll \
104cdf0e10cSrcweir 		-reference:$(SOLARBINDIR)$/cli_uretypes.dll \
105cdf0e10cSrcweir 		-reference:$(SOLARBINDIR)$/cli_basetypes.dll \
106cdf0e10cSrcweir		-reference:$(SOLARBINDIR)$/cli_cppuhelper.dll \
107cdf0e10cSrcweir		-reference:$(SOLARBINDIR)$/cli_oootypes.dll \
108cdf0e10cSrcweir		$(CSFILESLIB)
109cdf0e10cSrcweir
110cdf0e10cSrcweir
111cdf0e10cSrcweir
112cdf0e10cSrcweirRUNINSTRUCTIONS :
113cdf0e10cSrcweir    @echo .
114cdf0e10cSrcweir    @echo ###########################   N O T E  ######################################
115cdf0e10cSrcweir    @echo .
116cdf0e10cSrcweir    @echo To run the test go to qa\cliversioning, run dmake and follow instructions.
117cdf0e10cSrcweir    @echo .
118cdf0e10cSrcweir	@echo Or install an office with full system integration and run $(BIN)$/runtests.exe
119cdf0e10cSrcweir	@echo in a console withouth build environment.
120cdf0e10cSrcweir	@echo .
121cdf0e10cSrcweir	@echo Or install an office with setup /a. Expand PATH with the bin folder of the URE.
122cdf0e10cSrcweir	@echo Set UNO_PATH=system_path_to_program_folder
123cdf0e10cSrcweir	@echo This must be the program folder of the brand layer.
124cdf0e10cSrcweir	@echo For example, c:\staroffice\Sun\staroffice 9\program
125cdf0e10cSrcweir	@echo Run runtests.exe.
126cdf0e10cSrcweir    @echo .
127cdf0e10cSrcweir    @echo To build a test library with run.
128cdf0e10cSrcweir    @echo
129cdf0e10cSrcweir    @echo dmake name=version_10_10_10.dll
130cdf0e10cSrcweir    @echo
131cdf0e10cSrcweir    @echo  The name must always start with 'version_'.
132cdf0e10cSrcweir    @echo ###########################   N O T E  ######################################
133cdf0e10cSrcweir    @echo .
134cdf0e10cSrcweir    @echo .
135cdf0e10cSrcweir
136cdf0e10cSrcweir
137cdf0e10cSrcweir
138cdf0e10cSrcweir#.ENDIF
139