xref: /aoo4110/main/ucb/source/ucp/gio/makefile.mk (revision b1cdbd2c)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..$/..
25PRJNAME=ucb
26# Version
27UCPGIO_MAJOR=1
28TARGET=ucpgio
29ENABLE_EXCEPTIONS=TRUE
30USE_DEFFILE=TRUE
31NO_BSYMBOLIC=TRUE
32
33.INCLUDE: settings.mk
34.IF "$(L10N_framework)"==""
35
36.IF "$(ENABLE_GIO)"!=""
37COMPILER_WARN_ALL=TRUE
38PKGCONFIG_MODULES=gio-2.0
39.INCLUDE: pkg_config.mk
40
41.IF "$(OS)" == "SOLARIS"
42LINKFLAGS+=-z nodefs
43.ENDIF          # "$(OS)" == "SOLARIS"
44
45# no "lib" prefix
46DLLPRE =
47
48SLOFILES=$(SLO)$/gio_provider.obj\
49         $(SLO)$/gio_content.obj\
50         $(SLO)$/gio_resultset.obj\
51         $(SLO)$/gio_datasupplier.obj\
52         $(SLO)$/gio_seekable.obj\
53         $(SLO)$/gio_inputstream.obj\
54         $(SLO)$/gio_outputstream.obj\
55         $(SLO)$/gio_mount.obj
56
57SHL1TARGET=$(TARGET)$(UCPGIO_MAJOR).uno
58SHL1DEF=$(MISC)$/$(SHL1TARGET).def
59SHL1LIBS=$(SLB)$/$(TARGET).lib
60SHL1IMPLIB=i$(TARGET)
61SHL1STDLIBS=\
62	$(CPPUHELPERLIB) \
63	$(CPPULIB) \
64	$(SALLIB)  \
65	$(SALHELPERLIB)  \
66	$(UCBHELPERLIB)
67
68SHL1STDLIBS+=$(PKGCONFIG_LIBS)
69
70SHL1VERSIONMAP=$(SOLARENV)/src/component.map
71
72.ENDIF          # "$(ENABLE_GIO)"!=""
73.ENDIF # L10N_framework
74
75.INCLUDE: target.mk
76
77ALLTAR : $(MISC)/ucpgio.component
78
79$(MISC)/ucpgio.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
80        ucpgio.component
81    $(XSLTPROC) --nonet --stringparam uri \
82        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
83        $(SOLARENV)/bin/createcomponent.xslt ucpgio.component
84