1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweirPRJ=.. 28*cdf0e10cSrcweir 29*cdf0e10cSrcweirPRJNAME=stoc 30*cdf0e10cSrcweirTARGET=stoc 31*cdf0e10cSrcweirTARGET1=testloader 32*cdf0e10cSrcweirTARGET2=testregistry 33*cdf0e10cSrcweirTARGET3=testsmgr 34*cdf0e10cSrcweirTARGET4=testcorefl 35*cdf0e10cSrcweirTARGET5=testinvocation 36*cdf0e10cSrcweirTARGET6=testintrosp 37*cdf0e10cSrcweirTARGET7=testconv 38*cdf0e10cSrcweirTARGET8=testproxyfac 39*cdf0e10cSrcweirTARGET9=testsmgr2 40*cdf0e10cSrcweirTARGETTYPE=CUI 41*cdf0e10cSrcweir#LIBTARGET=NO 42*cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 43*cdf0e10cSrcweirNO_BSYMBOLIC=TRUE 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir.INCLUDE : settings.mk 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir# --- smgr component ----------------------------------------------- 50*cdf0e10cSrcweirSHL1OBJS= \ 51*cdf0e10cSrcweir $(OBJ)$/testsmgr_cpnt.obj 52*cdf0e10cSrcweir 53*cdf0e10cSrcweirSHL1STDLIBS= \ 54*cdf0e10cSrcweir $(CPPULIB) \ 55*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 56*cdf0e10cSrcweir $(SALHELPERLIB) \ 57*cdf0e10cSrcweir $(SALLIB) 58*cdf0e10cSrcweir 59*cdf0e10cSrcweirSHL1TARGET=testsmgr_component 60*cdf0e10cSrcweirSHL1DEPN= 61*cdf0e10cSrcweirSHL1IMPLIB=i$(SHL1TARGET) 62*cdf0e10cSrcweir#SHL1LIBS=$(SLB)$/$(SHL1TARGET).lib 63*cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def 64*cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET) 65*cdf0e10cSrcweirSHL1VERSIONMAP=testsmgr_cpnt.map 66*cdf0e10cSrcweir 67*cdf0e10cSrcweir# --- Application 1 ------------------------------------------------ 68*cdf0e10cSrcweirAPP1TARGET= $(TARGET1) 69*cdf0e10cSrcweirAPP1OBJS= $(OBJ)$/testloader.obj 70*cdf0e10cSrcweir 71*cdf0e10cSrcweirAPP1STDLIBS= \ 72*cdf0e10cSrcweir $(CPPULIB) \ 73*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 74*cdf0e10cSrcweir $(SALHELPERLIB) \ 75*cdf0e10cSrcweir $(SALLIB) 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir# --- Application 2 ------------------------------------------------ 78*cdf0e10cSrcweirAPP2TARGET= $(TARGET2) 79*cdf0e10cSrcweirAPP2OBJS= $(OBJ)$/testregistry.obj $(OBJ)$/mergekeys_.obj 80*cdf0e10cSrcweir 81*cdf0e10cSrcweirAPP2STDLIBS= \ 82*cdf0e10cSrcweir $(CPPULIB) \ 83*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 84*cdf0e10cSrcweir $(SALHELPERLIB) \ 85*cdf0e10cSrcweir $(REGLIB) \ 86*cdf0e10cSrcweir $(SALLIB) 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir# --- Application 3 - testsmgr main ------------------------------------ 89*cdf0e10cSrcweirAPP3TARGET= $(TARGET3) 90*cdf0e10cSrcweirAPP3OBJS = $(OBJ)$/testsmgr.obj 91*cdf0e10cSrcweirAPP3STDLIBS= \ 92*cdf0e10cSrcweir $(CPPULIB) \ 93*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 94*cdf0e10cSrcweir $(SALHELPERLIB) \ 95*cdf0e10cSrcweir $(REGLIB) \ 96*cdf0e10cSrcweir $(SALLIB) 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 99*cdf0e10cSrcweirAPP3STDLIBS+= -l$(SHL1TARGET) 100*cdf0e10cSrcweir.ENDIF 101*cdf0e10cSrcweir.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2" 102*cdf0e10cSrcweirAPP3STDLIBS+= i$(SHL1TARGET).lib 103*cdf0e10cSrcweir.ENDIF 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir# --- Application 4 - testcorefl main ------------------------------------ 106*cdf0e10cSrcweirAPP4TARGET= $(TARGET4) 107*cdf0e10cSrcweirAPP4OBJS = $(OBJ)$/testcorefl.obj 108*cdf0e10cSrcweirAPP4STDLIBS= \ 109*cdf0e10cSrcweir $(CPPULIB) \ 110*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 111*cdf0e10cSrcweir $(SALLIB) 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir# --- Application 5 - testinvocation main ------------------------------------ 114*cdf0e10cSrcweirAPP5TARGET= $(TARGET5) 115*cdf0e10cSrcweirAPP5OBJS = $(OBJ)$/testiadapter.obj 116*cdf0e10cSrcweirAPP5STDLIBS= \ 117*cdf0e10cSrcweir $(CPPULIB) \ 118*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 119*cdf0e10cSrcweir $(SALLIB) 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir# --- Application 6 - testitrosp main ------------------------------------ 122*cdf0e10cSrcweirAPP6TARGET= $(TARGET6) 123*cdf0e10cSrcweirAPP6OBJS = $(OBJ)$/testintrosp.obj 124*cdf0e10cSrcweirAPP6STDLIBS= \ 125*cdf0e10cSrcweir $(CPPULIB) \ 126*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 127*cdf0e10cSrcweir $(SALHELPERLIB) \ 128*cdf0e10cSrcweir $(SALLIB) 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir# --- Application 7 - testconv main ------------------------------------ 131*cdf0e10cSrcweirAPP7TARGET= $(TARGET7) 132*cdf0e10cSrcweirAPP7OBJS = $(OBJ)$/testconv.obj 133*cdf0e10cSrcweirAPP7STDLIBS= \ 134*cdf0e10cSrcweir $(CPPULIB) \ 135*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 136*cdf0e10cSrcweir $(SALLIB) 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir# --- Application 8 - testproxyfac main ------------------------------------ 139*cdf0e10cSrcweirAPP8TARGET= $(TARGET8) 140*cdf0e10cSrcweirAPP8OBJS = $(OBJ)$/testproxyfac.obj 141*cdf0e10cSrcweirAPP8STDLIBS= \ 142*cdf0e10cSrcweir $(CPPULIB) \ 143*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 144*cdf0e10cSrcweir $(SALLIB) 145*cdf0e10cSrcweir 146*cdf0e10cSrcweir# --- Application 9 - testproxyfac main ------------------------------------ 147*cdf0e10cSrcweirAPP9TARGET= $(TARGET9) 148*cdf0e10cSrcweirAPP9OBJS = $(OBJ)$/testsmgr2.obj 149*cdf0e10cSrcweirAPP9STDLIBS= \ 150*cdf0e10cSrcweir $(CPPULIB) \ 151*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 152*cdf0e10cSrcweir $(SALLIB) 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir 155*cdf0e10cSrcweirALLIDLFILES:= testcorefl.idl language_binding.idl testintrosp.idl 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir# --- Target ------------------------------------------------ 159*cdf0e10cSrcweir 160*cdf0e10cSrcweir.IF "$(depend)" == "" 161*cdf0e10cSrcweirALL : $(MISC)$/test_types_generated.flag \ 162*cdf0e10cSrcweir $(BIN)$/test1.rdb \ 163*cdf0e10cSrcweir $(BIN)$/test2.rdb \ 164*cdf0e10cSrcweir ALLTAR 165*cdf0e10cSrcweir.ELSE 166*cdf0e10cSrcweirALL: ALLDEP 167*cdf0e10cSrcweir.ENDIF 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir.INCLUDE : target.mk 170*cdf0e10cSrcweir 171*cdf0e10cSrcweirCPPUMAKERFLAGS = 172*cdf0e10cSrcweir.IF "$(COM)" == "MSC" 173*cdf0e10cSrcweirCPPUMAKERFLAGS = -L 174*cdf0e10cSrcweir.ENDIF 175*cdf0e10cSrcweir 176*cdf0e10cSrcweirFACTORYTYPES:= -T com.sun.star.lang.XSingleComponentFactory \ 177*cdf0e10cSrcweir -T com.sun.star.uno.XComponentContext \ 178*cdf0e10cSrcweir -T com.sun.star.uno.XWeak \ 179*cdf0e10cSrcweir -T com.sun.star.container.XEnumeration \ 180*cdf0e10cSrcweir -T com.sun.star.lang.XComponent \ 181*cdf0e10cSrcweir -T com.sun.star.registry.XSimpleRegistry \ 182*cdf0e10cSrcweir -T com.sun.star.lang.XInitialization \ 183*cdf0e10cSrcweir -T com.sun.star.lang.XMultiServiceFactory\ 184*cdf0e10cSrcweir -T com.sun.star.loader.XImplementationLoader \ 185*cdf0e10cSrcweir -T com.sun.star.registry.XImplementationRegistration \ 186*cdf0e10cSrcweir -T com.sun.star.container.XSet \ 187*cdf0e10cSrcweir -T com.sun.star.lang.XSingleServiceFactory\ 188*cdf0e10cSrcweir -T com.sun.star.lang.XServiceInfo \ 189*cdf0e10cSrcweir -T com.sun.star.container.XContentEnumerationAccess \ 190*cdf0e10cSrcweir -T com.sun.star.container.XEnumeration 191*cdf0e10cSrcweir 192*cdf0e10cSrcweirTESTCOREFL:=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 193*cdf0e10cSrcweirTESTIADAPTER:=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 194*cdf0e10cSrcweirTESTINTROSP:=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 195*cdf0e10cSrcweirTESTCONV:=com.sun.star.script.XTypeConverter 196*cdf0e10cSrcweirTESTPROXYFAC:=com.sun.star.reflection.XProxyFactory 197*cdf0e10cSrcweirTESTSECURITY:=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*cdf0e10cSrcweir 199*cdf0e10cSrcweir$(BIN)$/test1.rdb: $(SHL1TARGETN) 200*cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 201*cdf0e10cSrcweir cp $(SHL1TARGETN) $(BIN) 202*cdf0e10cSrcweir.ENDIF 203*cdf0e10cSrcweir cd $(BIN) && regcomp -register -r test1.rdb -c $(SHL1TARGET) 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir$(BIN)$/test2.rdb: 206*cdf0e10cSrcweir cd $(BIN) && regcomp -register -r test2.rdb -c remotebridge.uno$(DLLPOST) 207*cdf0e10cSrcweir 208*cdf0e10cSrcweir$(BIN)$/stoctest.rdb: $(ALLIDLFILES) 209*cdf0e10cSrcweir idlc -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $? 210*cdf0e10cSrcweir regmerge $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)} 211*cdf0e10cSrcweir regmerge $@ / $(SOLARBINDIR)$/udkapi.rdb 212*cdf0e10cSrcweir regcomp -register -r $@ -c reflection.uno$(DLLPOST) 213*cdf0e10cSrcweir touch $@ 214*cdf0e10cSrcweir 215*cdf0e10cSrcweir$(MISC)$/test_types_generated.flag : $(BIN)$/stoctest.rdb makefile.mk 216*cdf0e10cSrcweir -rm -f $(MISC)$/test_types_generated.flag 217*cdf0e10cSrcweir cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) $(FACTORYTYPES) -T"$(TESTIADAPTER)" $(BIN)$/stoctest.rdb 218*cdf0e10cSrcweir cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTCOREFL)" $(BIN)$/stoctest.rdb 219*cdf0e10cSrcweir cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTINTROSP)" $(BIN)$/stoctest.rdb 220*cdf0e10cSrcweir cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTCONV)" $(BIN)$/stoctest.rdb 221*cdf0e10cSrcweir cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTPROXYFAC)" $(BIN)$/stoctest.rdb 222*cdf0e10cSrcweir cppumaker $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) -T"$(TESTSECURITY)" $(BIN)$/stoctest.rdb 223*cdf0e10cSrcweir touch $(MISC)$/test_types_generated.flag 224