1*2407af08SAndrew Rist#**************************************************************
2*2407af08SAndrew Rist#
3*2407af08SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*2407af08SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*2407af08SAndrew Rist#  distributed with this work for additional information
6*2407af08SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*2407af08SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*2407af08SAndrew Rist#  "License"); you may not use this file except in compliance
9*2407af08SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*2407af08SAndrew Rist#
11*2407af08SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*2407af08SAndrew Rist#
13*2407af08SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*2407af08SAndrew Rist#  software distributed under the License is distributed on an
15*2407af08SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2407af08SAndrew Rist#  KIND, either express or implied.  See the License for the
17*2407af08SAndrew Rist#  specific language governing permissions and limitations
18*2407af08SAndrew Rist#  under the License.
19*2407af08SAndrew Rist#
20*2407af08SAndrew Rist#**************************************************************
21*2407af08SAndrew Rist
22*2407af08SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ = ../../..
25cdf0e10cSrcweirPRJNAME = desktop
26cdf0e10cSrcweirTARGET = test_deployment_boxt
27cdf0e10cSrcweir
28cdf0e10cSrcweirENABLE_EXCEPTIONS = TRUE
29cdf0e10cSrcweir
30cdf0e10cSrcweir.INCLUDE: settings.mk
31cdf0e10cSrcweir.INCLUDE: rtlbootstrap.mk
32cdf0e10cSrcweir.INCLUDE: versionlist.mk
33cdf0e10cSrcweir
34cdf0e10cSrcweirmy_version = $(OOOBASEVERSIONMAJOR).$(OOOBASEVERSIONMINOR)
35cdf0e10cSrcweir
36cdf0e10cSrcweirDLLPRE =
37cdf0e10cSrcweir
38cdf0e10cSrcweirSLOFILES = $(SHL1OBJS)
39cdf0e10cSrcweir
40cdf0e10cSrcweirSHL1TARGET = boxt.uno
41cdf0e10cSrcweirSHL1OBJS = $(SLO)/boxt.obj
42cdf0e10cSrcweirSHL1RPATH = BOXT
43cdf0e10cSrcweirSHL1STDLIBS = \
44cdf0e10cSrcweir    $(CPPUHELPERLIB) $(CPPULIB) $(MSFILTERLIB) $(SALLIB) $(TOOLSLIB) $(VCLLIB)
45cdf0e10cSrcweirSHL1VERSIONMAP = $(SOLARENV)/src/reg-component.map
46cdf0e10cSrcweirDEF1NAME = $(SHL1TARGET)
47cdf0e10cSrcweir
48cdf0e10cSrcweir.INCLUDE: target.mk
49cdf0e10cSrcweir
50cdf0e10cSrcweirALLTAR : $(MISC)/boxt.oxt
51cdf0e10cSrcweir
52cdf0e10cSrcweir$(MISC)/boxt.oxt .ERRREMOVE : manifest.xml description.xml Addons.xcu \
53cdf0e10cSrcweir        ProtocolHandler.xcu $(SHL1TARGETN)
54cdf0e10cSrcweir    $(RM) -r $@ $(MISC)/$(TARGET).zip
55cdf0e10cSrcweir    $(MKDIR) $(MISC)/$(TARGET).zip
56cdf0e10cSrcweir    $(MKDIR) $(MISC)/$(TARGET).zip/META-INF
57cdf0e10cSrcweir    $(SED) -e 's|@PATH@|$(SHL1TARGETN:f)|g' < manifest.xml \
58cdf0e10cSrcweir        > $(MISC)/$(TARGET).zip/META-INF/manifest.xml
59cdf0e10cSrcweir    $(SED) -e 's|@PLATFORM@|$(RTL_OS:l)_$(RTL_ARCH:l)|g' \
60cdf0e10cSrcweir        -e 's|@VERSION@|$(my_version)|g' < description.xml \
61cdf0e10cSrcweir        > $(MISC)/$(TARGET).zip/description.xml
62cdf0e10cSrcweir    $(COPY) Addons.xcu ProtocolHandler.xcu $(SHL1TARGETN) $(MISC)/$(TARGET).zip
63cdf0e10cSrcweir    cd $(MISC)/$(TARGET).zip && zip ../boxt.oxt META-INF/manifest.xml \
64cdf0e10cSrcweir        description.xml Addons.xcu ProtocolHandler.xcu $(SHL1TARGETN:f)
65