xref: /AOO41X/main/desktop/qa/deployment_misc/makefile.mk (revision 73c960034b966433539ab2e36afa59458d9a71c4)
17871dc3eSAndrew Rist#**************************************************************
2cdf0e10cSrcweir#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
19cdf0e10cSrcweir#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24828da808SPedro Giffuni.IF "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2"
255e7a3e64SPedro Giffuni
265e7a3e64SPedro Giffuni@all:
27828da808SPedro Giffuni.IF "$(GUI)" == "OS2"
285e7a3e64SPedro Giffuni	@echo "Skipping, cppunit broken."
29828da808SPedro Giffuni.ELIF "$(WITH_CPPUNIT)" != "YES"
30828da808SPedro Giffuni	@echo "cppunit disabled. nothing do do."
31828da808SPedro Giffuni.END
325e7a3e64SPedro Giffuni
33828da808SPedro Giffuni.ENDIF "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2"
345e7a3e64SPedro Giffuni
35cdf0e10cSrcweirPRJ := ..$/..
36cdf0e10cSrcweirPRJNAME := desktop
37*73c96003SYuri Dario.IF "$(GUI)" == "OS2"
38*73c96003SYuri DarioTARGET := qa_dpl_m
39*73c96003SYuri Dario.ELSE
40cdf0e10cSrcweirTARGET := qa_deployment_misc
41*73c96003SYuri Dario.ENDIF
42cdf0e10cSrcweir
43cdf0e10cSrcweirENABLE_EXCEPTIONS := TRUE
44cdf0e10cSrcweir
45cdf0e10cSrcweir.INCLUDE: settings.mk
46cdf0e10cSrcweir.INCLUDE: $(PRJ)$/source$/deployment$/inc$/dp_misc.mk
47cdf0e10cSrcweir
48cdf0e10cSrcweirCFLAGSCXX += $(CPPUNIT_CFLAGS)
49cdf0e10cSrcweir
50cdf0e10cSrcweir# TODO:  On Windows, test_dp_version.cxx fails due to BOOL redefinition between
51cdf0e10cSrcweir# windef.h and tools/solar.h caused by including "precompiled_desktop.hxx"; this
52cdf0e10cSrcweir# hack to temporarily disable PCH will become unnecessary with the fix for issue
53cdf0e10cSrcweir# 112600:
54cdf0e10cSrcweirCFLAGSCXX += -DDISABLE_PCH_HACK
55cdf0e10cSrcweir
56cdf0e10cSrcweirSHL1TARGET = $(TARGET)
57cdf0e10cSrcweirSHL1OBJS = $(SLO)$/test_dp_version.obj
58cdf0e10cSrcweirSHL1STDLIBS = $(CPPUNITLIB) $(DEPLOYMENTMISCLIB) $(SALLIB)
59cdf0e10cSrcweirSHL1VERSIONMAP = version.map
60cdf0e10cSrcweirSHL1RPATH = NONE
61cdf0e10cSrcweirSHL1IMPLIB = i$(SHL1TARGET)
62cdf0e10cSrcweirDEF1NAME = $(SHL1TARGET)
63cdf0e10cSrcweir
64cdf0e10cSrcweirSLOFILES = $(SHL1OBJS)
65cdf0e10cSrcweir
66cdf0e10cSrcweir.INCLUDE: target.mk
67cdf0e10cSrcweir.INCLUDE : _cppunit.mk
68