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 .
23 ENABLE_EXCEPTIONS
= TRUE
27 CFLAGSCXX
+= $(CPPUNIT_CFLAGS
)
29 SLOFILES
= $(SLO
)/test.obj
31 SHL1OBJS
= $(SLOFILES
)
39 SHL1VERSIONMAP
= version.map
40 DEF1NAME
= $(SHL1TARGET
)
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"
78 URE_BOOTSTRAP
=vnd.sun.star.pathname
:$(MISC
)/unitdata
/urebootstrap.ini \
79 && $(TESTSHL2
) $(SHL1TARGETN
) -forward
$(MISC
)/unit.rdb
82 URE_BOOTSTRAP vnd.sun.star.pathname
:$(MISC
)/unitdata
/urebootstrap.ini \
83 && $(TESTSHL2
) $(SHL1TARGETN
) -forward
$(MISC
)/unit.rdb