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 = ../../..
29PRJNAME = desktop
30TARGET = test_deployment_boxt
31
32ENABLE_EXCEPTIONS = TRUE
33
34.INCLUDE: settings.mk
35.INCLUDE: rtlbootstrap.mk
36.INCLUDE: versionlist.mk
37
38my_version = $(OOOBASEVERSIONMAJOR).$(OOOBASEVERSIONMINOR)
39
40DLLPRE =
41
42SLOFILES = $(SHL1OBJS)
43
44SHL1TARGET = boxt.uno
45SHL1OBJS = $(SLO)/boxt.obj
46SHL1RPATH = BOXT
47SHL1STDLIBS = \
48    $(CPPUHELPERLIB) $(CPPULIB) $(MSFILTERLIB) $(SALLIB) $(TOOLSLIB) $(VCLLIB)
49SHL1VERSIONMAP = $(SOLARENV)/src/reg-component.map
50DEF1NAME = $(SHL1TARGET)
51
52.INCLUDE: target.mk
53
54ALLTAR : $(MISC)/boxt.oxt
55
56$(MISC)/boxt.oxt .ERRREMOVE : manifest.xml description.xml Addons.xcu \
57        ProtocolHandler.xcu $(SHL1TARGETN)
58    $(RM) -r $@ $(MISC)/$(TARGET).zip
59    $(MKDIR) $(MISC)/$(TARGET).zip
60    $(MKDIR) $(MISC)/$(TARGET).zip/META-INF
61    $(SED) -e 's|@PATH@|$(SHL1TARGETN:f)|g' < manifest.xml \
62        > $(MISC)/$(TARGET).zip/META-INF/manifest.xml
63    $(SED) -e 's|@PLATFORM@|$(RTL_OS:l)_$(RTL_ARCH:l)|g' \
64        -e 's|@VERSION@|$(my_version)|g' < description.xml \
65        > $(MISC)/$(TARGET).zip/description.xml
66    $(COPY) Addons.xcu ProtocolHandler.xcu $(SHL1TARGETN) $(MISC)/$(TARGET).zip
67    cd $(MISC)/$(TARGET).zip && zip ../boxt.oxt META-INF/manifest.xml \
68        description.xml Addons.xcu ProtocolHandler.xcu $(SHL1TARGETN:f)
69