update dev300-m58
[ooovba.git] / sdext / source / pdfimport / makefile.mk
blobd6cd4783454f2758c29a39dc3254a4a9b12eb787
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
42 .INCLUDE: pdfisettings.pmk
43 INCPRE=-I$(PRJ)$/source$/pdfimport$/inc
45 # --- Files --------------------------------------------------------
47 EXTENSIONNAME:=PDFImport
48 EXTENSION_ZIPNAME:=pdfimport
50 .IF "$(ENABLE_PDFIMPORT)" == "NO"
51 @all:
52 @echo "PDF Import extension disabled."
53 .ENDIF
55 SLOFILES=\
56 $(SLO)$/filterdet.obj \
57 $(SLO)$/pdfiadaptor.obj \
58 $(SLO)$/services.obj
60 SHL1DLLPRE=
61 SHL1TARGET=$(TARGET).uno
63 SHL1LIBS=\
64 $(SLB)$/pdfmisc.lib \
65 $(SLB)$/pdfparse.lib \
66 $(SLB)$/pdfsax.lib \
67 $(SLB)$/pdfparsetree.lib \
68 $(SLB)$/pdfodf.lib \
69 $(SLB)$/xpdfwrapper.lib \
70 $(SLB)$/$(TARGET).lib
72 SHL1STDLIBS=\
73 $(CPPUHELPERLIB) \
74 $(ZLIB3RDLIB) \
75 $(CPPULIB) \
76 $(SALLIB)
78 .IF "$(GUI)" == "UNX"
79 SHL1STDLIBS+=-lbasegfx_s
80 .ELSE
81 .IF "$(GUI)" == "WNT"
82 .IF "$(COM)"=="GCC"
83 SHL1STDLIBS+=-lbasegfx_s
84 .ELSE
85 SHL1LIBS+=$(SOLARLIBDIR)$/basegfx_s.lib
86 .ENDIF
88 .ENDIF # WNT
89 .ENDIF # UNX
91 SHL1DEPN=
92 SHL1IMPLIB= i$(SHL1TARGET)
93 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
94 SHL1VERSIONMAP=exports.map
95 SHL1RPATH=OXT
97 DEF1NAME=$(SHL1TARGET)
99 # --- Extension packaging ------------------------------------------
101 DESCRIPTION_SRC:=config$/description.xml
102 MANIFEST_SRC:=config$/manifest.xml
103 COMPONENT_CONFIGDIR:=config
104 COMPONENT_CONFIGDEST:=.
105 COMPONENT_XCU= \
106 $(EXTENSIONDIR)$/pdf_import_filter.xcu \
107 $(EXTENSIONDIR)$/pdf_types.xcu
109 CONVERTER_FILE= \
110 $(EXTENSIONDIR)$/xpdfimport$(EXECPOST)
112 COMPONENT_DIALOGS= \
113 $(EXTENSIONDIR)$/basic$/Module1.xba \
114 $(EXTENSIONDIR)$/basic$/TargetChooser.xdl \
115 $(EXTENSIONDIR)$/basic$/dialog.xlb \
116 $(EXTENSIONDIR)$/basic$/impress.png \
117 $(EXTENSIONDIR)$/basic$/script.xlb \
118 $(EXTENSIONDIR)$/basic$/writer.png \
119 $(EXTENSIONDIR)$/xpdfimport_err.pdf
121 COMPONENT_HELP= \
122 $(EXTENSIONDIR)$/help/component.txt
124 # native libraries
125 COMPONENT_LIBRARIES= \
126 $(EXTENSIONDIR)$/$(SHL1TARGET)$(DLLPOST)
128 COMPONENT_IMAGES=\
129 $(EXTENSIONDIR)$/images$/pdfiext.png \
130 $(EXTENSIONDIR)$/images$/pdfiext_hc.png
132 EXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_HELP) $(COMPONENT_IMAGES) makefile.mk
134 .INCLUDE : extension_pre.mk
135 .INCLUDE : target.mk
136 .INCLUDE : extension_post.mk
138 $(CONVERTER_FILE) : $(BIN)$/$$(@:f)
139 @@-$(MKDIRHIER) $(@:d)
140 $(COPY) $< $@
142 $(COMPONENT_DIALOGS) : dialogs$/$$(@:f)
143 @@-$(MKDIRHIER) $(@:d)
144 $(COPY) $< $@
146 $(COMPONENT_HELP) : help$/$$(@:f)
147 @@-$(MKDIRHIER) $(@:d)
148 $(COPY) $< $@
150 $(COMPONENT_IMAGES) : images$/$$(@:f)
151 @@-$(MKDIRHIER) $(@:d)
152 $(COPY) $< $@