xref: /trunk/main/cli_ure/qa/climaker/makefile.mk (revision b12c4ec0)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
24nothing .PHONY:
25.ELSE
26
27PRJ := ..$/..
28PRJNAME := cli_ure
29TARGET := test_climaker
30
31.IF "$(OOO_JUNIT_JAR)" != ""
32PACKAGE = climaker
33
34# here store only Files which contain a @Test
35JAVATESTFILES = \
36    ClimakerTestCase.java
37
38# put here all other files
39JAVAFILES = $(JAVATESTFILES)
40
41JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar
42EXTRAJARFILES = $(OOO_JUNIT_JAR)
43
44JAVAIFLAGS =\
45    -Dcli_ure_test=$(EXETARGET)
46
47# Sample how to debug
48# JAVAIFLAGS+=-Xdebug  -Xrunjdwp:transport=dt_socket,server=y,address=9003,suspend=y
49
50.END
51
52.INCLUDE: settings.mk
53.INCLUDE: target.mk
54.INCLUDE: installationtest.mk
55
56ALLTAR : javatest
57
58#------ Specific to this test: -----
59
60#we use the climaker which is build by this project
61CLIMAKER*=$(WRAPCMD) $(BIN)$/climaker
62
63CSCFLAGS = -incr
64.IF "$(debug)" != ""
65CSCFLAGS += -checked+ -define:DEBUG -define:TRACE -debug+
66.ELSE
67CSCFLAGS += -optimize+
68.ENDIF
69
70OUTDIR=$(BIN)$/qa$/climaker
71EXETARGET=$(OUTDIR)$/test_climaker.exe
72
73javatest: $(EXETARGET)
74
75CSFILES = climaker.cs testobjects.cs
76
77$(EXETARGET): $(CSFILES) $(OUTDIR)$/cli_test_types.dll
78	$(GNUCOPY) -p $(BIN)$/cli_cppuhelper.dll $(OUTDIR)$/cli_cppuhelper.dll
79	$(GNUCOPY) -p $(BIN)$/cli_uretypes.dll $(OUTDIR)$/cli_uretypes.dll
80	$(GNUCOPY) -p $(BIN)$/cli_basetypes.dll $(OUTDIR)$/cli_basetypes.dll
81	$(GNUCOPY) -p $(BIN)$/cli_ure.dll $(OUTDIR)$/cli_ure.dll
82	$(GNUCOPY) -p $(BIN)$/climaker.exe $(OUTDIR)
83	$(CSC) $(CSCFLAGS) -target:exe -out:$(EXETARGET) \
84		-reference:$(BIN)$/cli_ure.dll \
85 		-reference:$(BIN)$/cli_uretypes.dll \
86 		-reference:$(BIN)$/cli_basetypes.dll \
87		-reference:$(OUTDIR)$/cli_test_types.dll \
88		$(CSFILES)
89
90CLIMAKERFLAGS =
91.IF "$(debug)" != ""
92CLIMAKERFLAGS += --verbose
93.ENDIF
94
95$(OUTDIR)$/types.urd: types.idl
96    - $(MKDIR) $(OUTDIR)
97    $(IDLC) -O$(OUTDIR) -I$(SOLARIDLDIR) -cid -we $<
98
99$(OUTDIR)$/types.rdb: $(OUTDIR)$/types.urd
100    - rm $@
101    $(REGMERGE) $@ /UCR $<
102
103$(OUTDIR)$/cli_test_types.dll: $(OUTDIR)$/types.rdb $(BIN)$/climaker.exe $(BIN)$/cli_uretypes.dll
104    $(CLIMAKER) $(CLIMAKERFLAGS) --out $@  \
105		-r $(BIN)$/cli_uretypes.dll \
106		-X $(SOLARBINDIR)$/types.rdb \
107		$(OUTDIR)$/types.rdb
108
109
110#-----------------------------------
111
112
113.END
114