xref: /aoo41x/main/extensions/source/ole/makefile.mk (revision b93bfd5e)
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
23PRJ=..$/..
24
25# -----------------------------------------------------------------
26
27PRJNAME=extensions
28TARGET=oleautobridge.uno
29TARGET2=oleautobridge2.uno
30
31ENABLE_EXCEPTIONS=TRUE
32
33.INCLUDE :  $(PRJ)$/util$/makefile.pmk
34
35LIBTARGET=NO
36USE_DEFFILE=YES
37
38USE_DEFFILE=TRUE
39
40INCPRE+= $(foreach,i,$(ATL_INCLUDE) -I$(i))
41
42# --- Settings -----------------------------------------------------
43
44.IF "$(GUI)" == "WNT" && "$(DISABLE_ATL)"==""
45
46SLOFILES= \
47            $(SLO)$/servreg.obj		\
48            $(SLO)$/servprov.obj	\
49            $(SLO)$/unoobjw.obj		\
50            $(SLO)$/oleobjw.obj		\
51            $(SLO)$/olethread.obj	\
52            $(SLO)$/oledll.obj		\
53	    $(SLO)$/jscriptclasses.obj	\
54	    $(SLO)$/ole2uno.obj		\
55	    $(SLO)$/windata.obj		\
56	    $(SLO)$/unotypewrapper.obj
57
58SECOND_BUILD=OWNGUID
59OWNGUID_SLOFILES=$(SLOFILES)
60OWNGUIDCDEFS+= -DOWNGUID
61
62# the original library
63SHL1TARGET=$(TARGET)
64SHL1STDLIBS=\
65        $(SALLIB) 	\
66	$(VOSLIB)	\
67	$(CPPULIB)	\
68	$(CPPUHELPERLIB)	\
69	$(OLE32LIB) 	\
70	$(UUIDLIB) 	\
71	$(ADVAPI32LIB)	\
72	$(OLEAUT32LIB)
73
74.IF "$(COM)"=="MSC"
75.IF "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999"
76    SHL1STDLIBS+= $(ATL_LIB)$/atls.lib
77.ENDIF # "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999"
78.ENDIF # "$(COM)"=="MSC"
79
80SHL1LIBS=
81SHL1OBJS=$(SLOFILES)
82
83DEF1NAME=$(SHL1TARGET)
84DEF1EXPORTFILE=$(SHL1TARGET).dxp
85
86# the second library
87SHL2TARGET=$(TARGET2)
88SHL2STDLIBS=\
89        $(SALLIB) 	\
90	$(VOSLIB)	\
91	$(CPPULIB)	\
92	$(CPPUHELPERLIB)	\
93	$(OLE32LIB) 	\
94	$(UUIDLIB) 	\
95	$(ADVAPI32LIB)	\
96	$(OLEAUT32LIB)
97
98.IF "$(COM)"=="MSC"
99.IF "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999"
100    SHL2STDLIBS+= $(ATL_LIB)$/atls.lib
101.ENDIF # "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999"
102.ENDIF # "$(COM)"=="MSC"
103
104SHL2LIBS=
105SHL2OBJS=$(REAL_OWNGUID_SLOFILES)
106
107DEF2NAME=$(SHL2TARGET)
108DEF2EXPORTFILE=$(TARGET).dxp
109
110.ENDIF
111
112#----------------------------------------------------------------
113
114.INCLUDE :  target.mk
115
116ALLTAR : $(MISC)/oleautobridge.component
117
118$(MISC)/oleautobridge.component .ERRREMOVE : \
119        $(SOLARENV)/bin/createcomponent.xslt oleautobridge.component
120    $(XSLTPROC) --nonet --stringparam uri \
121        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
122        $(SOLARENV)/bin/createcomponent.xslt oleautobridge.component
123