xref: /aoo41x/main/extensions/source/ole/makefile.mk (revision 7871dc3e)
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
46.IF "$(USE_STLP_DEBUG)"!=""
47CDEFS+=-D_DEBUG
48.ENDIF # "$(USE_STLP_DEBUG)"!=""
49
50SLOFILES= \
51            $(SLO)$/servreg.obj		\
52            $(SLO)$/servprov.obj	\
53            $(SLO)$/unoobjw.obj		\
54            $(SLO)$/oleobjw.obj		\
55            $(SLO)$/olethread.obj	\
56            $(SLO)$/oledll.obj		\
57	    $(SLO)$/jscriptclasses.obj	\
58	    $(SLO)$/ole2uno.obj		\
59	    $(SLO)$/windata.obj		\
60	    $(SLO)$/unotypewrapper.obj
61
62SECOND_BUILD=OWNGUID
63OWNGUID_SLOFILES=$(SLOFILES)
64OWNGUIDCDEFS+= -DOWNGUID
65
66# the original library
67SHL1TARGET=$(TARGET)
68SHL1STDLIBS=\
69        $(SALLIB) 	\
70	$(VOSLIB)	\
71	$(CPPULIB)	\
72	$(CPPUHELPERLIB)	\
73	$(OLE32LIB) 	\
74	$(UUIDLIB) 	\
75	$(ADVAPI32LIB)	\
76	$(OLEAUT32LIB)
77
78.IF "$(COM)"=="MSC"
79.IF "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999"
80.IF "$(USE_STLP_DEBUG)" != ""
81    SHL1STDLIBS+= $(ATL_LIB)$/atlsd.lib
82.ELSE
83    SHL1STDLIBS+= $(ATL_LIB)$/atls.lib
84.ENDIF
85.ENDIF # "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999"
86.ENDIF # "$(COM)"=="MSC"
87
88SHL1LIBS=
89SHL1OBJS=$(SLOFILES)
90
91DEF1NAME=$(SHL1TARGET)
92DEF1EXPORTFILE=$(SHL1TARGET).dxp
93
94# the second library
95SHL2TARGET=$(TARGET2)
96SHL2STDLIBS=\
97        $(SALLIB) 	\
98	$(VOSLIB)	\
99	$(CPPULIB)	\
100	$(CPPUHELPERLIB)	\
101	$(OLE32LIB) 	\
102	$(UUIDLIB) 	\
103	$(ADVAPI32LIB)	\
104	$(OLEAUT32LIB)
105
106.IF "$(COM)"=="MSC"
107.IF "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999"
108.IF "$(USE_STLP_DEBUG)" != ""
109    SHL2STDLIBS+= $(ATL_LIB)$/atlsd.lib
110.ELSE
111    SHL2STDLIBS+= $(ATL_LIB)$/atls.lib
112.ENDIF
113.ENDIF # "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999"
114.ENDIF # "$(COM)"=="MSC"
115
116SHL2LIBS=
117SHL2OBJS=$(REAL_OWNGUID_SLOFILES)
118
119DEF2NAME=$(SHL2TARGET)
120DEF2EXPORTFILE=$(TARGET).dxp
121
122.ENDIF
123
124#----------------------------------------------------------------
125
126.INCLUDE :  target.mk
127
128ALLTAR : $(MISC)/oleautobridge.component
129
130$(MISC)/oleautobridge.component .ERRREMOVE : \
131        $(SOLARENV)/bin/createcomponent.xslt oleautobridge.component
132    $(XSLTPROC) --nonet --stringparam uri \
133        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
134        $(SOLARENV)/bin/createcomponent.xslt oleautobridge.component
135