update credits
[LibreOffice.git] / configmgr / qa / unit / makefile.mk
blobfa11bb4af8078995dff59844aea5b804125f3860
2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 PRJ = ../..
20 PRJNAME = configmgr
21 TARGET = unit
23 ENABLE_EXCEPTIONS = TRUE
25 .INCLUDE: settings.mk
27 CFLAGSCXX += $(CPPUNIT_CFLAGS)
29 SLOFILES = $(SLO)/test.obj
31 SHL1OBJS = $(SLOFILES)
32 SHL1STDLIBS = \
33 $(CPPUHELPERLIB) \
34 $(CPPULIB) \
35 $(CPPUNITLIB) \
36 $(SALLIB)
38 SHL1TARGET = unit
39 SHL1VERSIONMAP = version.map
40 DEF1NAME = $(SHL1TARGET)
42 .INCLUDE: target.mk
44 ALLTAR: TEST
46 .IF "$(OS)" == "WNT"
47 MY_INI = .ini
48 .ELSE
49 MY_INI = rc
50 .ENDIF
52 $(MISC)/unit.rdb .ERRREMOVE:
53 cp $(SOLARBINDIR)/types.rdb $@
54 $(REGCOMP) -register -r $@ -c $(DLLDEST)/$(DLLPRE)configmgr$(DLLPOST)
56 TEST .PHONY: $(SHL1TARGETN) $(MISC)/unit.rdb
57 rm -rf $(MISC)/unitdata
58 mkdir $(MISC)/unitdata
59 cp urebootstrap.ini $(MISC)/unitdata
60 mkdir $(MISC)/unitdata/basis
61 mkdir $(MISC)/unitdata/basis/program
62 echo '[Bootstrap]' > $(MISC)/unitdata/basis/program/uno$(MY_INI)
63 echo 'UNO_SHARED_PACKAGES_CACHE = $$BRAND_BASE_DIR' \
64 >> $(MISC)/unitdata/basis/program/uno$(MY_INI)
65 echo 'UNO_USER_PACKAGES_CACHE =' \
66 '$${$$BRAND_BASE_DIR/program/bootstrap$(MY_INI):UserInstallation}' \
67 >> $(MISC)/unitdata/basis/program/uno$(MY_INI)
68 mkdir $(MISC)/unitdata/basis/share
69 mkdir $(MISC)/unitdata/basis/share/registry
70 cp data.xcd $(MISC)/unitdata/basis/share/registry
71 mkdir $(MISC)/unitdata/brand
72 mkdir $(MISC)/unitdata/brand/program
73 echo '[Bootstrap]' > $(MISC)/unitdata/brand/program/bootstrap$(MY_INI)
74 echo 'UserInstallation = $$ORIGIN/../../user' \
75 >> $(MISC)/unitdata/brand/program/bootstrap$(MY_INI)
76 .IF "$(USE_SHELL)" == "bash"
77 export \
78 URE_BOOTSTRAP=vnd.sun.star.pathname:$(MISC)/unitdata/urebootstrap.ini \
79 && $(TESTSHL2) $(SHL1TARGETN) -forward $(MISC)/unit.rdb
80 .ELSE
81 setenv \
82 URE_BOOTSTRAP vnd.sun.star.pathname:$(MISC)/unitdata/urebootstrap.ini \
83 && $(TESTSHL2) $(SHL1TARGETN) -forward $(MISC)/unit.rdb
84 .ENDIF