makefile.mk (910823ae) | makefile.mk (7231f715) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 15 unchanged lines hidden (view full) --- 24PRJ = ../.. 25PRJNAME = configmgr 26TARGET = unit 27 28ENABLE_EXCEPTIONS = TRUE 29 30.INCLUDE: settings.mk 31 | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 15 unchanged lines hidden (view full) --- 24PRJ = ../.. 25PRJNAME = configmgr 26TARGET = unit 27 28ENABLE_EXCEPTIONS = TRUE 29 30.INCLUDE: settings.mk 31 |
32CFLAGSCXX += $(CPPUNIT_CFLAGS) | 32.IF "$(ENABLE_UNIT_TESTS)" != "YES" 33all: 34 @echo unit tests are disabled. Nothing to do. |
33 | 35 |
36.ELSE 37 |
|
34SLOFILES = $(SLO)/test.obj 35 | 38SLOFILES = $(SLO)/test.obj 39 |
36SHL1OBJS = $(SLOFILES) 37SHL1STDLIBS = \ | 40APP1OBJS = $(SLOFILES) 41APP1STDLIBS = \ |
38 $(CPPUHELPERLIB) \ 39 $(CPPULIB) \ | 42 $(CPPUHELPERLIB) \ 43 $(CPPULIB) \ |
40 $(CPPUNITLIB) \ | 44 $(GTESTLIB) \ |
41 $(SALLIB) \ 42 $(TESTSHL2LIB) | 45 $(SALLIB) \ 46 $(TESTSHL2LIB) |
43SHL1TARGET = unit 44SHL1VERSIONMAP = version.map 45DEF1NAME = $(SHL1TARGET) | 47APP1TARGET = unit 48APP1RPATH = NONE 49# this is a custom test, can't use APP1TARGET_run so disable it here: 50APP1TEST = disabled |
46 47.INCLUDE: target.mk 48 49ALLTAR: TEST 50 51.IF "$(OS)" == "OS2" || "$(OS)" == "WNT" 52MY_INI = .ini 53.ELSE 54MY_INI = rc 55.ENDIF 56 | 51 52.INCLUDE: target.mk 53 54ALLTAR: TEST 55 56.IF "$(OS)" == "OS2" || "$(OS)" == "WNT" 57MY_INI = .ini 58.ELSE 59MY_INI = rc 60.ENDIF 61 |
62DLLPRE = # no leading "lib" on .so files 63 |
|
57$(MISC)/unit.rdb .ERRREMOVE: 58 cp $(SOLARBINDIR)/types.rdb $@ | 64$(MISC)/unit.rdb .ERRREMOVE: 65 cp $(SOLARBINDIR)/types.rdb $@ |
59 $(REGCOMP) -register -r $@ -c $(DLLDEST)/$(DLLPRE)configmgr$(DLLPOST) | 66 $(REGCOMP) -register -r $@ -c $(DLLDEST)/$(DLLPRE)configmgr.uno$(DLLPOST) |
60 | 67 |
61TEST .PHONY: $(SHL1TARGETN) $(MISC)/unit.rdb | 68TEST .PHONY: $(APP1TARGETN) $(MISC)/unit.rdb |
62 rm -rf $(MISC)/unitdata 63 mkdir $(MISC)/unitdata 64 cp urebootstrap.ini $(MISC)/unitdata 65 mkdir $(MISC)/unitdata/basis 66 mkdir $(MISC)/unitdata/basis/program 67 echo '[Bootstrap]' > $(MISC)/unitdata/basis/program/uno$(MY_INI) 68 echo 'UNO_SHARED_PACKAGES_CACHE = $$OOO_BASE_DIR' \ 69 >> $(MISC)/unitdata/basis/program/uno$(MY_INI) 70 echo 'UNO_USER_PACKAGES_CACHE =' \ 71 '$${$$OOO_BASE_DIR/program/bootstrap$(MY_INI):UserInstallation}' \ 72 >> $(MISC)/unitdata/basis/program/uno$(MY_INI) 73 mkdir $(MISC)/unitdata/basis/share 74 mkdir $(MISC)/unitdata/basis/share/registry 75 cp data.xcd $(MISC)/unitdata/basis/share/registry 76 mkdir $(MISC)/unitdata/brand 77 mkdir $(MISC)/unitdata/brand/program 78 echo '[Bootstrap]' > $(MISC)/unitdata/brand/program/bootstrap$(MY_INI) 79 echo 'UserInstallation = $$ORIGIN/../../user' \ 80 >> $(MISC)/unitdata/brand/program/bootstrap$(MY_INI) | 69 rm -rf $(MISC)/unitdata 70 mkdir $(MISC)/unitdata 71 cp urebootstrap.ini $(MISC)/unitdata 72 mkdir $(MISC)/unitdata/basis 73 mkdir $(MISC)/unitdata/basis/program 74 echo '[Bootstrap]' > $(MISC)/unitdata/basis/program/uno$(MY_INI) 75 echo 'UNO_SHARED_PACKAGES_CACHE = $$OOO_BASE_DIR' \ 76 >> $(MISC)/unitdata/basis/program/uno$(MY_INI) 77 echo 'UNO_USER_PACKAGES_CACHE =' \ 78 '$${$$OOO_BASE_DIR/program/bootstrap$(MY_INI):UserInstallation}' \ 79 >> $(MISC)/unitdata/basis/program/uno$(MY_INI) 80 mkdir $(MISC)/unitdata/basis/share 81 mkdir $(MISC)/unitdata/basis/share/registry 82 cp data.xcd $(MISC)/unitdata/basis/share/registry 83 mkdir $(MISC)/unitdata/brand 84 mkdir $(MISC)/unitdata/brand/program 85 echo '[Bootstrap]' > $(MISC)/unitdata/brand/program/bootstrap$(MY_INI) 86 echo 'UserInstallation = $$ORIGIN/../../user' \ 87 >> $(MISC)/unitdata/brand/program/bootstrap$(MY_INI) |
81.IF "$(USE_SHELL)" == "bash" 82 export \ 83 URE_BOOTSTRAP=vnd.sun.star.pathname:$(MISC)/unitdata/urebootstrap.ini \ 84 && $(TESTSHL2) $(SHL1TARGETN) -forward $(MISC)/unit.rdb 85.ELSE 86 setenv \ 87 URE_BOOTSTRAP vnd.sun.star.pathname:$(MISC)/unitdata/urebootstrap.ini \ 88 && $(TESTSHL2) $(SHL1TARGETN) -forward $(MISC)/unit.rdb 89.ENDIF | 88 $(COMMAND_ECHO) $(AUGMENT_LIBRARY_PATH_LOCAL) \ 89 URE_BOOTSTRAP=vnd.sun.star.pathname:$(MISC)/unitdata/urebootstrap.ini \ 90 CONFIGMGR_UNIT_FORWARD_STRING=$(MISC)/unit.rdb \ 91 $(APP1TARGETN) --gtest_output="xml:$(BIN)/$(APP1TARGET)_result.xml" 92 93.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES" |