1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#***********************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ = ../../.. 29*cdf0e10cSrcweirPRJNAME = desktop 30*cdf0e10cSrcweirTARGET = test_deployment_passive 31*cdf0e10cSrcweir 32*cdf0e10cSrcweirENABLE_EXCEPTIONS = TRUE 33*cdf0e10cSrcweir 34*cdf0e10cSrcweirPACKAGE = com/sun/star/comp/test/deployment/passive_java 35*cdf0e10cSrcweirJAVAFILES = Dispatch.java Provider.java Services.java 36*cdf0e10cSrcweirJARFILES = juh.jar ridl.jar unoil.jar 37*cdf0e10cSrcweir 38*cdf0e10cSrcweirmy_platform_components = passive_native 39*cdf0e10cSrcweirmy_generic_components = passive_java passive_python 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir.INCLUDE: settings.mk 42*cdf0e10cSrcweir 43*cdf0e10cSrcweirDLLPRE = 44*cdf0e10cSrcweir 45*cdf0e10cSrcweirSLOFILES = $(SHL1OBJS) 46*cdf0e10cSrcweir 47*cdf0e10cSrcweirSHL1TARGET = passive_native.uno 48*cdf0e10cSrcweirSHL1OBJS = $(SLO)/passive_native.obj 49*cdf0e10cSrcweirSHL1RPATH = OXT 50*cdf0e10cSrcweirSHL1STDLIBS = $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) 51*cdf0e10cSrcweirSHL1VERSIONMAP = $(SOLARENV)/src/component.map 52*cdf0e10cSrcweirDEF1NAME = $(SHL1TARGET) 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir.INCLUDE: target.mk 55*cdf0e10cSrcweir 56*cdf0e10cSrcweirALLTAR : $(MISC)/passive.oxt 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir$(MISC)/passive.oxt : manifest.xml description.xml Addons.xcu \ 59*cdf0e10cSrcweir ProtocolHandler.xcu $(MISC)/$(TARGET)/platform.components \ 60*cdf0e10cSrcweir $(MISC)/$(TARGET)/generic.components $(SHL1TARGETN) \ 61*cdf0e10cSrcweir $(MISC)/$(TARGET)/passive_java.jar passive_python.py 62*cdf0e10cSrcweir $(RM) $@ 63*cdf0e10cSrcweir $(RM) -r $(MISC)/$(TARGET)/passive.oxt-zip 64*cdf0e10cSrcweir $(MKDIR) $(MISC)/$(TARGET)/passive.oxt-zip 65*cdf0e10cSrcweir $(MKDIRHIER) $(MISC)/$(TARGET)/passive.oxt-zip/META-INF 66*cdf0e10cSrcweir $(SED) -e 's|@PLATFORM@|$(RTL_OS:l)_$(RTL_ARCH:l)|g' < manifest.xml \ 67*cdf0e10cSrcweir > $(MISC)/$(TARGET)/passive.oxt-zip/META-INF/manifest.xml 68*cdf0e10cSrcweir $(COPY) description.xml Addons.xcu ProtocolHandler.xcu \ 69*cdf0e10cSrcweir $(MISC)/$(TARGET)/platform.components \ 70*cdf0e10cSrcweir $(MISC)/$(TARGET)/generic.components $(SHL1TARGETN) \ 71*cdf0e10cSrcweir $(MISC)/$(TARGET)/passive_java.jar passive_python.py \ 72*cdf0e10cSrcweir $(MISC)/$(TARGET)/passive.oxt-zip/ 73*cdf0e10cSrcweir cd $(MISC)/$(TARGET)/passive.oxt-zip && zip ../../passive.oxt \ 74*cdf0e10cSrcweir META-INF/manifest.xml description.xml Addons.xcu ProtocolHandler.xcu \ 75*cdf0e10cSrcweir platform.components generic.components $(SHL1TARGETN:f) \ 76*cdf0e10cSrcweir passive_java.jar passive_python.py 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir$(MISC)/$(TARGET)/platform.components : $(SOLARENV)/bin/packcomponents.xslt \ 79*cdf0e10cSrcweir $(MISC)/$(TARGET)/platform.components.input \ 80*cdf0e10cSrcweir $(my_platform_components:^"$(MISC)/$(TARGET)/":+".component") 81*cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/$(TARGET)/ -o $@ \ 82*cdf0e10cSrcweir $(SOLARENV)/bin/packcomponents.xslt \ 83*cdf0e10cSrcweir $(MISC)/$(TARGET)/platform.components.input 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir$(MISC)/$(TARGET)/platform.components.input : 86*cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 87*cdf0e10cSrcweir echo '<list>' \ 88*cdf0e10cSrcweir '$(my_platform_components:^"<filename>":+".component</filename>")' \ 89*cdf0e10cSrcweir '</list>' > $@ 90*cdf0e10cSrcweir 91*cdf0e10cSrcweir$(MISC)/$(TARGET)/generic.components : $(SOLARENV)/bin/packcomponents.xslt \ 92*cdf0e10cSrcweir $(MISC)/$(TARGET)/generic.components.input \ 93*cdf0e10cSrcweir $(my_generic_components:^"$(MISC)/$(TARGET)/":+".component") 94*cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/$(TARGET)/ -o $@ \ 95*cdf0e10cSrcweir $(SOLARENV)/bin/packcomponents.xslt \ 96*cdf0e10cSrcweir $(MISC)/$(TARGET)/generic.components.input 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir$(MISC)/$(TARGET)/generic.components.input : 99*cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 100*cdf0e10cSrcweir echo '<list>' \ 101*cdf0e10cSrcweir '$(my_generic_components:^"<filename>":+".component</filename>")' \ 102*cdf0e10cSrcweir '</list>' > $@ 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir$(MISC)/$(TARGET)/passive_native.component : \ 105*cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_native.component 106*cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 107*cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 108*cdf0e10cSrcweir '$(COMPONENTPREFIX_EXTENSION)$(SHL1TARGETN:f)' -o $@ \ 109*cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_native.component 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir$(MISC)/$(TARGET)/passive_java.component : \ 112*cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_java.component 113*cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 114*cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 115*cdf0e10cSrcweir '$(COMPONENTPREFIX_EXTENSION)passive_java.jar' -o $@ \ 116*cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_java.component 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir$(MISC)/$(TARGET)/passive_python.component : \ 119*cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_python.component 120*cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 121*cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 122*cdf0e10cSrcweir '$(COMPONENTPREFIX_EXTENSION)passive_python.py' -o $@ \ 123*cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_python.component 124*cdf0e10cSrcweir 125*cdf0e10cSrcweir$(MISC)/$(TARGET)/passive_java.jar : MANIFEST.MF $(JAVATARGET) 126*cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 127*cdf0e10cSrcweir $(RM) $@ 128*cdf0e10cSrcweir $(RM) -r $(MISC)/$(TARGET)/passive_java.jar-zip 129*cdf0e10cSrcweir $(MKDIR) $(MISC)/$(TARGET)/passive_java.jar-zip 130*cdf0e10cSrcweir $(MKDIRHIER) $(MISC)/$(TARGET)/passive_java.jar-zip/META-INF \ 131*cdf0e10cSrcweir $(MISC)/$(TARGET)/passive_java.jar-zip/$(PACKAGE) 132*cdf0e10cSrcweir $(COPY) MANIFEST.MF $(MISC)/$(TARGET)/passive_java.jar-zip/META-INF/ 133*cdf0e10cSrcweir $(COPY) $(foreach,i,$(JAVAFILES:b) $(CLASSDIR)/$(PACKAGE)/$i.class) \ 134*cdf0e10cSrcweir $(MISC)/$(TARGET)/passive_java.jar-zip/$(PACKAGE)/ 135*cdf0e10cSrcweir cd $(MISC)/$(TARGET)/passive_java.jar-zip && zip ../passive_java.jar \ 136*cdf0e10cSrcweir META-INF/MANIFEST.MF $(foreach,i,$(JAVAFILES:b) $(PACKAGE)/$i.class) 137