xref: /aoo41x/main/reportbuilder/util/makefile.mk (revision 57f49b00)
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=reportbuilder
30TARGET=rpt
31EXTENSION_VERSION_BASE=1.2.1
32
33.IF "$(CWS_WORK_STAMP)" == ""
34    EXTENSION_VERSION=$(EXTENSION_VERSION_BASE)
35.ELSE
36    EXTENSION_VERSION=$(EXTENSION_VERSION_BASE).cws.$(CWS_WORK_STAMP)
37.ENDIF
38
39# --- Settings ----------------------------------
40.INCLUDE :  makefile.pmk
41
42.IF "$(L10N_framework)"==""
43# ------------------------------------------------------------------
44# calready set in util$/makefile.pmk
45# EXTENSIONNAME:=report-builder
46EXTENSION_ZIPNAME:=report-builder
47
48# create Extension -----------------------------
49
50.IF "$(SOLAR_JAVA)"!=""
51
52XMLFILES =  $(EXTENSIONDIR)$/META-INF$/manifest.xml
53
54# DESCRIPTION_SRC is the source file which is copied into the extension
55# It is defaulted to "description.xml", but we want to pre-process it, so we use an intermediate
56# file
57DESCRIPTION_SRC = $(MISC)$/description.xml
58
59COMPONENT_MERGED_XCU= \
60            $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Setup.xcu \
61			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess.xcu \
62			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ReportDesign.xcu \
63			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ExtendedColorScheme.xcu \
64			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Embedding.xcu \
65			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Paths.xcu \
66			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Accelerators.xcu \
67			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Filter.xcu \
68			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Types.xcu \
69			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/ReportCommands.xcu \
70			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/Controller.xcu \
71			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcu \
72			$(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcs \
73			$(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/ReportCommands.xcs \
74			$(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/ReportDesign.xcs
75
76COMPONENT_OTR_FILES= \
77	$(EXTENSIONDIR)$/template$/en-US$/wizard$/report$/default.otr
78
79COMPONENT_IMAGES= \
80	$(EXTENSIONDIR)$/images$/extension_32.png \
81	$(EXTENSIONDIR)$/images$/extension_32_h.png
82
83COMPONENT_HTMLFILES = $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html \
84			$(EXTENSIONDIR)$/readme_en-US.html \
85			$(EXTENSIONDIR)$/readme_en-US.txt
86
87COMPONENT_JARFILES = \
88	$(EXTENSIONDIR)$/sun-report-builder.jar
89
90COMPONENT_HELP= \
91	$(EXTENSIONDIR)$/help$/component.txt
92
93# .jar files from solver
94COMPONENT_EXTJARFILES = \
95	$(EXTENSIONDIR)$/sun-report-builder.jar 					\
96	$(EXTENSIONDIR)$/reportbuilderwizard.jar
97
98.IF "$(SYSTEM_JFREEREPORT)" != "YES"
99.INCLUDE :  $(SOLARBINDIR)/jfreereport_version.mk
100COMPONENT_EXTJARFILES += \
101	$(EXTENSIONDIR)$/flute-$(FLUTE_VERSION).jar				            \
102	$(EXTENSIONDIR)$/libserializer-$(LIBSERIALIZER_VERSION).jar			\
103	$(EXTENSIONDIR)$/libbase-$(LIBBASE_VERSION).jar                     \
104	$(EXTENSIONDIR)$/libfonts-$(LIBFONTS_VERSION).jar					\
105	$(EXTENSIONDIR)$/libformula-$(LIBFORMULA_VERSION).jar						\
106	$(EXTENSIONDIR)$/liblayout-$(LIBLAYOUT_VERSION).jar					\
107	$(EXTENSIONDIR)$/libloader-$(LIBLOADER_VERSION).jar					\
108	$(EXTENSIONDIR)$/librepository-$(LIBREPOSITORY_VERSION).jar			\
109	$(EXTENSIONDIR)$/libxml-$(LIBXML_VERSION).jar						\
110	$(EXTENSIONDIR)$/flow-engine-$(FLOW_ENGINE_VERSION).jar 	        \
111	$(EXTENSIONDIR)$/sac.jar
112.ENDIF
113.IF "$(SYSTEM_APACHE_COMMONS)" != "YES"
114COMPONENT_EXTJARFILES += \
115	$(EXTENSIONDIR)$/commons-logging-1.1.1.jar
116.ENDIF
117
118COMPONENT_MANIFEST_GENERIC:=TRUE
119COMPONENT_MANIFEST_SEARCHDIR:=registry
120
121# make sure to add your custom files here
122EXTENSION_PACKDEPS=$(COMPONENT_EXTJARFILES) $(COMPONENT_HTMLFILES) $(COMPONENT_OTR_FILES) $(COMPONENT_HELP) $(COMPONENT_IMAGES)
123.ENDIF
124# --- Targets ----------------------------------
125
126.INCLUDE : extension_pre.mk
127.INCLUDE : target.mk
128.INCLUDE : extension_post.mk
129.IF "$(L10N_framework)"==""
130$(EXTENSIONDIR)$/%.jar : $(SOLARBINDIR)$/%.jar
131	@@-$(MKDIRHIER) $(@:d)
132    $(COPY) $< $@
133
134$(EXTENSIONDIR)$/readme_en-US.% : $(PRJ)$/license$/readme_en-US.%
135	@@-$(MKDIRHIER) $(@:d)
136    $(COPY) $< $@
137
138$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
139	@@-$(MKDIRHIER) $(@:d)
140    $(COPY) $< $@
141
142$(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html : $(PRJ)$/license$/THIRDPARTYREADMELICENSE.html
143    @@-$(MKDIRHIER) $(@:d)
144    $(COPY) $< $@
145
146$(COMPONENT_HELP) : $$(@:f)
147	@@-$(MKDIRHIER) $(@:d)
148    $(COPY) $< $@
149
150$(DESCRIPTION_SRC): description.xml
151	+-$(RM) $@
152	$(TYPE) description.xml | $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" > $@
153.ENDIF
154.ELSE			# "$(SOLAR_JAVA)"!=""
155.INCLUDE : target.mk
156.ENDIF			# "$(SOLAR_JAVA)"!=""
157#
158