xref: /aoo41x/main/extensions/workben/makefile.mk (revision 7871dc3e)
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=..
25
26PRJNAME=extensions
27TARGET=workben
28LIBTARGET=NO
29
30TESTAPP=testpgp
31#TESTAPP=testcomponent
32#TESTAPP=pythontest
33#TESTAPP=pythonautotest
34#TESTAPP=testresource
35#TESTAPP=testframecontrol
36
37.IF "$(TESTAPP)" == "testresource" || "$(TESTAPP)" == "testframecontrol"
38TARGETTYPE=GUI
39.ELSE
40TARGETTYPE=CUI
41.ENDIF
42
43JVM_TARGET=jvmtest
44
45ENABLE_EXCEPTIONS=TRUE
46
47# --- Settings -----------------------------------------------------
48
49.INCLUDE :  settings.mk
50
51UNOUCROUT=$(OUT)$/inc$/$(PRJNAME)$/$(TARGET)
52INCPRE+=$(UNOUCROUT)
53
54# --- Files --------------------------------------------------------
55
56#
57# testpgp.
58#
59.IF "$(TESTAPP)" == "testpgp"
60
61UNOTYPES= \
62	com.sun.star.lang.XMultiServiceFactory \
63	com.sun.star.io.XInputStream \
64	com.sun.star.io.XOutputStream \
65	com.sun.star.pgp.RecipientsEvent \
66	com.sun.star.pgp.SignatureEvent \
67	com.sun.star.pgp.XPGPDecoder \
68	com.sun.star.pgp.XPGPDecoderListener \
69	com.sun.star.pgp.XPGPEncoder \
70	com.sun.star.pgp.XPGPPreferences \
71	com.sun.star.uno.TypeClass \
72	com.sun.star.uno.XInterface \
73	com.sun.star.uno.XWeak
74
75OBJFILES=	$(OBJ)$/testpgp.obj
76
77APP1TARGET=	testpgp
78APP1OBJS=	$(OBJFILES)
79APP1STDLIBS= \
80			$(CPPUHELPERLIB)\
81			$(CPPULIB)		\
82			$(VOSLIB)		\
83			$(SALLIB)
84
85.ENDIF # testpgp
86
87#
88# std testcomponent
89#
90.IF "$(TESTAPP)" == "testcomponent"
91
92OBJFILES=	$(OBJ)$/testcomponent.obj
93
94APP2TARGET = testcomponent
95APP2OBJS   = $(OBJ)$/testcomponent.obj
96APP2STDLIBS = \
97              $(VOSLIB) \
98              $(TOOLSLIB)	\
99              $(SALLIB)
100
101.ENDIF # testcomponent
102
103#
104# test python.
105#
106.IF "$(TESTAPP)" == "phytontest"
107
108OBJFILES=	$(OBJ)$/pythontest.obj
109
110#APP4TARGET=	pythontest
111#APP4OBJS=	$(OBJ)$/pythontest.obj
112#APP4STDLIBS=$(TOOLSLIB)		\
113#			$(VOSLIB)
114
115.ENDIF # phytontest
116
117#
118# python auto test
119#
120.IF "$(TESTAPP)" == "phytonautotest"
121
122OBJFILES=	$(OBJ)$/pythonautotest.obj
123
124#APP5TARGET= pythonautotest
125#APP5OBJS = $(OBJ)$/pythonautotest.obj
126#APP5STDLIBS=$(TOOLSLIB)		\
127#			$(VOSLIB)
128
129.ENDIF # phytonautotest
130
131#
132# testresource.
133#
134.IF "$(TESTAPP)" == "testresource"
135
136OBJFILES=	$(OBJ)$/testresource.obj
137
138SRS2NAME =		testresource
139SRC2FILES=		testresource.src
140RESLIB2SRSFILES= $(SRS)$/testresource.srs
141RESLIB2NAME=	testresource
142
143APP2TARGET=	testresource
144APP2OBJS=	$(OBJ)$/testresource.obj
145APP2STDLIBS=$(TOOLSLIB)		\
146			$(VCLLIB)		\
147			$(SALLIB)
148
149.ENDIF # testresource
150
151#
152# testframecontrol.
153#
154.IF "$(TESTAPP)" == "testframecontrol"
155
156OBJFILES=	$(OBJ)$/testframecontrol.obj
157
158APP3TARGET=	testframecontrol
159APP3OBJS=	$(OBJ)$/testframecontrol.obj
160APP3STDLIBS=$(TOOLSLIB)		\
161			$(VOSLIB)		\
162			$(SVTOOLLIB)	\
163			$(VCLLIB)
164
165.ENDIF # testframecontrol
166
167# --- Targets ------------------------------------------------------
168
169.INCLUDE :  target.mk
170
171