xref: /aoo41x/main/ucb/source/ucp/gio/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..$/..$/..
29PRJNAME=ucb
30# Version
31UCPGIO_MAJOR=1
32TARGET=ucpgio
33ENABLE_EXCEPTIONS=TRUE
34USE_DEFFILE=TRUE
35NO_BSYMBOLIC=TRUE
36
37.INCLUDE: settings.mk
38.IF "$(L10N_framework)"==""
39
40.IF "$(ENABLE_GIO)"!=""
41COMPILER_WARN_ALL=TRUE
42PKGCONFIG_MODULES=gio-2.0
43.INCLUDE: pkg_config.mk
44
45.IF "$(OS)" == "SOLARIS"
46LINKFLAGS+=-z nodefs
47.ENDIF          # "$(OS)" == "SOLARIS"
48
49# no "lib" prefix
50DLLPRE =
51
52SLOFILES=$(SLO)$/gio_provider.obj\
53         $(SLO)$/gio_content.obj\
54         $(SLO)$/gio_resultset.obj\
55         $(SLO)$/gio_datasupplier.obj\
56         $(SLO)$/gio_seekable.obj\
57         $(SLO)$/gio_inputstream.obj\
58         $(SLO)$/gio_outputstream.obj\
59         $(SLO)$/gio_mount.obj
60
61SHL1TARGET=$(TARGET)$(UCPGIO_MAJOR).uno
62SHL1DEF=$(MISC)$/$(SHL1TARGET).def
63SHL1LIBS=$(SLB)$/$(TARGET).lib
64SHL1IMPLIB=i$(TARGET)
65SHL1STDLIBS=\
66	$(CPPUHELPERLIB) \
67	$(CPPULIB) \
68	$(SALLIB)  \
69	$(SALHELPERLIB)  \
70	$(UCBHELPERLIB)
71
72SHL1STDLIBS+=$(PKGCONFIG_LIBS)
73
74SHL1VERSIONMAP=$(SOLARENV)/src/component.map
75
76.ENDIF          # "$(ENABLE_GIO)"!=""
77.ENDIF # L10N_framework
78
79.INCLUDE: target.mk
80
81ALLTAR : $(MISC)/ucpgio.component
82
83$(MISC)/ucpgio.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
84        ucpgio.component
85    $(XSLTPROC) --nonet --stringparam uri \
86        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
87        $(SOLARENV)/bin/createcomponent.xslt ucpgio.component
88