xref: /aoo41x/main/sdext/source/pdfimport/makefile.mk (revision cdf0e10c)
1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir#*************************************************************************
27*cdf0e10cSrcweir
28*cdf0e10cSrcweirPRJ=..$/..
29*cdf0e10cSrcweir
30*cdf0e10cSrcweirPRJNAME=sdext
31*cdf0e10cSrcweirTARGET=pdfimport
32*cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir# --- Settings -----------------------------------------------------
35*cdf0e10cSrcweir
36*cdf0e10cSrcweirMKDEPENDSOLVER:=
37*cdf0e10cSrcweir.INCLUDE: settings.mk
38*cdf0e10cSrcweir
39*cdf0e10cSrcweir.IF "$(L10N_framework)"==""
40*cdf0e10cSrcweir
41*cdf0e10cSrcweir.INCLUDE: pdfisettings.pmk
42*cdf0e10cSrcweirINCPRE=-I$(PRJ)$/source$/pdfimport$/inc
43*cdf0e10cSrcweir
44*cdf0e10cSrcweir# --- Files --------------------------------------------------------
45*cdf0e10cSrcweir
46*cdf0e10cSrcweirEXTENSIONNAME:=PDFImport
47*cdf0e10cSrcweirEXTENSION_ZIPNAME:=pdfimport
48*cdf0e10cSrcweir
49*cdf0e10cSrcweir.IF "$(ENABLE_PDFIMPORT)" == "NO"
50*cdf0e10cSrcweir@all:
51*cdf0e10cSrcweir	@echo "PDF Import extension disabled."
52*cdf0e10cSrcweir.ENDIF
53*cdf0e10cSrcweir
54*cdf0e10cSrcweirSLOFILES=\
55*cdf0e10cSrcweir    $(SLO)$/filterdet.obj   \
56*cdf0e10cSrcweir    $(SLO)$/pdfiadaptor.obj \
57*cdf0e10cSrcweir    $(SLO)$/services.obj
58*cdf0e10cSrcweir
59*cdf0e10cSrcweirSHL1DLLPRE=
60*cdf0e10cSrcweirSHL1TARGET=$(TARGET).uno
61*cdf0e10cSrcweir
62*cdf0e10cSrcweirSHL1LIBS=\
63*cdf0e10cSrcweir	$(SLB)$/pdfmisc.lib \
64*cdf0e10cSrcweir	$(SLB)$/pdfparse.lib \
65*cdf0e10cSrcweir	$(SLB)$/pdfsax.lib \
66*cdf0e10cSrcweir	$(SLB)$/pdfparsetree.lib \
67*cdf0e10cSrcweir	$(SLB)$/pdfodf.lib \
68*cdf0e10cSrcweir	$(SLB)$/xpdfwrapper.lib \
69*cdf0e10cSrcweir	$(SLB)$/$(TARGET).lib
70*cdf0e10cSrcweir
71*cdf0e10cSrcweirSHL1STDLIBS=\
72*cdf0e10cSrcweir    $(CPPUHELPERLIB)	\
73*cdf0e10cSrcweir	$(ZLIB3RDLIB)	    \
74*cdf0e10cSrcweir	$(CPPULIB)			\
75*cdf0e10cSrcweir	$(SALLIB)
76*cdf0e10cSrcweir
77*cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
78*cdf0e10cSrcweir    SHL1STDLIBS+=-lbasegfx_s
79*cdf0e10cSrcweir.ELSE
80*cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
81*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
82*cdf0e10cSrcweir    SHL1STDLIBS+=-lbasegfx_s
83*cdf0e10cSrcweir.ELSE
84*cdf0e10cSrcweir    SHL1LIBS+=$(SOLARLIBDIR)$/basegfx_s.lib
85*cdf0e10cSrcweir.ENDIF
86*cdf0e10cSrcweir
87*cdf0e10cSrcweir.ENDIF # WNT
88*cdf0e10cSrcweir.ENDIF # UNX
89*cdf0e10cSrcweir
90*cdf0e10cSrcweirSHL1DEPN=
91*cdf0e10cSrcweirSHL1IMPLIB=	i$(SHL1TARGET)
92*cdf0e10cSrcweirSHL1DEF=	$(MISC)$/$(SHL1TARGET).def
93*cdf0e10cSrcweirSHL1VERSIONMAP=$(SOLARENV)/src/reg-component.map
94*cdf0e10cSrcweirSHL1RPATH=OXT
95*cdf0e10cSrcweir
96*cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
97*cdf0e10cSrcweir
98*cdf0e10cSrcweir# --- Extension packaging ------------------------------------------
99*cdf0e10cSrcweir
100*cdf0e10cSrcweirDESCRIPTION_SRC:=config$/description.xml
101*cdf0e10cSrcweirMANIFEST_SRC:=config$/manifest.xml
102*cdf0e10cSrcweirCOMPONENT_CONFIGDIR:=config
103*cdf0e10cSrcweirCOMPONENT_CONFIGDEST:=.
104*cdf0e10cSrcweirCOMPONENT_XCU= \
105*cdf0e10cSrcweir    $(EXTENSIONDIR)$/pdf_import_filter.xcu \
106*cdf0e10cSrcweir    $(EXTENSIONDIR)$/pdf_types.xcu
107*cdf0e10cSrcweir
108*cdf0e10cSrcweirCONVERTER_FILE= \
109*cdf0e10cSrcweir    $(EXTENSIONDIR)$/xpdfimport$(EXECPOST)
110*cdf0e10cSrcweir
111*cdf0e10cSrcweirCOMPONENT_DIALOGS= \
112*cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/Module1.xba \
113*cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/TargetChooser.xdl \
114*cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/dialog.xlb \
115*cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/impress.png \
116*cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/script.xlb \
117*cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/writer.png \
118*cdf0e10cSrcweir    $(EXTENSIONDIR)$/xpdfimport_err.pdf
119*cdf0e10cSrcweir
120*cdf0e10cSrcweirCOMPONENT_HELP= \
121*cdf0e10cSrcweir	$(EXTENSIONDIR)$/help/component.txt
122*cdf0e10cSrcweir
123*cdf0e10cSrcweir# native libraries
124*cdf0e10cSrcweirCOMPONENT_LIBRARIES= \
125*cdf0e10cSrcweir    $(EXTENSIONDIR)$/$(SHL1TARGET)$(DLLPOST)
126*cdf0e10cSrcweir
127*cdf0e10cSrcweirCOMPONENT_IMAGES=\
128*cdf0e10cSrcweir	$(EXTENSIONDIR)$/images$/extension_32.png \
129*cdf0e10cSrcweir	$(EXTENSIONDIR)$/images$/extension_32_h.png
130*cdf0e10cSrcweir
131*cdf0e10cSrcweirEXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_HELP) $(COMPONENT_IMAGES) makefile.mk
132*cdf0e10cSrcweir
133*cdf0e10cSrcweir.INCLUDE : extension_pre.mk
134*cdf0e10cSrcweir.ENDIF # L10N_framework
135*cdf0e10cSrcweir.INCLUDE : target.mk
136*cdf0e10cSrcweir.IF "$(L10N_framework)"==""
137*cdf0e10cSrcweir.INCLUDE : extension_post.mk
138*cdf0e10cSrcweir
139*cdf0e10cSrcweir$(CONVERTER_FILE) : $(BIN)$/$$(@:f)
140*cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
141*cdf0e10cSrcweir    $(COPY) $< $@
142*cdf0e10cSrcweir
143*cdf0e10cSrcweir$(COMPONENT_DIALOGS) : dialogs$/$$(@:f)
144*cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
145*cdf0e10cSrcweir    $(COPY) $< $@
146*cdf0e10cSrcweir
147*cdf0e10cSrcweir$(COMPONENT_HELP) : help$/$$(@:f)
148*cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
149*cdf0e10cSrcweir    $(COPY) $< $@
150*cdf0e10cSrcweir
151*cdf0e10cSrcweir$(COMPONENT_IMAGES) :  $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
152*cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
153*cdf0e10cSrcweir    $(COPY) $< $@
154*cdf0e10cSrcweir.ENDIF # L10N_framework
155*cdf0e10cSrcweir
156