xref: /aoo42x/main/forms/qa/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ = ..
29TARGET  = FormIntegrationTest
30PRJNAME = forms
31
32# --- Settings -----------------------------------------------------
33.INCLUDE: settings.mk
34
35#----- compile .java files -----------------------------------------
36
37JARFILES        = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar ConnectivityTools.jar
38JAVAFILES       :=  $(shell @$(FIND) org -name "*.java") \
39                    $(shell @$(FIND) integration -name "*.java")
40
41#----- make a jar from compiled files ------------------------------
42
43JARTARGET       = $(TARGET).jar
44
45# --- Runner Settings ----------------------------------------------
46
47# classpath and argument list
48RUNNER_CLASSPATH = -cp "$(CLASSPATH)$(PATH_SEPERATOR)$(SOLARBINDIR)$/OOoRunner.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/ConnectivityTools.jar"
49RUNNER_ARGS = org.openoffice.Runner -TestBase java_complex
50
51# --- Targets ------------------------------------------------------
52
53.IF "$(depend)" == ""
54ALL :   ALLTAR
55    @echo -----------------------------------------------------
56    @echo - do a 'dmake show_targets' to show available targets
57    @echo -----------------------------------------------------
58.ELSE
59ALL: 	ALLDEP
60.ENDIF
61
62.INCLUDE :  target.mk
63
64show_targets: $(CLASSDIR)$/$(JARTARGET)
65    +@$(AUGMENT_LIBRARY_PATH) java $(RUNNER_CLASSPATH) complexlib.ShowTargets $(foreach,i,$(JAVAFILES) $(i:s/.\$///:s/.java//))
66
67run: $(CLASSDIR)$/$(JARTARGET)
68    +$(COPY) integration$/forms$/*.props $(CLASSDIR) && $(AUGMENT_LIBRARY_PATH) java $(RUNNER_CLASSPATH) $(RUNNER_ARGS) -sce forms_all.sce
69
70run_%: $(CLASSDIR)$/$(JARTARGET)
71    +$(COPY) integration$/forms$/*.props $(CLASSDIR) && $(AUGMENT_LIBRARY_PATH) java $(RUNNER_CLASSPATH) $(RUNNER_ARGS) -o integration.$(PRJNAME).$(@:s/run_//)
72