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