5691672a92
2007/07/19 11:06:19 oj 1.2.2.7: #i79598# makefile description changes 2007/07/19 09:26:21 oj 1.2.2.6: #i79598# create description file 2007/07/19 06:30:04 oj 1.2.2.5: #i79598# use vanilla license 2007/07/16 13:44:03 fs 1.2.2.4: #i77800# +core_misc 2007/07/16 05:49:01 oj 1.2.2.3: #i79557# changes for no java 2007/07/13 09:21:57 lla 1.2.2.2: #i78437# 2007/07/12 10:26:35 lla 1.2.2.1: #i78437# new name for reportdesign
285 lines
7.3 KiB
Makefile
285 lines
7.3 KiB
Makefile
#*************************************************************************
|
|
#
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
|
#
|
|
# $RCSfile: makefile.mk,v $
|
|
#
|
|
# $Revision: 1.3 $
|
|
#
|
|
# last change: $Author: hr $ $Date: 2007-08-02 14:42:41 $
|
|
#
|
|
# The Contents of this file are made available subject to
|
|
# the terms of GNU Lesser General Public License Version 2.1.
|
|
#
|
|
#
|
|
# GNU Lesser General Public License Version 2.1
|
|
# =============================================
|
|
# Copyright 2005 by Sun Microsystems, Inc.
|
|
# 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
#
|
|
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License version 2.1, as published by the Free Software Foundation.
|
|
#
|
|
# This library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with this library; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
# MA 02111-1307 USA
|
|
#
|
|
#*************************************************************************
|
|
|
|
PRJ=..
|
|
PRJNAME=reportdesign
|
|
TARGET=rpt
|
|
TARGET2=$(TARGET)ui
|
|
# USE_DEFFILE=TRUE
|
|
GEN_HID=TRUE
|
|
GEN_HID_OTHER=TRUE
|
|
# ???
|
|
no_common_build_zip=true
|
|
|
|
# --- Settings ----------------------------------
|
|
.INCLUDE : settings.mk
|
|
# ------------------------------------------------------------------
|
|
|
|
|
|
# --- reportdesign core (rpt) -----------------------------------
|
|
|
|
LIB1TARGET=$(SLB)$/$(TARGET).lib
|
|
LIB1FILES=\
|
|
$(SLB)$/api.lib \
|
|
$(SLB)$/coreshared.lib \
|
|
$(SLB)$/core_resource.lib \
|
|
$(SLB)$/core_sdr.lib \
|
|
$(SLB)$/core_misc.lib
|
|
|
|
SHL1TARGET=$(TARGET)$(UPD)$(DLLPOSTFIX)
|
|
|
|
SHL1STDLIBS= \
|
|
$(SVXLIB) \
|
|
$(SFXLIB) \
|
|
$(TOOLSLIB) \
|
|
$(SVLLIB) \
|
|
$(SVTOOLLIB) \
|
|
$(UNOTOOLSLIB) \
|
|
$(DBTOOLSLIB) \
|
|
$(COMPHELPERLIB) \
|
|
$(CPPUHELPERLIB) \
|
|
$(CPPULIB) \
|
|
$(VCLLIB) \
|
|
$(TKLIB) \
|
|
$(VOSLIB) \
|
|
$(SALLIB)
|
|
.IF "$(GUI)"=="WNT"
|
|
SHL1STDLIBS+= \
|
|
idbu.lib
|
|
.ELSE
|
|
SHL1STDLIBS+= \
|
|
-ldbu$(UPD)$(DLLPOSTFIX)
|
|
.ENDIF
|
|
|
|
SHL1IMPLIB=i$(TARGET)
|
|
SHL1USE_EXPORTS=ordinal
|
|
SHL1LIBS=$(LIB1TARGET)
|
|
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
|
|
|
DEF1NAME=$(SHL1TARGET)
|
|
DEFLIB1NAME=$(TARGET)
|
|
|
|
# --- .res file ----------------------------------------------------------
|
|
|
|
RES1FILELIST=\
|
|
$(SRS)$/core_strings.srs
|
|
|
|
RESLIB1NAME=$(TARGET)
|
|
RESLIB1IMAGES=$(PRJ)$/res
|
|
RESLIB1SRSFILES=$(RES1FILELIST)
|
|
|
|
|
|
# --- reportdesign UI core (rptui) -----------------------------------
|
|
LIB2TARGET=$(SLB)$/$(TARGET2).lib
|
|
LIB2FILES=\
|
|
$(SLB)$/uimisc.lib \
|
|
$(SLB)$/uidlg.lib \
|
|
$(SLB)$/uishared.lib \
|
|
$(SLB)$/ui_inspection.lib \
|
|
$(SLB)$/report.lib
|
|
|
|
SHL2TARGET=$(TARGET2)$(UPD)$(DLLPOSTFIX)
|
|
|
|
SHL2STDLIBS= \
|
|
$(SVXLIB) \
|
|
$(SFXLIB) \
|
|
$(SVTOOLLIB) \
|
|
$(TKLIB) \
|
|
$(VCLLIB) \
|
|
$(SVLLIB) \
|
|
$(SOTLIB) \
|
|
$(UNOTOOLSLIB) \
|
|
$(TOOLSLIB) \
|
|
$(DBTOOLSLIB) \
|
|
$(COMPHELPERLIB) \
|
|
$(CPPUHELPERLIB) \
|
|
$(CPPULIB) \
|
|
$(SO2LIB) \
|
|
$(I18NISOLANGLIB) \
|
|
$(SALLIB)
|
|
.IF "$(GUI)"=="WNT"
|
|
SHL2STDLIBS+= \
|
|
idbu.lib \
|
|
i$(TARGET).lib
|
|
.ELSE
|
|
SHL2STDLIBS+= \
|
|
-ldbu$(UPD)$(DLLPOSTFIX) \
|
|
-l$(TARGET)$(UPD)$(DLLPOSTFIX)
|
|
.ENDIF
|
|
|
|
SHL2DEPN=$(SHL1TARGETN)
|
|
SHL2LIBS=$(LIB2TARGET)
|
|
SHL2DEF=$(MISC)$/$(SHL2TARGET).def
|
|
DEF2NAME=$(SHL2TARGET)
|
|
SHL2VERSIONMAP=$(TARGET2).map
|
|
|
|
# --- .res file ----------------------------------------------------------
|
|
|
|
RES2FILELIST=\
|
|
$(SRS)$/uidlg.srs \
|
|
$(SRS)$/ui_inspection.srs \
|
|
$(SRS)$/report.srs
|
|
|
|
|
|
RESLIB2NAME=$(TARGET2)
|
|
RESLIB2IMAGES=$(PRJ)$/res
|
|
RESLIB2SRSFILES=$(RES2FILELIST)
|
|
|
|
# ------------------- rptxml -------------------
|
|
TARGET3=rptxml
|
|
# --- Library -----------------------------------
|
|
LIB3TARGET=$(SLB)$/rpt_flt.lib
|
|
LIB3FILES=\
|
|
$(SLB)$/xmlshared.lib \
|
|
$(SLB)$/$(TARGET3).lib
|
|
|
|
SHL3TARGET=$(TARGET3)$(UPD)$(DLLPOSTFIX)
|
|
|
|
SHL3STDLIBS=\
|
|
$(SVXLIB) \
|
|
$(XMLOFFLIB) \
|
|
$(VCLLIB) \
|
|
$(UNOTOOLSLIB) \
|
|
$(TOOLSLIB) \
|
|
$(DBTOOLSLIB) \
|
|
$(COMPHELPERLIB) \
|
|
$(CPPUHELPERLIB) \
|
|
$(CPPULIB) \
|
|
$(UCBHELPERLIB) \
|
|
$(SFXLIB) \
|
|
$(SVLLIB) \
|
|
$(SOTLIB) \
|
|
$(SO2LIB) \
|
|
$(SALLIB)
|
|
.IF "$(GUI)"=="WNT"
|
|
SHL3STDLIBS+= \
|
|
irpt.lib
|
|
.ELSE
|
|
SHL3STDLIBS+= \
|
|
-l$(TARGET)$(UPD)$(DLLPOSTFIX)
|
|
.ENDIF
|
|
|
|
|
|
SHL3DEPN=
|
|
SHL3LIBS=$(LIB3TARGET)
|
|
SHL3IMPLIB= i$(SHL3TARGET)
|
|
SHL3VERSIONMAP=rptui.map
|
|
SHL3DEF= $(MISC)$/$(SHL3TARGET).def
|
|
|
|
DEF3NAME=$(SHL3TARGET)
|
|
|
|
# create Extension -----------------------------
|
|
|
|
.IF "$(SOLAR_JAVA)"!="
|
|
|
|
ZIP1TARGET=sun-report-builder
|
|
ZIP1FLAGS=-r
|
|
ZIP1DIR=$(MISC)$/zip
|
|
ZIP1LIST=*
|
|
ZIP1EXT=.oxt
|
|
|
|
XMLFILES := $(ZIP1DIR)$/description.xml \
|
|
$(ZIP1DIR)$/META-INF$/manifest.xml
|
|
|
|
.IF "$(GUI)"!="WNT"
|
|
TXTFILES:=$(foreach,i,$(WITH_LANG) $(ZIP1DIR)$/registration$/LICENSE_$i)
|
|
LICLINES:=$(foreach,i,$(TXTFILES) <license-text xlink:href="registration/$(i:f)" lang="$(subst,LICENSE_, $(i:f))" />)
|
|
.ELSE # "$(GUI)"!="WNT"
|
|
TXTFILES:=$(foreach,i,$(WITH_LANG) $(ZIP1DIR)$/registration$/license_$i.txt)
|
|
LICLINES:=$(foreach,i,$(TXTFILES) <license-text xlink:href="registration/$(i:f)" lang="$(subst,.txt, $(subst,license_, $(i:f)))" />)
|
|
.ENDIF # "$(GUI)"!="WNT"
|
|
|
|
HTMLFILES := $(ZIP1DIR)$/THIRDPARTYREADMELICENSE.html
|
|
|
|
REPRORTJARFILES := \
|
|
$(ZIP1DIR)$/jcommon-1.0.10.jar \
|
|
$(ZIP1DIR)$/sac.jar \
|
|
$(ZIP1DIR)$/libxml-0.9.5.jar \
|
|
$(ZIP1DIR)$/flute-1.3-jfree-20061107.jar \
|
|
$(ZIP1DIR)$/jfreereport-0.9.0-05.jar \
|
|
$(ZIP1DIR)$/liblayout-0.2.6.jar \
|
|
$(ZIP1DIR)$/libloader-0.3.4.jar \
|
|
$(ZIP1DIR)$/libformula-0.1.8.jar \
|
|
$(ZIP1DIR)$/librepository-0.1.1.jar \
|
|
$(ZIP1DIR)$/libfonts-0.2.6.jar \
|
|
$(ZIP1DIR)$/jcommon-serializer-0.1.0.jar \
|
|
$(ZIP1DIR)$/sun-report-builder.jar
|
|
|
|
# --- Targets ----------------------------------
|
|
.INCLUDE : target.mk
|
|
|
|
.IF "$(ZIP1TARGETN)"!="
|
|
$(ZIP1TARGETN) : $(TXTFILES) $(XMLFILES) $(HTMLFILES) $(REPRORTJARFILES)
|
|
.ENDIF # "$(ZIP1TARGETN)"!="
|
|
|
|
$(ZIP1DIR)$/description.xml : pre.xml post.xml
|
|
@@-$(MKDIRHIER) $(@:d)
|
|
@@-$(RM) $(ZIP1DIR)$/description.xml
|
|
$(TYPE) pre.xml > $@
|
|
$(TYPE) $(mktmp $(LICLINES)) >> $@
|
|
$(TYPE) post.xml >> $@
|
|
|
|
$(ZIP1DIR)$/%.xml : %.xml
|
|
@@-$(MKDIRHIER) $(@:d)
|
|
$(COPY) $< $@
|
|
|
|
$(ZIP1DIR)$/%.jar : $(SOLARBINDIR)$/%.jar
|
|
@@-$(MKDIRHIER) $(@:d)
|
|
$(COPY) $< $@
|
|
|
|
$(ZIP1DIR)$/%.jar : $(CLASSDIR)$/%.jar
|
|
@@-$(MKDIRHIER) $(@:d)
|
|
$(COPY) $< $@
|
|
|
|
$(ZIP1DIR)$/META-INF$/%.xml : %.xml
|
|
@@-$(MKDIRHIER) $(@:d)
|
|
$(COPY) $< $@
|
|
|
|
$(ZIP1DIR)$/registration$/license_%.txt : $(SOLARBINDIR)$/osl$/license_%.txt
|
|
@@-$(MKDIRHIER) $(@:d)
|
|
$(COPY) $< $@
|
|
|
|
$(ZIP1DIR)$/registration$/LICENSE_% : $(SOLARBINDIR)$/osl$/LICENSE_%
|
|
@@-$(MKDIRHIER) $(@:d)
|
|
$(COPY) $< $@
|
|
|
|
$(ZIP1DIR)$/THIRDPARTYREADMELICENSE.html : THIRDPARTYREADMELICENSE.html
|
|
@@-$(MKDIRHIER) $(@:d)
|
|
$(COPY) $< $@
|
|
|
|
.ELSE # "$(SOLAR_JAVA)"!="
|
|
.INCLUDE : target.mk
|
|
.ENDIF # "$(SOLAR_JAVA)"!="
|
|
#
|