1cdf0e10cSrcweir#************************************************************************* 2cdf0e10cSrcweir# 3cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4cdf0e10cSrcweir# 5cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6cdf0e10cSrcweir# 7cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8cdf0e10cSrcweir# 9cdf0e10cSrcweir# This file is part of OpenOffice.org. 10cdf0e10cSrcweir# 11cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14cdf0e10cSrcweir# 15cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20cdf0e10cSrcweir# 21cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25cdf0e10cSrcweir# 26cdf0e10cSrcweir#************************************************************************* 27cdf0e10cSrcweir 28cdf0e10cSrcweirPRJ=.. 29cdf0e10cSrcweirPRJNAME=reportbuilder 30cdf0e10cSrcweirTARGET=rpt 31cdf0e10cSrcweirEXTENSION_VERSION_BASE=1.2.1 32cdf0e10cSrcweir 33cdf0e10cSrcweir.IF "$(CWS_WORK_STAMP)" == "" 34cdf0e10cSrcweir EXTENSION_VERSION=$(EXTENSION_VERSION_BASE) 35cdf0e10cSrcweir.ELSE 36cdf0e10cSrcweir EXTENSION_VERSION=$(EXTENSION_VERSION_BASE).cws.$(CWS_WORK_STAMP) 37cdf0e10cSrcweir.ENDIF 38cdf0e10cSrcweir 39cdf0e10cSrcweir# --- Settings ---------------------------------- 40cdf0e10cSrcweir.INCLUDE : makefile.pmk 41cdf0e10cSrcweir 42cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 43cdf0e10cSrcweir# ------------------------------------------------------------------ 44cdf0e10cSrcweir# calready set in util$/makefile.pmk 45cdf0e10cSrcweir# EXTENSIONNAME:=report-builder 46cdf0e10cSrcweirEXTENSION_ZIPNAME:=report-builder 47cdf0e10cSrcweir 48cdf0e10cSrcweir# create Extension ----------------------------- 49cdf0e10cSrcweir 50cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"!="" 51cdf0e10cSrcweir 52cdf0e10cSrcweirXMLFILES = $(EXTENSIONDIR)$/META-INF$/manifest.xml 53cdf0e10cSrcweir 54cdf0e10cSrcweir# DESCRIPTION_SRC is the source file which is copied into the extension 55cdf0e10cSrcweir# It is defaulted to "description.xml", but we want to pre-process it, so we use an intermediate 56cdf0e10cSrcweir# file 57cdf0e10cSrcweirDESCRIPTION_SRC = $(MISC)$/description.xml 58cdf0e10cSrcweir 59cdf0e10cSrcweirCOMPONENT_MERGED_XCU= \ 60cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Setup.xcu \ 61cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess.xcu \ 62cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ReportDesign.xcu \ 63cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ExtendedColorScheme.xcu \ 64cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Embedding.xcu \ 65cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Paths.xcu \ 66cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Accelerators.xcu \ 67cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Filter.xcu \ 68cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Types.xcu \ 69cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/ReportCommands.xcu \ 70cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/Controller.xcu \ 71cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcu \ 72cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcs \ 73cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/ReportCommands.xcs \ 74cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/ReportDesign.xcs 75cdf0e10cSrcweir 76cdf0e10cSrcweirCOMPONENT_OTR_FILES= \ 77cdf0e10cSrcweir $(EXTENSIONDIR)$/template$/en-US$/wizard$/report$/default.otr 78cdf0e10cSrcweir 79cdf0e10cSrcweirCOMPONENT_IMAGES= \ 80cdf0e10cSrcweir $(EXTENSIONDIR)$/images$/extension_32.png \ 81cdf0e10cSrcweir $(EXTENSIONDIR)$/images$/extension_32_h.png 82cdf0e10cSrcweir 83cdf0e10cSrcweirCOMPONENT_HTMLFILES = $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html \ 84cdf0e10cSrcweir $(EXTENSIONDIR)$/readme_en-US.html \ 85cdf0e10cSrcweir $(EXTENSIONDIR)$/readme_en-US.txt 86cdf0e10cSrcweir 87cdf0e10cSrcweirCOMPONENT_JARFILES = \ 88cdf0e10cSrcweir $(EXTENSIONDIR)$/sun-report-builder.jar 89cdf0e10cSrcweir 90cdf0e10cSrcweirCOMPONENT_HELP= \ 91cdf0e10cSrcweir $(EXTENSIONDIR)$/help$/component.txt 92cdf0e10cSrcweir 93cdf0e10cSrcweir# .jar files from solver 94cdf0e10cSrcweirCOMPONENT_EXTJARFILES = \ 95cdf0e10cSrcweir $(EXTENSIONDIR)$/sun-report-builder.jar \ 96cdf0e10cSrcweir $(EXTENSIONDIR)$/reportbuilderwizard.jar 97cdf0e10cSrcweir 98cdf0e10cSrcweir.IF "$(SYSTEM_JFREEREPORT)" != "YES" 99*57f49b00SOliver-Rainer Wittmann.INCLUDE : $(SOLARBINDIR)/jfreereport_version.mk 100cdf0e10cSrcweirCOMPONENT_EXTJARFILES += \ 101cdf0e10cSrcweir $(EXTENSIONDIR)$/flute-$(FLUTE_VERSION).jar \ 102cdf0e10cSrcweir $(EXTENSIONDIR)$/libserializer-$(LIBSERIALIZER_VERSION).jar \ 103cdf0e10cSrcweir $(EXTENSIONDIR)$/libbase-$(LIBBASE_VERSION).jar \ 104cdf0e10cSrcweir $(EXTENSIONDIR)$/libfonts-$(LIBFONTS_VERSION).jar \ 105cdf0e10cSrcweir $(EXTENSIONDIR)$/libformula-$(LIBFORMULA_VERSION).jar \ 106cdf0e10cSrcweir $(EXTENSIONDIR)$/liblayout-$(LIBLAYOUT_VERSION).jar \ 107cdf0e10cSrcweir $(EXTENSIONDIR)$/libloader-$(LIBLOADER_VERSION).jar \ 108cdf0e10cSrcweir $(EXTENSIONDIR)$/librepository-$(LIBREPOSITORY_VERSION).jar \ 109cdf0e10cSrcweir $(EXTENSIONDIR)$/libxml-$(LIBXML_VERSION).jar \ 110cdf0e10cSrcweir $(EXTENSIONDIR)$/flow-engine-$(FLOW_ENGINE_VERSION).jar \ 111cdf0e10cSrcweir $(EXTENSIONDIR)$/sac.jar 112cdf0e10cSrcweir.ENDIF 113cdf0e10cSrcweir.IF "$(SYSTEM_APACHE_COMMONS)" != "YES" 114cdf0e10cSrcweirCOMPONENT_EXTJARFILES += \ 115cdf0e10cSrcweir $(EXTENSIONDIR)$/commons-logging-1.1.1.jar 116cdf0e10cSrcweir.ENDIF 117cdf0e10cSrcweir 118cdf0e10cSrcweirCOMPONENT_MANIFEST_GENERIC:=TRUE 119cdf0e10cSrcweirCOMPONENT_MANIFEST_SEARCHDIR:=registry 120cdf0e10cSrcweir 121cdf0e10cSrcweir# make sure to add your custom files here 122cdf0e10cSrcweirEXTENSION_PACKDEPS=$(COMPONENT_EXTJARFILES) $(COMPONENT_HTMLFILES) $(COMPONENT_OTR_FILES) $(COMPONENT_HELP) $(COMPONENT_IMAGES) 123cdf0e10cSrcweir.ENDIF 124cdf0e10cSrcweir# --- Targets ---------------------------------- 125cdf0e10cSrcweir 126cdf0e10cSrcweir.INCLUDE : extension_pre.mk 127cdf0e10cSrcweir.INCLUDE : target.mk 128cdf0e10cSrcweir.INCLUDE : extension_post.mk 129cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 130cdf0e10cSrcweir$(EXTENSIONDIR)$/%.jar : $(SOLARBINDIR)$/%.jar 131cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 132cdf0e10cSrcweir $(COPY) $< $@ 133cdf0e10cSrcweir 134cdf0e10cSrcweir$(EXTENSIONDIR)$/readme_en-US.% : $(PRJ)$/license$/readme_en-US.% 135cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 136cdf0e10cSrcweir $(COPY) $< $@ 137cdf0e10cSrcweir 138cdf0e10cSrcweir$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f) 139cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 140cdf0e10cSrcweir $(COPY) $< $@ 141cdf0e10cSrcweir 142cdf0e10cSrcweir$(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html : $(PRJ)$/license$/THIRDPARTYREADMELICENSE.html 143cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 144cdf0e10cSrcweir $(COPY) $< $@ 145cdf0e10cSrcweir 146cdf0e10cSrcweir$(COMPONENT_HELP) : $$(@:f) 147cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 148cdf0e10cSrcweir $(COPY) $< $@ 149cdf0e10cSrcweir 150cdf0e10cSrcweir$(DESCRIPTION_SRC): description.xml 151cdf0e10cSrcweir +-$(RM) $@ 152cdf0e10cSrcweir $(TYPE) description.xml | $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" > $@ 153cdf0e10cSrcweir.ENDIF 154cdf0e10cSrcweir.ELSE # "$(SOLAR_JAVA)"!="" 155cdf0e10cSrcweir.INCLUDE : target.mk 156cdf0e10cSrcweir.ENDIF # "$(SOLAR_JAVA)"!="" 157cdf0e10cSrcweir# 158