makefile.mk (7871dc3e) | makefile.mk (af7e73e0) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 20#************************************************************** 21 22 23 24PRJ=.. 25 26PRJNAME=unoxml 27TARGET=tests | 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 --- 11 unchanged lines hidden (view full) --- 20#************************************************************** 21 22 23 24PRJ=.. 25 26PRJNAME=unoxml 27TARGET=tests |
28TARGETTYPE=GUI | |
29 30ENABLE_EXCEPTIONS=TRUE 31 32# --- Settings ----------------------------------------------------- 33 34.INCLUDE : settings.mk 35 | 28 29ENABLE_EXCEPTIONS=TRUE 30 31# --- Settings ----------------------------------------------------- 32 33.INCLUDE : settings.mk 34 |
36CFLAGSCXX += $(CPPUNIT_CFLAGS) | 35.IF "$(ENABLE_UNIT_TESTS)" != "YES" 36all: 37 @echo unit tests are disabled. Nothing to do. 38 39.ELSE |
37 38# --- Common ---------------------------------------------------------- 39 40# BEGIN ---------------------------------------------------------------- 41# auto generated Target:tests by codegen.pl | 40 41# --- Common ---------------------------------------------------------- 42 43# BEGIN ---------------------------------------------------------------- 44# auto generated Target:tests by codegen.pl |
42SHL1OBJS= \ 43 $(SLO)$/domtest.obj | 45APP1OBJS= \ 46 $(SLO)$/domtest.obj $(SLO)$/documentbuilder.obj |
44 45# the following three libs are a bit of a hack: cannot link against 46# unoxml here, because not yet delivered (and does not export 47# ~anything). Need the functionality to test, so we're linking it in 48# statically. Need to keep this in sync with 49# source/services/makefile.mk | 47 48# the following three libs are a bit of a hack: cannot link against 49# unoxml here, because not yet delivered (and does not export 50# ~anything). Need the functionality to test, so we're linking it in 51# statically. Need to keep this in sync with 52# source/services/makefile.mk |
50SHL1LIBS= \ 51 $(SLB)$/domimpl.lib \ 52 $(SLB)$/xpathimpl.lib \ 53 $(SLB)$/eventsimpl.lib | 53#APP1LIBS= \ 54 #$(SLB)$/domimpl.lib \ 55 #$(SLB)$/xpathimpl.lib \ 56 #$(SLB)$/eventsimpl.lib |
54 | 57 |
55SHL1TARGET= tests 56SHL1STDLIBS= \ | 58APP1TARGET= tests 59APP1STDLIBS= \ |
57 $(UCBHELPERLIB) \ 58 $(LIBXML2LIB) \ 59 $(TOOLSLIB) \ 60 $(COMPHELPERLIB) \ 61 $(CPPUHELPERLIB) \ | 60 $(UCBHELPERLIB) \ 61 $(LIBXML2LIB) \ 62 $(TOOLSLIB) \ 63 $(COMPHELPERLIB) \ 64 $(CPPUHELPERLIB) \ |
62 $(CPPUNITLIB) \ | 65 $(GTESTLIB) \ |
63 $(TESTSHL2LIB) \ 64 $(CPPULIB) \ 65 $(SAXLIB) \ 66 $(SALLIB)\ | 66 $(TESTSHL2LIB) \ 67 $(CPPULIB) \ 68 $(SAXLIB) \ 69 $(SALLIB)\ |
67 $(EXPATASCII3RDLIB) | 70 $(EXPATASCII3RDLIB) \ 71 -lunoxml |
68 | 72 |
69SHL1IMPLIB= i$(SHL1TARGET) | 73APP1RPATH = NONE 74APP1TEST = disabled |
70 | 75 |
71DEF1NAME =$(SHL1TARGET) 72SHL1VERSIONMAP = export.map 73 | |
74# END ------------------------------------------------------------------ 75 76#------------------------------- All object files ------------------------------- 77# do this here, so we get right dependencies | 76# END ------------------------------------------------------------------ 77 78#------------------------------- All object files ------------------------------- 79# do this here, so we get right dependencies |
78SLOFILES=$(SHL1OBJS) | 80SLOFILES=$(APP1OBJS) |
79 80# --- Targets ------------------------------------------------------ 81 82.INCLUDE : target.mk | 81 82# --- Targets ------------------------------------------------------ 83 84.INCLUDE : target.mk |
83.INCLUDE : _cppunit.mk | |
84 85# --- Fake uno bootstrap ------------------------ 86 87$(BIN)$/unoxml_unittest_test.ini : makefile.mk 88 rm -f $@ 89 @echo UNO_SERVICES= > $@ 90 @echo UNO_TYPES=$(UNOUCRRDB:s/\/\\/) >> $@ 91 92# --- Enable testshl2 execution in normal build ------------------------ 93 94$(MISC)$/unoxml_unittest_succeeded : $(SHL1TARGETN) $(BIN)$/unoxml_unittest_test.ini 95 @echo ---------------------------------------------------------- 96 @echo - start unit test on library $(SHL1TARGETN) 97 @echo ---------------------------------------------------------- | 85 86# --- Fake uno bootstrap ------------------------ 87 88$(BIN)$/unoxml_unittest_test.ini : makefile.mk 89 rm -f $@ 90 @echo UNO_SERVICES= > $@ 91 @echo UNO_TYPES=$(UNOUCRRDB:s/\/\\/) >> $@ 92 93# --- Enable testshl2 execution in normal build ------------------------ 94 95$(MISC)$/unoxml_unittest_succeeded : $(SHL1TARGETN) $(BIN)$/unoxml_unittest_test.ini 96 @echo ---------------------------------------------------------- 97 @echo - start unit test on library $(SHL1TARGETN) 98 @echo ---------------------------------------------------------- |
98 $(TESTSHL2) -forward $(BIN)$/ -sf $(mktmp ) $(SHL1TARGETN) | 99 $(COMMAND_ECHO) $(AUGMENT_LIBRARY_PATH_LOCAL) \ 100 UNOXML_DOMTEST_FORWARD=$(BIN)$/ \ 101 $(APP1TARGETN) --gtest_output="xml:$(BIN)/$(APP1TARGET)_result.xml" |
99 $(TOUCH) $@ 100 101ALLTAR : $(MISC)$/unoxml_unittest_succeeded | 102 $(TOUCH) $@ 103 104ALLTAR : $(MISC)$/unoxml_unittest_succeeded |
105 106.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES" |
|