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=sdext 30TARGET=SunPresentationMinimizer 31GEN_HID=FALSE 32ENABLE_EXCEPTIONS=TRUE 33 34# --- Settings ---------------------------------- 35.INCLUDE : settings.mk 36.IF "$(L10N_framework)"=="" 37.INCLUDE : $(PRJ)$/source$/minimizer$/minimizer.pmk 38.INCLUDE : $(PRJ)$/util$/makefile.pmk 39 40# set in minimizer.pmk 41#EXTENSIONNAME:=PresentationMinimizer 42EXTENSION_ZIPNAME:=presentation-minimizer 43 44.IF "$(ENABLE_MINIMIZER)" != "YES" 45@all: 46 @echo "Presentation Minimizer build disabled." 47.ENDIF 48 49DLLPRE= 50 51# --- Files ------------------------------------- 52 53SLOFILES= $(SLO)$/unodialog.obj \ 54 $(SLO)$/optimizerdialog.obj \ 55 $(SLO)$/optimizerdialogcontrols.obj \ 56 $(SLO)$/configurationaccess.obj \ 57 $(SLO)$/impoptimizer.obj \ 58 $(SLO)$/pppoptimizer.obj \ 59 $(SLO)$/pppoptimizeruno.obj \ 60 $(SLO)$/pppoptimizertoken.obj \ 61 $(SLO)$/pppoptimizerdialog.obj \ 62 $(SLO)$/fileopendialog.obj \ 63 $(SLO)$/optimizationstats.obj \ 64 $(SLO)$/graphiccollector.obj \ 65 $(SLO)$/pagecollector.obj \ 66 $(SLO)$/informationdialog.obj 67 68# --- Library ----------------------------------- 69 70SHL1TARGET= $(TARGET).uno 71 72SHL1STDLIBS= $(CPPUHELPERLIB) \ 73 $(CPPULIB) \ 74 $(SALLIB) 75SHL1DEPN= 76SHL1IMPLIB= i$(SHL1TARGET) 77SHL1LIBS= $(SLB)$/$(TARGET).lib 78SHL1DEF= $(MISC)$/$(SHL1TARGET).def 79SHL1VERSIONMAP=$(SOLARENV)/src/reg-component.map 80SHL1RPATH= OXT 81DEF1NAME= $(SHL1TARGET) 82 83COMPONENT_XCU_REPLACEMENT=s/@MINIMIZEREXTENSIONPRODUCTNAME@/Presentation Minimizer/g 84 85COMPONENT_MERGED_XCU= \ 86 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Addons.xcu \ 87 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ProtocolHandler.xcu \ 88 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/extension$/SunPresentationMinimizer.xcu 89 90COMPONENT_FILES= \ 91 $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/extension$/SunPresentationMinimizer.xcs 92 93# native libraries 94COMPONENT_LIBRARIES= \ 95 $(EXTENSIONDIR)$/SunPresentationMinimizer.uno$(DLLPOST) 96 97# rather freestyle or common to all? 98COMPONENT_BITMAPS= \ 99 $(EXTENSIONDIR)$/bitmaps$/opt_16.png \ 100 $(EXTENSIONDIR)$/bitmaps$/opt_26.png \ 101 $(EXTENSIONDIR)$/bitmaps$/opt_16_h.png \ 102 $(EXTENSIONDIR)$/bitmaps$/opt_26_h.png \ 103 $(EXTENSIONDIR)$/bitmaps$/minimizepresi_80.png \ 104 $(EXTENSIONDIR)$/bitmaps$/minimizepresi_80_h.png 105 106COMPONENT_IMAGES=\ 107 $(EXTENSIONDIR)$/bitmaps$/extension_32.png \ 108 $(EXTENSIONDIR)$/bitmaps$/extension_32_h.png 109 110# rather freestyle or common to all? 111COMPONENT_HELP= \ 112 $(EXTENSIONDIR)$/help$/help_de.odt \ 113 $(EXTENSIONDIR)$/help$/help_en-US.odt \ 114 $(EXTENSIONDIR)$/help$/component.txt 115 116# make sure to add your custom files here 117EXTENSION_PACKDEPS=$(COMPONENT_BITMAPS) $(COMPONENT_IMAGES) $(COMPONENT_HELP) 118 119ZIP2TARGET= presentation_minimizer_develop 120.IF "$(WITH_LANG)"!="" 121ZIP2DIR= $(MISC)/$(EXTENSIONNAME)_in/merge 122.ELSE # "$(WITH_LANG)"!="" 123ZIP2DIR= registry/data 124.ENDIF # "$(WITH_LANG)"!="" 125ZIP2EXT= .zip 126ZIP2FLAGS=-r 127ZIP2LIST= \ 128 org/openoffice/Office/Addons.xcu \ 129 org/openoffice/Office/extension/*.xcu 130 131# --- Targets ---------------------------------- 132 133.INCLUDE : extension_pre.mk 134 135.ENDIF # L10N_framework 136.INCLUDE : target.mk 137 138.IF "$(L10N_framework)"=="" 139.INCLUDE : extension_post.mk 140 141$(COMPONENT_BITMAPS) : $(SOLARSRC)$/$(RSCDEFIMG)$/minimizer$/$$(@:f) 142 @@-$(MKDIRHIER) $(@:d) 143 $(COPY) $< $@ 144 145$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f) 146 @@-$(MKDIRHIER) $(@:d) 147 $(COPY) $< $@ 148 149$(COMPONENT_HELP) : help$/$$(@:f) 150 @@-$(MKDIRHIER) $(@:d) 151 $(COPY) $< $@ 152 153.ENDIF # L10N_framework 154