xref: /aoo42x/main/sdext/source/minimizer/makefile.mk (revision 880c69c6)
17871dc3eSAndrew Rist#**************************************************************
2*880c69c6SAriel Constenla-Haile#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*880c69c6SAriel Constenla-Haile#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*880c69c6SAriel Constenla-Haile#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
19*880c69c6SAriel Constenla-Haile#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
22*880c69c6SAriel Constenla-Haile
23*880c69c6SAriel Constenla-Haile
24cdf0e10cSrcweirPRJ=..$/..
25cdf0e10cSrcweirPRJNAME=sdext
26*880c69c6SAriel Constenla-HaileTARGET=SunPresentationMinimizer
27cdf0e10cSrcweirGEN_HID=FALSE
28cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
29cdf0e10cSrcweir
30cdf0e10cSrcweir# --- Settings ----------------------------------
31cdf0e10cSrcweir.INCLUDE : settings.mk
32e4a7f284SAriel Constenla-Haile.IF "$(L10N_framework)"==""
33*880c69c6SAriel Constenla-Haile.INCLUDE :  $(PRJ)$/source$/minimizer$/minimizer.pmk
34*880c69c6SAriel Constenla-Haile.INCLUDE :  $(PRJ)$/util$/makefile.pmk
35cdf0e10cSrcweir
36*880c69c6SAriel Constenla-Haile# set in minimizer.pmk
37*880c69c6SAriel Constenla-Haile#EXTENSIONNAME:=PresentationMinimizer
38*880c69c6SAriel Constenla-HaileEXTENSION_ZIPNAME:=presentation-minimizer
39*880c69c6SAriel Constenla-Haile
40*880c69c6SAriel Constenla-Haile.IF "$(ENABLE_MINIMIZER)" != "YES"
41*880c69c6SAriel Constenla-Haile@all:
42*880c69c6SAriel Constenla-Haile	@echo "Presentation Minimizer build disabled."
43*880c69c6SAriel Constenla-Haile.ENDIF
44cdf0e10cSrcweir
45cdf0e10cSrcweirDLLPRE=
46cdf0e10cSrcweir
47cdf0e10cSrcweir# --- Files -------------------------------------
48cdf0e10cSrcweir
49*880c69c6SAriel Constenla-HaileSLOFILES=	$(SLO)$/unodialog.obj				\
50*880c69c6SAriel Constenla-Haile			$(SLO)$/optimizerdialog.obj			\
51*880c69c6SAriel Constenla-Haile			$(SLO)$/optimizerdialogcontrols.obj	\
52*880c69c6SAriel Constenla-Haile			$(SLO)$/configurationaccess.obj		\
53*880c69c6SAriel Constenla-Haile			$(SLO)$/impoptimizer.obj			\
54*880c69c6SAriel Constenla-Haile			$(SLO)$/pppoptimizer.obj			\
55*880c69c6SAriel Constenla-Haile			$(SLO)$/pppoptimizeruno.obj			\
56*880c69c6SAriel Constenla-Haile			$(SLO)$/pppoptimizertoken.obj		\
57*880c69c6SAriel Constenla-Haile			$(SLO)$/pppoptimizerdialog.obj		\
58*880c69c6SAriel Constenla-Haile			$(SLO)$/fileopendialog.obj			\
59*880c69c6SAriel Constenla-Haile			$(SLO)$/optimizationstats.obj		\
60*880c69c6SAriel Constenla-Haile			$(SLO)$/graphiccollector.obj		\
61*880c69c6SAriel Constenla-Haile			$(SLO)$/pagecollector.obj			\
62*880c69c6SAriel Constenla-Haile			$(SLO)$/informationdialog.obj
63cdf0e10cSrcweir
64cdf0e10cSrcweir# --- Library -----------------------------------
65cdf0e10cSrcweir
66*880c69c6SAriel Constenla-HaileSHL1TARGET=		$(TARGET).uno
67cdf0e10cSrcweir
68*880c69c6SAriel Constenla-HaileSHL1STDLIBS=	$(CPPUHELPERLIB)	\
69*880c69c6SAriel Constenla-Haile				$(CPPULIB)			\
70*880c69c6SAriel Constenla-Haile				$(SALLIB)
71cdf0e10cSrcweirSHL1DEPN=
72*880c69c6SAriel Constenla-HaileSHL1IMPLIB=		i$(SHL1TARGET)
73*880c69c6SAriel Constenla-HaileSHL1LIBS=		$(SLB)$/$(TARGET).lib
74*880c69c6SAriel Constenla-HaileSHL1DEF=		$(MISC)$/$(SHL1TARGET).def
75*880c69c6SAriel Constenla-HaileSHL1VERSIONMAP=$(SOLARENV)/src/reg-component.map
76*880c69c6SAriel Constenla-HaileSHL1RPATH=      OXT
77*880c69c6SAriel Constenla-HaileDEF1NAME=		$(SHL1TARGET)
78*880c69c6SAriel Constenla-Haile
79*880c69c6SAriel Constenla-HaileCOMPONENT_XCU_REPLACEMENT=s/@MINIMIZEREXTENSIONPRODUCTNAME@/Presentation Minimizer/g
80*880c69c6SAriel Constenla-Haile
81*880c69c6SAriel Constenla-HaileCOMPONENT_MERGED_XCU= \
82*880c69c6SAriel Constenla-Haile    $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Addons.xcu \
83*880c69c6SAriel Constenla-Haile    $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ProtocolHandler.xcu \
84*880c69c6SAriel Constenla-Haile    $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/extension$/SunPresentationMinimizer.xcu
85*880c69c6SAriel Constenla-Haile
86*880c69c6SAriel Constenla-HaileCOMPONENT_FILES= \
87*880c69c6SAriel Constenla-Haile    $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/extension$/SunPresentationMinimizer.xcs
88*880c69c6SAriel Constenla-Haile
89*880c69c6SAriel Constenla-Haile# native libraries
90*880c69c6SAriel Constenla-HaileCOMPONENT_LIBRARIES= \
91*880c69c6SAriel Constenla-Haile    $(EXTENSIONDIR)$/SunPresentationMinimizer.uno$(DLLPOST)
92*880c69c6SAriel Constenla-Haile
93*880c69c6SAriel Constenla-Haile# rather freestyle or common to all?
94*880c69c6SAriel Constenla-HaileCOMPONENT_BITMAPS= \
95*880c69c6SAriel Constenla-Haile	$(EXTENSIONDIR)$/bitmaps$/opt_16.png \
96*880c69c6SAriel Constenla-Haile	$(EXTENSIONDIR)$/bitmaps$/opt_26.png \
97*880c69c6SAriel Constenla-Haile	$(EXTENSIONDIR)$/bitmaps$/opt_16_h.png \
98*880c69c6SAriel Constenla-Haile	$(EXTENSIONDIR)$/bitmaps$/opt_26_h.png \
99*880c69c6SAriel Constenla-Haile	$(EXTENSIONDIR)$/bitmaps$/minimizepresi_80.png \
100*880c69c6SAriel Constenla-Haile	$(EXTENSIONDIR)$/bitmaps$/minimizepresi_80_h.png
101*880c69c6SAriel Constenla-Haile
102*880c69c6SAriel Constenla-HaileCOMPONENT_IMAGES=\
103*880c69c6SAriel Constenla-Haile	$(EXTENSIONDIR)$/bitmaps$/extension_32.png \
104*880c69c6SAriel Constenla-Haile	$(EXTENSIONDIR)$/bitmaps$/extension_32_h.png
105*880c69c6SAriel Constenla-Haile
106*880c69c6SAriel Constenla-Haile# rather freestyle or common to all?
107*880c69c6SAriel Constenla-HaileCOMPONENT_HELP= \
108*880c69c6SAriel Constenla-Haile    $(EXTENSIONDIR)$/help$/help_de.odt \
109*880c69c6SAriel Constenla-Haile    $(EXTENSIONDIR)$/help$/help_en-US.odt \
110*880c69c6SAriel Constenla-Haile    $(EXTENSIONDIR)$/help$/component.txt
111*880c69c6SAriel Constenla-Haile
112*880c69c6SAriel Constenla-Haile# make sure to add your custom files here
113*880c69c6SAriel Constenla-HaileEXTENSION_PACKDEPS=$(COMPONENT_BITMAPS) $(COMPONENT_IMAGES) $(COMPONENT_HELP)
114*880c69c6SAriel Constenla-Haile
115*880c69c6SAriel Constenla-HaileZIP2TARGET=     presentation_minimizer_develop
116*880c69c6SAriel Constenla-Haile.IF "$(WITH_LANG)"!=""
117*880c69c6SAriel Constenla-HaileZIP2DIR=        $(MISC)/$(EXTENSIONNAME)_in/merge
118*880c69c6SAriel Constenla-Haile.ELSE          # "$(WITH_LANG)"!=""
119*880c69c6SAriel Constenla-HaileZIP2DIR=        registry/data
120*880c69c6SAriel Constenla-Haile.ENDIF          # "$(WITH_LANG)"!=""
121*880c69c6SAriel Constenla-HaileZIP2EXT=        .zip
122*880c69c6SAriel Constenla-HaileZIP2FLAGS=-r
123*880c69c6SAriel Constenla-HaileZIP2LIST= \
124*880c69c6SAriel Constenla-Haile    org/openoffice/Office/Addons.xcu \
125*880c69c6SAriel Constenla-Haile    org/openoffice/Office/extension/*.xcu
126cdf0e10cSrcweir
127e4a7f284SAriel Constenla-Haile# --- Targets ----------------------------------
128cdf0e10cSrcweir
129*880c69c6SAriel Constenla-Haile.INCLUDE : extension_pre.mk
130*880c69c6SAriel Constenla-Haile
131cdf0e10cSrcweir.ENDIF # L10N_framework
132e4a7f284SAriel Constenla-Haile.INCLUDE : target.mk
133e4a7f284SAriel Constenla-Haile
134*880c69c6SAriel Constenla-Haile.IF "$(L10N_framework)"==""
135*880c69c6SAriel Constenla-Haile.INCLUDE : extension_post.mk
136e4a7f284SAriel Constenla-Haile
137*880c69c6SAriel Constenla-Haile$(COMPONENT_BITMAPS) : $(SOLARSRC)$/$(RSCDEFIMG)$/minimizer$/$$(@:f)
138*880c69c6SAriel Constenla-Haile	@@-$(MKDIRHIER) $(@:d)
139*880c69c6SAriel Constenla-Haile    $(COPY) $< $@
140e4a7f284SAriel Constenla-Haile
141*880c69c6SAriel Constenla-Haile$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
142*880c69c6SAriel Constenla-Haile	@@-$(MKDIRHIER) $(@:d)
143*880c69c6SAriel Constenla-Haile    $(COPY) $< $@
144*880c69c6SAriel Constenla-Haile
145*880c69c6SAriel Constenla-Haile$(COMPONENT_HELP) : help$/$$(@:f)
146*880c69c6SAriel Constenla-Haile	@@-$(MKDIRHIER) $(@:d)
147*880c69c6SAriel Constenla-Haile    $(COPY) $< $@
148*880c69c6SAriel Constenla-Haile
149*880c69c6SAriel Constenla-Haile.ENDIF # L10N_framework
150