xref: /aoo42x/main/reportbuilder/util/makefile.mk (revision cdf0e10c)
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.INCLUDE :  $(SOLARBINDIR)/jfreereport_version.mk
42
43.IF "$(L10N_framework)"==""
44# ------------------------------------------------------------------
45# calready set in util$/makefile.pmk
46# EXTENSIONNAME:=report-builder
47EXTENSION_ZIPNAME:=report-builder
48
49# create Extension -----------------------------
50
51.IF "$(SOLAR_JAVA)"!=""
52
53XMLFILES =  $(EXTENSIONDIR)$/META-INF$/manifest.xml
54
55# DESCRIPTION_SRC is the source file which is copied into the extension
56# It is defaulted to "description.xml", but we want to pre-process it, so we use an intermediate
57# file
58DESCRIPTION_SRC = $(MISC)$/description.xml
59
60COMPONENT_MERGED_XCU= \
61            $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Setup.xcu \
62			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess.xcu \
63			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ReportDesign.xcu \
64			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ExtendedColorScheme.xcu \
65			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Embedding.xcu \
66			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Paths.xcu \
67			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Accelerators.xcu \
68			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Filter.xcu \
69			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Types.xcu \
70			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/ReportCommands.xcu \
71			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/Controller.xcu \
72			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcu \
73			$(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcs \
74			$(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/ReportCommands.xcs \
75			$(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/ReportDesign.xcs
76
77COMPONENT_OTR_FILES= \
78	$(EXTENSIONDIR)$/template$/en-US$/wizard$/report$/default.otr
79
80COMPONENT_IMAGES= \
81	$(EXTENSIONDIR)$/images$/extension_32.png \
82	$(EXTENSIONDIR)$/images$/extension_32_h.png
83
84COMPONENT_HTMLFILES = $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html \
85			$(EXTENSIONDIR)$/readme_en-US.html \
86			$(EXTENSIONDIR)$/readme_en-US.txt
87
88COMPONENT_JARFILES = \
89	$(EXTENSIONDIR)$/sun-report-builder.jar
90
91COMPONENT_HELP= \
92	$(EXTENSIONDIR)$/help$/component.txt
93
94# .jar files from solver
95COMPONENT_EXTJARFILES = \
96	$(EXTENSIONDIR)$/sun-report-builder.jar 					\
97	$(EXTENSIONDIR)$/reportbuilderwizard.jar
98
99.IF "$(SYSTEM_JFREEREPORT)" != "YES"
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