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_passive 27cdf0e10cSrcweir 28cdf0e10cSrcweirENABLE_EXCEPTIONS = TRUE 29cdf0e10cSrcweir 30cdf0e10cSrcweirPACKAGE = com/sun/star/comp/test/deployment/passive_java 31cdf0e10cSrcweirJAVAFILES = Dispatch.java Provider.java Services.java 32cdf0e10cSrcweirJARFILES = juh.jar ridl.jar unoil.jar 33cdf0e10cSrcweir 34cdf0e10cSrcweirmy_platform_components = passive_native 35cdf0e10cSrcweirmy_generic_components = passive_java passive_python 36cdf0e10cSrcweir 37cdf0e10cSrcweir.INCLUDE: settings.mk 38cdf0e10cSrcweir 39cdf0e10cSrcweirDLLPRE = 40cdf0e10cSrcweir 41cdf0e10cSrcweirSLOFILES = $(SHL1OBJS) 42cdf0e10cSrcweir 43cdf0e10cSrcweirSHL1TARGET = passive_native.uno 44cdf0e10cSrcweirSHL1OBJS = $(SLO)/passive_native.obj 45cdf0e10cSrcweirSHL1RPATH = OXT 46cdf0e10cSrcweirSHL1STDLIBS = $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) 47cdf0e10cSrcweirSHL1VERSIONMAP = $(SOLARENV)/src/component.map 48cdf0e10cSrcweirDEF1NAME = $(SHL1TARGET) 49cdf0e10cSrcweir 50cdf0e10cSrcweir.INCLUDE: target.mk 51cdf0e10cSrcweir 52cdf0e10cSrcweirALLTAR : $(MISC)/passive.oxt 53cdf0e10cSrcweir 54cdf0e10cSrcweir$(MISC)/passive.oxt : manifest.xml description.xml Addons.xcu \ 55cdf0e10cSrcweir ProtocolHandler.xcu $(MISC)/$(TARGET)/platform.components \ 56cdf0e10cSrcweir $(MISC)/$(TARGET)/generic.components $(SHL1TARGETN) \ 57cdf0e10cSrcweir $(MISC)/$(TARGET)/passive_java.jar passive_python.py 58cdf0e10cSrcweir $(RM) $@ 59cdf0e10cSrcweir $(RM) -r $(MISC)/$(TARGET)/passive.oxt-zip 60cdf0e10cSrcweir $(MKDIR) $(MISC)/$(TARGET)/passive.oxt-zip 61cdf0e10cSrcweir $(MKDIRHIER) $(MISC)/$(TARGET)/passive.oxt-zip/META-INF 62cdf0e10cSrcweir $(SED) -e 's|@PLATFORM@|$(RTL_OS:l)_$(RTL_ARCH:l)|g' < manifest.xml \ 63cdf0e10cSrcweir > $(MISC)/$(TARGET)/passive.oxt-zip/META-INF/manifest.xml 64cdf0e10cSrcweir $(COPY) description.xml Addons.xcu ProtocolHandler.xcu \ 65cdf0e10cSrcweir $(MISC)/$(TARGET)/platform.components \ 66cdf0e10cSrcweir $(MISC)/$(TARGET)/generic.components $(SHL1TARGETN) \ 67cdf0e10cSrcweir $(MISC)/$(TARGET)/passive_java.jar passive_python.py \ 68cdf0e10cSrcweir $(MISC)/$(TARGET)/passive.oxt-zip/ 69cdf0e10cSrcweir cd $(MISC)/$(TARGET)/passive.oxt-zip && zip ../../passive.oxt \ 70cdf0e10cSrcweir META-INF/manifest.xml description.xml Addons.xcu ProtocolHandler.xcu \ 71cdf0e10cSrcweir platform.components generic.components $(SHL1TARGETN:f) \ 72cdf0e10cSrcweir passive_java.jar passive_python.py 73cdf0e10cSrcweir 74cdf0e10cSrcweir$(MISC)/$(TARGET)/platform.components : $(SOLARENV)/bin/packcomponents.xslt \ 75cdf0e10cSrcweir $(MISC)/$(TARGET)/platform.components.input \ 76cdf0e10cSrcweir $(my_platform_components:^"$(MISC)/$(TARGET)/":+".component") 77cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/$(TARGET)/ -o $@ \ 78cdf0e10cSrcweir $(SOLARENV)/bin/packcomponents.xslt \ 79cdf0e10cSrcweir $(MISC)/$(TARGET)/platform.components.input 80cdf0e10cSrcweir 81cdf0e10cSrcweir$(MISC)/$(TARGET)/platform.components.input : 82cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 83cdf0e10cSrcweir echo '<list>' \ 84cdf0e10cSrcweir '$(my_platform_components:^"<filename>":+".component</filename>")' \ 85cdf0e10cSrcweir '</list>' > $@ 86cdf0e10cSrcweir 87cdf0e10cSrcweir$(MISC)/$(TARGET)/generic.components : $(SOLARENV)/bin/packcomponents.xslt \ 88cdf0e10cSrcweir $(MISC)/$(TARGET)/generic.components.input \ 89cdf0e10cSrcweir $(my_generic_components:^"$(MISC)/$(TARGET)/":+".component") 90cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/$(TARGET)/ -o $@ \ 91cdf0e10cSrcweir $(SOLARENV)/bin/packcomponents.xslt \ 92cdf0e10cSrcweir $(MISC)/$(TARGET)/generic.components.input 93cdf0e10cSrcweir 94cdf0e10cSrcweir$(MISC)/$(TARGET)/generic.components.input : 95cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 96cdf0e10cSrcweir echo '<list>' \ 97cdf0e10cSrcweir '$(my_generic_components:^"<filename>":+".component</filename>")' \ 98cdf0e10cSrcweir '</list>' > $@ 99cdf0e10cSrcweir 100cdf0e10cSrcweir$(MISC)/$(TARGET)/passive_native.component : \ 101cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_native.component 102cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 103cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 104cdf0e10cSrcweir '$(COMPONENTPREFIX_EXTENSION)$(SHL1TARGETN:f)' -o $@ \ 105cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_native.component 106cdf0e10cSrcweir 107cdf0e10cSrcweir$(MISC)/$(TARGET)/passive_java.component : \ 108cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_java.component 109cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 110cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 111cdf0e10cSrcweir '$(COMPONENTPREFIX_EXTENSION)passive_java.jar' -o $@ \ 112cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_java.component 113cdf0e10cSrcweir 114cdf0e10cSrcweir$(MISC)/$(TARGET)/passive_python.component : \ 115cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_python.component 116cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 117cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 118cdf0e10cSrcweir '$(COMPONENTPREFIX_EXTENSION)passive_python.py' -o $@ \ 119cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt passive_python.component 120cdf0e10cSrcweir 121cdf0e10cSrcweir$(MISC)/$(TARGET)/passive_java.jar : MANIFEST.MF $(JAVATARGET) 122cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 123cdf0e10cSrcweir $(RM) $@ 124cdf0e10cSrcweir $(RM) -r $(MISC)/$(TARGET)/passive_java.jar-zip 125cdf0e10cSrcweir $(MKDIR) $(MISC)/$(TARGET)/passive_java.jar-zip 126cdf0e10cSrcweir $(MKDIRHIER) $(MISC)/$(TARGET)/passive_java.jar-zip/META-INF \ 127cdf0e10cSrcweir $(MISC)/$(TARGET)/passive_java.jar-zip/$(PACKAGE) 128cdf0e10cSrcweir $(COPY) MANIFEST.MF $(MISC)/$(TARGET)/passive_java.jar-zip/META-INF/ 129cdf0e10cSrcweir $(COPY) $(foreach,i,$(JAVAFILES:b) $(CLASSDIR)/$(PACKAGE)/$i.class) \ 130cdf0e10cSrcweir $(MISC)/$(TARGET)/passive_java.jar-zip/$(PACKAGE)/ 131cdf0e10cSrcweir cd $(MISC)/$(TARGET)/passive_java.jar-zip && zip ../passive_java.jar \ 132cdf0e10cSrcweir META-INF/MANIFEST.MF $(foreach,i,$(JAVAFILES:b) $(PACKAGE)/$i.class) 133