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
24PRJ = ..$/..
25TARGET  = EmbeddingUnitTest
26PRJNAME = embeddedobj
27PACKAGE = complex$/embedding
28
29# --- Settings -----------------------------------------------------
30.INCLUDE: settings.mk
31
32
33#----- compile .java files -----------------------------------------
34
35JARFILES        = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
36
37JAVAFILES       =\
38				EmbeddingUnitTest.java\
39				EmbeddingTest.java\
40				TestHelper.java\
41				Test01.java
42
43JAVACLASSFILES	= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
44
45#----- make a jar from compiled files ------------------------------
46
47MAXLINELENGTH = 100000
48
49JARCLASSDIRS    = $(PACKAGE)
50JARTARGET       = $(TARGET).jar
51JARCOMPRESS 	= TRUE
52
53# --- Parameters for the test --------------------------------------
54
55# start an office if the parameter is set for the makefile
56.IF "$(OFFICE)" == ""
57CT_APPEXECCOMMAND =
58.ELSE
59CT_APPEXECCOMMAND = -AppExecutionCommand "$(OFFICE)$/soffice -accept=socket,host=localhost,port=8100;urp;"
60.ENDIF
61
62# test base is java complex
63CT_TESTBASE = -TestBase java_complex
64
65# test looks something like the.full.package.TestName
66CT_TEST     = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
67
68# start the runner application
69CT_APP      = org.openoffice.Runner
70
71# --- Targets ------------------------------------------------------
72
73.INCLUDE: target.mk
74
75RUN: run
76
77run:
78    java -cp $(CLASSPATH) $(CT_APP) $(CT_TESTBASE) $(CT_APPEXECCOMMAND) $(CT_TEST)
79
80
81