xref: /aoo4110/main/sfx2/qa/complex/sfx2/makefile.mk (revision b1cdbd2c)
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
24.IF "$(OOO_JUNIT_JAR)" == ""
25nothing .PHONY:
26    @echo -----------------------------------------------------
27    @echo - JUnit not available, not building anything
28    @echo -----------------------------------------------------
29.ELSE   # IF "$(OOO_JUNIT_JAR)" != ""
30
31PRJ = ../../..
32PRJNAME = sfx2
33TARGET = qa_complex
34PACKAGE = complex/sfx2
35
36# --- Settings -----------------------------------------------------
37.INCLUDE: settings.mk
38
39#----- compile .java files -----------------------------------------
40
41JARFILES        = OOoRunnerLight.jar ridl.jar test.jar test-tools.jar unoil.jar
42EXTRAJARFILES   = $(OOO_JUNIT_JAR)
43JAVAFILES       = $(shell @$(FIND) . -name "*.java") \
44
45#----- create a jar from compiled files ----------------------------
46
47JARTARGET       = $(TARGET).jar
48
49#----- JUnit tests class -------------------------------------------
50
51JAVATESTFILES = \
52    DocumentInfo.java \
53    DocumentProperties.java \
54    StandaloneDocumentInfo.java \
55    DocumentMetadataAccess.java \
56    UndoManager.java \
57
58# disabled: #i115674#
59#    GlobalEventBroadcaster.java \
60
61# --- Targets ------------------------------------------------------
62
63.INCLUDE: target.mk
64
65ALL :   ALLTAR
66
67# --- subsequent tests ---------------------------------------------
68
69.IF "$(OOO_SUBSEQUENT_TESTS)" != ""
70
71.INCLUDE: installationtest.mk
72
73ALLTAR : javatest
74
75    # Sample how to debug
76    # JAVAIFLAGS=-Xdebug  -Xrunjdwp:transport=dt_socket,server=y,address=9003,suspend=y
77
78.END    # "$(OOO_SUBSEQUENT_TESTS)" == ""
79
80.END    # ELSE "$(OOO_JUNIT_JAR)" != ""
81