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