1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: extension_pre.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 EXTENSIONDIR
*:=$(MISC
)$/$(EXTENSIONNAME
)
34 COMPONENT_CONFIGDIR
*:=.
35 COMPONENT_CONFIGDEST
*:=registry
$/data
36 COMPONENT_CONFIGDESTSCHEMA
*:=registry
$/schema
38 .IF
"$(COMPONENT_COPYONLY)"==""
39 DESCRIPTION
:=$(EXTENSIONDIR
)$/description.xml
40 DESCRIPTION_SRC
*:=description.xml
42 COMPONENT_MANIFEST
*:=$(EXTENSIONDIR
)$/META-INF
$/manifest.xml
43 MANIFEST_SRC
*:=manifest.xml
45 .IF
"$(GUI)" == "WIN" ||
"$(GUI)" == "WNT"
46 PACKLICS
*:=$(foreach,i
,$(alllangiso
) $(EXTENSIONDIR
)$/registration
$/license_
$i.txt
)
47 COMPONENT_LIC_TEMPL
*:=registration
/license_xxx.txt
49 PACKLICS
*:=$(foreach,i
,$(alllangiso
) $(EXTENSIONDIR
)$/registration
$/LICENSE_
$i)
50 COMPONENT_LIC_TEMPL
*:=registration
/LICENSE_xxx
53 #TODO: check ZIP9TARGET for previous use!
55 MANIFEST_DEPS
= $(PACKLICS
) $(DESCRIPTION
) $(COMPONENT_FILES
) $(COMPONENT_LIBRARIES
) $(COMPONENT_JARFILES
) $(COMPONENT_MERGED_XCU
) $(EXTENSION_PACKDEPS
)
56 ZIP9DEPS
= $(PACKLICS
) $(DESCRIPTION
) $(COMPONENT_XCU
) $(COMPONENT_FILES
) $(COMPONENT_LIBRARIES
) $(COMPONENT_MANIFEST
) $(COMPONENT_JARFILES
) $(COMPONENT_MERGED_XCU
) $(EXTENSION_PACKDEPS
)
57 ZIP9TARGET
= $(EXTENSION_ZIPNAME
)
58 ZIP9DIR
= $(EXTENSIONDIR
)
62 .ENDIF
# "$(COMPONNENT_COPYONLY)"==""