1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
31 ENABLE_EXCEPTIONS
=TRUE
34 # --- Settings -----------------------------------------------------
36 .INCLUDE
: settings.mk
38 # --- Files --------------------------------------------------------
40 UNOUCRDEP
= $(SOLARBINDIR
)$/udkapi.rdb
41 UNOUCRRDB
= $(SOLARBINDIR
)$/udkapi.rdb
42 UNOUCROUT
= $(OUT
)$/inc
$/test
43 INCPRE
+= $(OUT
)$/inc
$/test
46 $(OBJ
)$/testhelper.obj \
47 $(OBJ
)$/testpropshlp.obj \
48 $(OBJ
)$/testidlclass.obj \
49 $(OBJ
)$/testproptyphlp.obj \
50 $(OBJ
)$/testimplhelper.obj \
51 $(OBJ
)$/testcontainer.obj
61 APP1DEF
= $(MISC
)$/$(APP1TARGET
).def
63 #############################################
65 APP2OBJS
= $(OBJ
)$/testdefaultbootstrapping.obj
66 APP2STDLIBS
+= $(CPPUHELPERLIB
) $(CPPULIB
) $(SALLIB
)
67 APP2TARGET
= testdefaultbootstrapping
69 #############################################
73 LIB1TARGET
=$(SLB
)$/cfg_test.lib
74 LIB1OBJFILES
=$(SLOFILES
)
77 APP3OBJS
= $(OBJ
)$/cfg_test.obj
78 APP3STDLIBS
+= $(CPPUHELPERLIB
) $(CPPULIB
) $(SALLIB
)
81 #############################################
83 ALLIDLFILES
:= helpertest.idl
85 # --- Targets ------------------------------------------------------
88 ALL
: $(BIN
)$/cpputest.rdb \
91 $(BIN
)$/testdefaultbootstrapping.pl \
93 $(BIN
)$/$(APP2TARGET
).bin \
94 $(BIN
)$/$(APP2TARGET
).Bin \
95 $(BIN
)$/$(APP2TARGET
).Exe
98 ALL
: $(BIN
)$/$(APP2TARGET
).exe
100 $(BIN
)$/$(APP2TARGET
).exe
: $(APP2TARGETN
)
106 $(BIN
)$/$(APP2TARGET
).bin
: $(APP2TARGETN
)
109 $(BIN
)$/$(APP2TARGET
).Bin
: $(APP2TARGETN
)
112 $(BIN
)$/$(APP2TARGET
).Exe
: $(APP2TARGETN
)
122 .IF
"$(COM)" == "MSC"
126 TYPES
:=test.A
;test.BA
;test.CA
;test.DBA
;test.E
;test.FE
;test.G
;test.H
;test.I
127 HELPERTYPES
:=com.sun.star.uno.XReference
;com.sun.star.uno.XAdapter
;com.sun.star.uno.XAggregation
;com.sun.star.uno.XWeak
;com.sun.star.lang.XComponent
;com.sun.star.lang.XTypeProvider
;com.sun.star.lang.XEventListener
;com.sun.star.lang.XSingleServiceFactory
;com.sun.star.lang.XMultiServiceFactory
;com.sun.star.registry.XRegistryKey
;com.sun.star.lang.XInitialization
;com.sun.star.lang.XServiceInfo
;com.sun.star.loader.XImplementationLoader
;com.sun.star.lang.IllegalAccessException
;com.sun.star.beans.XVetoableChangeListener
;com.sun.star.beans.XPropertySet
;com.sun.star.uno.XComponentContext
128 FACTORYTYPES
:=com.sun.star.lang.XComponent
;com.sun.star.registry.XSimpleRegistry
;com.sun.star.lang.XInitialization
;com.sun.star.lang.XMultiServiceFactory
;com.sun.star.loader.XImplementationLoader
;com.sun.star.registry.XImplementationRegistration
;com.sun.star.container.XSet
;com.sun.star.lang.XSingleServiceFactory
;com.sun.star.lang.XSingleComponentFactory
;com.sun.star.lang.XMultiComponentFactory
131 UNO_PATH
:= $(SOLARBINDIR
)
132 UNO_OUT
:= $(OUT
)$/bin
135 UNO_PATH
:= $(SOLARLIBDIR
)
136 UNO_OUT
:= $(OUT
)$/lib
140 $(UNO_OUT
)$/%$(EXT_SO
): $(UNO_PATH
)$/%$(EXT_SO
)
143 $(BIN
)$/cpputest.rdb
: $(ALLIDLFILES
) $(UNO_OUT
)$/invocadapt.uno
$(EXT_SO
) $(UNO_OUT
)$/bootstrap.uno
$(EXT_SO
)
144 $(IDLC
) -I
$(PRJ
) -I
$(SOLARIDLDIR
) -O
$(BIN
) $(ALLIDLFILES
)
145 $(REGMERGE
) $@
/UCR
$(BIN
)$/{$(?
:f
:s
/.idl
/.urd
/)}
146 $(REGMERGE
) $@
/ $(UNOUCRRDB
)
147 $(REGCOMP
) -register
-r
$@
-c reflection.uno
$(DLLPOST
)
150 unoheader
: $(BIN
)$/cpputest.rdb
151 $(CPPUMAKER
) $(CPPUMAKERFLAGS
) -BUCR
-O
$(UNOUCROUT
) -T
"$(TYPES);$(HELPERTYPES)" $(BIN
)$/cpputest.rdb
152 $(CPPUMAKER
) $(CPPUMAKERFLAGS
) -BUCR
-O
$(UNOUCROUT
) -T
"$(FACTORYTYPES)" $(BIN
)$/cpputest.rdb
155 $(BIN
)$/testdefaultbootstrapping.pl
: testdefaultbootstrapping.pl
156 cp testdefaultbootstrapping.pl
$@
158 $(BIN
)$/testrc
: makefile.mk
161 echo TestKey1
=com.sun.star.uno.NamingService.rdb
>> $@
164 echo
'TestKey1=file:///'$(PWD
)/$(BIN
)'/com.sun.star.uno.NamingService.rdb' >> $@