Update ooo320-m1
[ooovba.git] / sdext / source / pdfimport / makefile.mk
blobf8c6f71f0d3d2c2cd5db8a12d64f359de97842fa
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.2.4.1 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/..
34 PRJNAME=sdext
35 TARGET=pdfimport
36 ENABLE_EXCEPTIONS=TRUE
38 # --- Settings -----------------------------------------------------
40 MKDEPENDSOLVER:=
41 .INCLUDE: settings.mk
43 .IF "$(L10N_framework)"==""
45 .INCLUDE: pdfisettings.pmk
46 INCPRE=-I$(PRJ)$/source$/pdfimport$/inc
48 # --- Files --------------------------------------------------------
50 EXTENSIONNAME:=PDFImport
51 EXTENSION_ZIPNAME:=pdfimport
53 .IF "$(ENABLE_PDFIMPORT)" == "NO"
54 @all:
55 @echo "PDF Import extension disabled."
56 .ENDIF
58 SLOFILES=\
59 $(SLO)$/filterdet.obj \
60 $(SLO)$/pdfiadaptor.obj \
61 $(SLO)$/services.obj
63 SHL1DLLPRE=
64 SHL1TARGET=$(TARGET).uno
66 SHL1LIBS=\
67 $(SLB)$/pdfmisc.lib \
68 $(SLB)$/pdfparse.lib \
69 $(SLB)$/pdfsax.lib \
70 $(SLB)$/pdfparsetree.lib \
71 $(SLB)$/pdfodf.lib \
72 $(SLB)$/xpdfwrapper.lib \
73 $(SLB)$/$(TARGET).lib
75 SHL1STDLIBS=\
76 $(CPPUHELPERLIB) \
77 $(ZLIB3RDLIB) \
78 $(CPPULIB) \
79 $(SALLIB)
81 .IF "$(GUI)" == "UNX"
82 SHL1STDLIBS+=-lbasegfx_s
83 .ELSE
84 .IF "$(GUI)" == "WNT"
85 .IF "$(COM)"=="GCC"
86 SHL1STDLIBS+=-lbasegfx_s
87 .ELSE
88 SHL1LIBS+=$(SOLARLIBDIR)$/basegfx_s.lib
89 .ENDIF
91 .ENDIF # WNT
92 .ENDIF # UNX
94 SHL1DEPN=
95 SHL1IMPLIB= i$(SHL1TARGET)
96 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
97 SHL1VERSIONMAP=exports.map
98 SHL1RPATH=OXT
100 DEF1NAME=$(SHL1TARGET)
102 # --- Extension packaging ------------------------------------------
104 DESCRIPTION_SRC:=config$/description.xml
105 MANIFEST_SRC:=config$/manifest.xml
106 COMPONENT_CONFIGDIR:=config
107 COMPONENT_CONFIGDEST:=.
108 COMPONENT_XCU= \
109 $(EXTENSIONDIR)$/pdf_import_filter.xcu \
110 $(EXTENSIONDIR)$/pdf_types.xcu
112 CONVERTER_FILE= \
113 $(EXTENSIONDIR)$/xpdfimport$(EXECPOST)
115 COMPONENT_DIALOGS= \
116 $(EXTENSIONDIR)$/basic$/Module1.xba \
117 $(EXTENSIONDIR)$/basic$/TargetChooser.xdl \
118 $(EXTENSIONDIR)$/basic$/dialog.xlb \
119 $(EXTENSIONDIR)$/basic$/impress.png \
120 $(EXTENSIONDIR)$/basic$/script.xlb \
121 $(EXTENSIONDIR)$/basic$/writer.png \
122 $(EXTENSIONDIR)$/xpdfimport_err.pdf
124 COMPONENT_HELP= \
125 $(EXTENSIONDIR)$/help/component.txt
127 # native libraries
128 COMPONENT_LIBRARIES= \
129 $(EXTENSIONDIR)$/$(SHL1TARGET)$(DLLPOST)
131 COMPONENT_IMAGES=\
132 $(EXTENSIONDIR)$/images$/pdfiext.png \
133 $(EXTENSIONDIR)$/images$/pdfiext_hc.png
135 EXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_HELP) $(COMPONENT_IMAGES) makefile.mk
137 .INCLUDE : extension_pre.mk
138 .ENDIF # L10N_framework
139 .INCLUDE : target.mk
140 .IF "$(L10N_framework)"==""
141 .INCLUDE : extension_post.mk
143 $(CONVERTER_FILE) : $(BIN)$/$$(@:f)
144 @@-$(MKDIRHIER) $(@:d)
145 $(COPY) $< $@
147 $(COMPONENT_DIALOGS) : dialogs$/$$(@:f)
148 @@-$(MKDIRHIER) $(@:d)
149 $(COPY) $< $@
151 $(COMPONENT_HELP) : help$/$$(@:f)
152 @@-$(MKDIRHIER) $(@:d)
153 $(COPY) $< $@
155 $(COMPONENT_IMAGES) : images$/$$(@:f)
156 @@-$(MKDIRHIER) $(@:d)
157 $(COPY) $< $@
158 .ENDIF # L10N_framework