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