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#************************************************************************* 27PRJ=.. 28 29PRJNAME=stoc 30TARGET=stoc 31TARGET1=testloader 32TARGET2=testregistry 33TARGET3=testsmgr 34TARGET4=testcorefl 35TARGET5=testinvocation 36TARGET6=testintrosp 37TARGET7=testconv 38TARGET8=testproxyfac 39TARGET9=testsmgr2 40TARGETTYPE=CUI 41#LIBTARGET=NO 42ENABLE_EXCEPTIONS=TRUE 43NO_BSYMBOLIC=TRUE 44 45# --- Settings ----------------------------------------------------- 46 47.INCLUDE : settings.mk 48 49# --- smgr component ----------------------------------------------- 50SHL1OBJS= \ 51 $(OBJ)$/testsmgr_cpnt.obj 52 53SHL1STDLIBS= \ 54 $(CPPULIB) \ 55 $(CPPUHELPERLIB) \ 56 $(SALHELPERLIB) \ 57 $(SALLIB) 58 59SHL1TARGET=testsmgr_component 60SHL1DEPN= 61SHL1IMPLIB=i$(SHL1TARGET) 62#SHL1LIBS=$(SLB)$/$(SHL1TARGET).lib 63SHL1DEF=$(MISC)$/$(SHL1TARGET).def 64DEF1NAME=$(SHL1TARGET) 65SHL1VERSIONMAP=testsmgr_cpnt.map 66 67# --- Application 1 ------------------------------------------------ 68APP1TARGET= $(TARGET1) 69APP1OBJS= $(OBJ)$/testloader.obj 70 71APP1STDLIBS= \ 72 $(CPPULIB) \ 73 $(CPPUHELPERLIB) \ 74 $(SALHELPERLIB) \ 75 $(SALLIB) 76 77# --- Application 2 ------------------------------------------------ 78APP2TARGET= $(TARGET2) 79APP2OBJS= $(OBJ)$/testregistry.obj $(OBJ)$/mergekeys_.obj 80 81APP2STDLIBS= \ 82 $(CPPULIB) \ 83 $(CPPUHELPERLIB) \ 84 $(SALHELPERLIB) \ 85 $(REGLIB) \ 86 $(SALLIB) 87 88# --- Application 3 - testsmgr main ------------------------------------ 89APP3TARGET= $(TARGET3) 90APP3OBJS = $(OBJ)$/testsmgr.obj 91APP3STDLIBS= \ 92 $(CPPULIB) \ 93 $(CPPUHELPERLIB) \ 94 $(SALHELPERLIB) \ 95 $(REGLIB) \ 96 $(SALLIB) 97 98.IF "$(GUI)"=="UNX" 99APP3STDLIBS+= -l$(SHL1TARGET) 100.ENDIF 101.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2" 102APP3STDLIBS+= i$(SHL1TARGET).lib 103.ENDIF 104 105# --- Application 4 - testcorefl main ------------------------------------ 106APP4TARGET= $(TARGET4) 107APP4OBJS = $(OBJ)$/testcorefl.obj 108APP4STDLIBS= \ 109 $(CPPULIB) \ 110 $(CPPUHELPERLIB) \ 111 $(SALLIB) 112 113# --- Application 5 - testinvocation main ------------------------------------ 114APP5TARGET= $(TARGET5) 115APP5OBJS = $(OBJ)$/testiadapter.obj 116APP5STDLIBS= \ 117 $(CPPULIB) \ 118 $(CPPUHELPERLIB) \ 119 $(SALLIB) 120 121# --- Application 6 - testitrosp main ------------------------------------ 122APP6TARGET= $(TARGET6) 123APP6OBJS = $(OBJ)$/testintrosp.obj 124APP6STDLIBS= \ 125 $(CPPULIB) \ 126 $(CPPUHELPERLIB) \ 127 $(SALHELPERLIB) \ 128 $(SALLIB) 129 130# --- Application 7 - testconv main ------------------------------------ 131APP7TARGET= $(TARGET7) 132APP7OBJS = $(OBJ)$/testconv.obj 133APP7STDLIBS= \ 134 $(CPPULIB) \ 135 $(CPPUHELPERLIB) \ 136 $(SALLIB) 137 138# --- Application 8 - testproxyfac main ------------------------------------ 139APP8TARGET= $(TARGET8) 140APP8OBJS = $(OBJ)$/testproxyfac.obj 141APP8STDLIBS= \ 142 $(CPPULIB) \ 143 $(CPPUHELPERLIB) \ 144 $(SALLIB) 145 146# --- Application 9 - testproxyfac main ------------------------------------ 147APP9TARGET= $(TARGET9) 148APP9OBJS = $(OBJ)$/testsmgr2.obj 149APP9STDLIBS= \ 150 $(CPPULIB) \ 151 $(CPPUHELPERLIB) \ 152 $(SALLIB) 153 154 155ALLIDLFILES:= testcorefl.idl language_binding.idl testintrosp.idl 156 157 158# --- Target ------------------------------------------------ 159 160.IF "$(depend)" == "" 161ALL : $(MISC)$/test_types_generated.flag \ 162 $(BIN)$/test1.rdb \ 163 $(BIN)$/test2.rdb \ 164 ALLTAR 165.ELSE 166ALL: ALLDEP 167.ENDIF 168 169.INCLUDE : target.mk 170 171CPPUMAKERFLAGS = 172.IF "$(COM)" == "MSC" 173CPPUMAKERFLAGS = -L 174.ENDIF 175 176FACTORYTYPES:= -T com.sun.star.lang.XSingleComponentFactory \ 177 -T com.sun.star.uno.XComponentContext \ 178 -T com.sun.star.uno.XWeak \ 179 -T com.sun.star.container.XEnumeration \ 180 -T com.sun.star.lang.XComponent \ 181 -T com.sun.star.registry.XSimpleRegistry \ 182 -T com.sun.star.lang.XInitialization \ 183 -T com.sun.star.lang.XMultiServiceFactory\ 184 -T com.sun.star.loader.XImplementationLoader \ 185 -T com.sun.star.registry.XImplementationRegistration \ 186 -T com.sun.star.container.XSet \ 187 -T com.sun.star.lang.XSingleServiceFactory\ 188 -T com.sun.star.lang.XServiceInfo \ 189 -T com.sun.star.container.XContentEnumerationAccess \ 190 -T com.sun.star.container.XEnumeration 191 192TESTCOREFL:=ModuleC;ModuleC.XInterfaceA;ModuleC.XInterfaceB;ModuleA.XInterface1;com.sun.star.reflection.XIdlReflection;com.sun.star.reflection.XIdlField;com.sun.star.reflection.XIdlArray;com.sun.star.reflection.XIdlMethod;com.sun.star.reflection.XIdlClass;com.sun.star.beans.XPropertySet;com.sun.star.lang.XComponent;com.sun.star.container.XHierarchicalNameAccess;com.sun.star.reflection.XIdlField2;com.sun.star.lang.DisposedException 193TESTIADAPTER:=com.sun.star.beans.XIntrospection;com.sun.star.beans.MethodConcept;com.sun.star.beans.XExactName;com.sun.star.lang.XTypeProvider;com.sun.star.uno.XAggregation;com.sun.star.script.XInvocationAdapterFactory;com.sun.star.script.XInvocationAdapterFactory2;com.sun.star.script.XInvocation;com.sun.star.lang.XMultiServiceFactory;com.sun.star.registry.XSimpleRegistry;com.sun.star.lang.XInitialization;test.XLanguageBindingTest 194TESTINTROSP:=ModuleA;ModuleA.XIntroTest;com.sun.star.beans.XPropertySet;com.sun.star.container.XIndexAccess;com.sun.star.container.XNameAccess;com.sun.star.beans.PropertyAttribute;com.sun.star.beans.PropertyConcept 195TESTCONV:=com.sun.star.script.XTypeConverter 196TESTPROXYFAC:=com.sun.star.reflection.XProxyFactory 197TESTSECURITY:=com.sun.star.security.AllPermission;com.sun.star.security.XPolicy;com.sun.star.security.XAccessController;com.sun.star.io.FilePermission;com.sun.star.connection.SocketPermission;com.sun.star.uno.XCurrentContext 198 199$(BIN)$/test1.rdb: $(SHL1TARGETN) 200.IF "$(GUI)"=="UNX" 201 cp $(SHL1TARGETN) $(BIN) 202.ENDIF 203 cd $(BIN) && regcomp -register -r test1.rdb -c $(SHL1TARGET) 204 205$(BIN)$/test2.rdb: 206 cd $(BIN) && regcomp -register -r test2.rdb -c remotebridge.uno$(DLLPOST) 207 208$(BIN)$/stoctest.rdb: $(ALLIDLFILES) 209 idlc -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $? 210 regmerge $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)} 211 regmerge $@ / $(SOLARBINDIR)$/udkapi.rdb 212 regcomp -register -r $@ -c reflection.uno$(DLLPOST) 213 touch $@ 214 215$(MISC)$/test_types_generated.flag : $(BIN)$/stoctest.rdb makefile.mk 216 -rm -f $(MISC)$/test_types_generated.flag 217 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) $(FACTORYTYPES) -T"$(TESTIADAPTER)" $(BIN)$/stoctest.rdb 218 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTCOREFL)" $(BIN)$/stoctest.rdb 219 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTINTROSP)" $(BIN)$/stoctest.rdb 220 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTCONV)" $(BIN)$/stoctest.rdb 221 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTPROXYFAC)" $(BIN)$/stoctest.rdb 222 cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTSECURITY)" $(BIN)$/stoctest.rdb 223 touch $(MISC)$/test_types_generated.flag 224