Revert "new change in helpcontent2"
[LibreOffice.git] / cppuhelper / test / makefile.mk
blob7a67d6690c8b74c095e0810e27b10123f7c1b51d
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
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 #*************************************************************************
27 PRJ=..
29 PRJNAME=cppuhelper
30 TARGET=testhelper
31 ENABLE_EXCEPTIONS=TRUE
32 USE_DEFFILE=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
45 OBJFILES= \
46 $(OBJ)$/testhelper.obj \
47 $(OBJ)$/testpropshlp.obj \
48 $(OBJ)$/testidlclass.obj \
49 $(OBJ)$/testproptyphlp.obj \
50 $(OBJ)$/testimplhelper.obj \
51 $(OBJ)$/testcontainer.obj
53 APP1TARGET=$(TARGET)
54 APP1OBJS=$(OBJFILES)
56 APP1STDLIBS+= \
57 $(CPPULIB) \
58 $(CPPUHELPERLIB) \
59 $(SALLIB)
61 APP1DEF= $(MISC)$/$(APP1TARGET).def
63 #############################################
65 APP2OBJS = $(OBJ)$/testdefaultbootstrapping.obj
66 APP2STDLIBS += $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB)
67 APP2TARGET = testdefaultbootstrapping
69 #############################################
71 SLOFILES= \
72 $(SLO)$/cfg_test.obj
73 LIB1TARGET=$(SLB)$/cfg_test.lib
74 LIB1OBJFILES=$(SLOFILES)
77 APP3OBJS = $(OBJ)$/cfg_test.obj
78 APP3STDLIBS += $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB)
79 APP3TARGET = test_cfg
81 #############################################
83 ALLIDLFILES:= helpertest.idl
85 # --- Targets ------------------------------------------------------
87 .IF "$(depend)" == ""
88 ALL: $(BIN)$/cpputest.rdb \
89 unoheader \
90 $(BIN)$/testrc \
91 $(BIN)$/testdefaultbootstrapping.pl \
92 ALLTAR \
93 $(BIN)$/$(APP2TARGET).bin \
94 $(BIN)$/$(APP2TARGET).Bin \
95 $(BIN)$/$(APP2TARGET).Exe
97 .IF "$(GUI)"=="UNX"
98 ALL: $(BIN)$/$(APP2TARGET).exe
100 $(BIN)$/$(APP2TARGET).exe : $(APP2TARGETN)
101 cp $(APP2TARGETN) $@
103 .ENDIF
106 $(BIN)$/$(APP2TARGET).bin : $(APP2TARGETN)
107 cp $(APP2TARGETN) $@
109 $(BIN)$/$(APP2TARGET).Bin : $(APP2TARGETN)
110 cp $(APP2TARGETN) $@
112 $(BIN)$/$(APP2TARGET).Exe : $(APP2TARGETN)
113 cp $(APP2TARGETN) $@
115 .ELSE
116 ALL: ALLDEP
117 .ENDIF
119 .INCLUDE : target.mk
121 CPPUMAKERFLAGS =
122 .IF "$(COM)" == "MSC"
123 CPPUMAKERFLAGS = -L
124 .ENDIF
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
130 .IF "$(OS)" == "WNT"
131 UNO_PATH := $(SOLARBINDIR)
132 UNO_OUT := $(OUT)$/bin
133 EXT_SO := .dll
134 .ELSE
135 UNO_PATH := $(SOLARLIBDIR)
136 UNO_OUT := $(OUT)$/lib
137 EXT_SO := .so
138 .ENDIF
140 $(UNO_OUT)$/%$(EXT_SO): $(UNO_PATH)$/%$(EXT_SO)
141 $(COPY) $^ $@
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)
148 $(TOUCH) $@
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
159 .IF "$(GUI)"=="WNT"
160 echo [Tests] > $@
161 echo TestKey1=com.sun.star.uno.NamingService.rdb >> $@
162 .ELSE
163 echo '[Tests]' > $@
164 echo 'TestKey1=file:///'$(PWD)/$(BIN)'/com.sun.star.uno.NamingService.rdb' >> $@
165 .ENDIF