xref: /aoo42x/main/solenv/inc/extension_pre.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24EXTENSIONDIR*:=$(MISC)/$(EXTENSIONNAME)
25
26COMPONENT_CONFIGDIR*:=.
27COMPONENT_CONFIGDEST*:=registry/data
28COMPONENT_CONFIGDESTSCHEMA*:=registry/schema
29
30.IF "$(COMPONENT_COPYONLY)"==""
31DESCRIPTION:=$(EXTENSIONDIR)/description.xml
32DESCRIPTION_SRC*:=description.xml
33
34COMPONENT_MANIFEST*:=$(EXTENSIONDIR)/META-INF/manifest.xml
35MANIFEST_SRC*:=manifest.xml
36
37.IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT"
38PACKLICS*:=$(foreach,i,$(alllangiso) $(EXTENSIONDIR)/registration/license_$i.txt)
39COMPONENT_LIC_TEMPL*:=registration/license_xxx.txt
40.ELSE
41PACKLICS*:=$(foreach,i,$(alllangiso) $(EXTENSIONDIR)/registration/LICENSE_$i)
42COMPONENT_LIC_TEMPL*:=registration/LICENSE_xxx
43.ENDIF
44
45#TODO:  check ZIP9TARGET for previous use!
46common_build_zip=
47MANIFEST_DEPS=	$(PACKLICS) $(DESCRIPTION) $(COMPONENT_FILES) $(COMPONENT_LIBRARIES) $(COMPONENT_JARFILES) $(COMPONENT_MERGED_XCU) $(EXTENSION_PACKDEPS)
48ZIP9DEPS=		$(PACKLICS) $(DESCRIPTION) $(COMPONENT_XCU) $(COMPONENT_FILES) $(COMPONENT_LIBRARIES) $(COMPONENT_MANIFEST) $(COMPONENT_JARFILES) $(COMPONENT_MERGED_XCU) $(EXTENSION_PACKDEPS)
49ZIP9TARGET=		$(EXTENSION_ZIPNAME)
50ZIP9DIR=		$(EXTENSIONDIR)
51ZIP9EXT=		.oxt
52ZIP9FLAGS=-r
53ZIP9LIST=		*
54.ENDIF			# "$(COMPONNENT_COPYONLY)"==""
55
56