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 #*************************************************************************
36 ENABLE_EXCEPTIONS
=TRUE
38 # --- Settings -----------------------------------------------------
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"
52 @echo
"PDF Import extension disabled."
56 $(SLO
)$/filterdet.obj \
57 $(SLO
)$/pdfiadaptor.obj \
61 SHL1TARGET
=$(TARGET
).uno
65 $(SLB
)$/pdfparse.lib \
67 $(SLB
)$/pdfparsetree.lib \
69 $(SLB
)$/xpdfwrapper.lib \
79 SHL1STDLIBS
+=-lbasegfx_s
83 SHL1STDLIBS
+=-lbasegfx_s
85 SHL1LIBS
+=$(SOLARLIBDIR
)$/basegfx_s.lib
92 SHL1IMPLIB
= i
$(SHL1TARGET
)
93 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
94 SHL1VERSIONMAP
=exports.map
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
:=.
106 $(EXTENSIONDIR
)$/pdf_import_filter.xcu \
107 $(EXTENSIONDIR
)$/pdf_types.xcu
110 $(EXTENSIONDIR
)$/xpdfimport
$(EXECPOST
)
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
122 $(EXTENSIONDIR
)$/help
/component.txt
125 COMPONENT_LIBRARIES
= \
126 $(EXTENSIONDIR
)$/$(SHL1TARGET
)$(DLLPOST
)
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
136 .INCLUDE
: extension_post.mk
138 $(CONVERTER_FILE
) : $(BIN
)$/$$(@
:f
)
139 @@
-$(MKDIRHIER
) $(@
:d
)
142 $(COMPONENT_DIALOGS
) : dialogs
$/$$(@
:f
)
143 @@
-$(MKDIRHIER
) $(@
:d
)
146 $(COMPONENT_HELP
) : help
$/$$(@
:f
)
147 @@
-$(MKDIRHIER
) $(@
:d
)
150 $(COMPONENT_IMAGES
) : images
$/$$(@
:f
)
151 @@
-$(MKDIRHIER
) $(@
:d
)