17871dc3eSAndrew Rist#************************************************************** 2cdf0e10cSrcweir# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 19cdf0e10cSrcweir# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir.IF "$(OOO_SUBSEQUENT_TESTS)" == "" 25cdf0e10cSrcweirnothing .PHONY: 26cdf0e10cSrcweir.ELSE 27cdf0e10cSrcweir 28*8807d2faSDamjan Jovanovic.IF "$(ENABLE_UNIT_TESTS)" != "YES" 29*8807d2faSDamjan Jovanovicall: 30*8807d2faSDamjan Jovanovic @echo unit tests are disabled. Nothing to do. 31*8807d2faSDamjan Jovanovic 32*8807d2faSDamjan Jovanovic.ELSE 33*8807d2faSDamjan Jovanovic 34cdf0e10cSrcweirPRJ := ../.. 35cdf0e10cSrcweirPRJNAME := cppuhelper 36cdf0e10cSrcweir 37cdf0e10cSrcweirTARGET := qa_propertysetmixin 38cdf0e10cSrcweirPACKAGE = test/cppuhelper/propertysetmixin/comp 39cdf0e10cSrcweir 40cdf0e10cSrcweirENABLE_EXCEPTIONS := TRUE 41cdf0e10cSrcweir 42cdf0e10cSrcweirmy_components = $(TARGET).cpp $(TARGET).java 43cdf0e10cSrcweir 44cdf0e10cSrcweir.INCLUDE: settings.mk 45cdf0e10cSrcweir 46cdf0e10cSrcweir.IF "$(OS)" == "WNT" 47cdf0e10cSrcweirmy_file = file:/// 48cdf0e10cSrcweir.ELSE 49cdf0e10cSrcweirmy_file = file:// 50cdf0e10cSrcweir.END 51cdf0e10cSrcweir 52cdf0e10cSrcweirDLLPRE = # no leading "lib" on .so files 53cdf0e10cSrcweirINCPRE += -I$(MISC)/$(TARGET)/inc 54cdf0e10cSrcweir 55*8807d2faSDamjan JovanovicAPP1TARGET = $(TARGET) 56*8807d2faSDamjan JovanovicAPP1OBJS = $(SLO)/test_propertysetmixin.obj 57*8807d2faSDamjan JovanovicAPP1STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(GTESTLIB) $(SALLIB) 58*8807d2faSDamjan JovanovicAPP1RPATH = NONE 59*8807d2faSDamjan Jovanovic# this is a custom test, can't use APP1TARGET_run so disable it here: 60*8807d2faSDamjan JovanovicAPP1TEST = disabled 61cdf0e10cSrcweir 62cdf0e10cSrcweirSHL2TARGET = $(TARGET).uno 63cdf0e10cSrcweirSHL2OBJS = $(SLO)/comp_propertysetmixin.obj 64cdf0e10cSrcweirSHL2VERSIONMAP = $(SOLARENV)/src/component.map 65cdf0e10cSrcweirSHL2STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB) 66cdf0e10cSrcweirSHL2IMPLIB = i$(SHL2TARGET) 67cdf0e10cSrcweirSH21RPATH = NONE 68cdf0e10cSrcweirDEF2NAME = $(SHL2TARGET) 69cdf0e10cSrcweir 70*8807d2faSDamjan JovanovicSLOFILES = $(APP1OBJS) $(SHL2OBJS) 71cdf0e10cSrcweir 72cdf0e10cSrcweirJAVAFILES = JavaSupplier.java 73cdf0e10cSrcweirJARFILES = java_uno.jar juh.jar jurt.jar ridl.jar 74cdf0e10cSrcweir 75cdf0e10cSrcweir 76cdf0e10cSrcweirALLTAR: test 77cdf0e10cSrcweir 78*8807d2faSDamjan Jovanovic.INCLUDE: target.mk 79*8807d2faSDamjan Jovanovic 80cdf0e10cSrcweir$(MISC)/$(TARGET)/types.urd: types.idl 81cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 82cdf0e10cSrcweir $(IDLC) -O$(@:d) -I$(SOLARIDLDIR) -cid -we $< 83cdf0e10cSrcweir 84cdf0e10cSrcweir$(MISC)/$(TARGET)/types.rdb: $(MISC)/$(TARGET)/types.urd 85cdf0e10cSrcweir - $(RM) $@ 86cdf0e10cSrcweir $(REGMERGE) $@ /UCR $< 87cdf0e10cSrcweir 88cdf0e10cSrcweir$(MISC)/$(TARGET)/cppumaker.flag: $(MISC)/$(TARGET)/types.rdb 89cdf0e10cSrcweir $(CPPUMAKER) -O$(MISC)/$(TARGET)/inc -BUCR -Gc \ 90cdf0e10cSrcweir -X$(SOLARBINDIR)/udkapi.rdb $< 91cdf0e10cSrcweir $(TOUCH) $@ 92cdf0e10cSrcweir 93cdf0e10cSrcweir$(SLOFILES): $(MISC)/$(TARGET)/cppumaker.flag 94cdf0e10cSrcweir 95cdf0e10cSrcweir$(MISC)/$(TARGET)/javamaker.flag: $(MISC)/$(TARGET)/types.rdb 96cdf0e10cSrcweir $(JAVAMAKER) -O$(CLASSDIR) -BUCR -nD -Gc -X$(SOLARBINDIR)/udkapi.rdb $< 97cdf0e10cSrcweir $(TOUCH) $@ 98cdf0e10cSrcweir 99cdf0e10cSrcweir$(JAVATARGET): $(MISC)/$(TARGET)/javamaker.flag 100cdf0e10cSrcweir 101cdf0e10cSrcweir$(MISC)/$(TARGET)/services.rdb .ERRREMOVE: $(SOLARENV)/bin/packcomponents.xslt \ 102cdf0e10cSrcweir $(MISC)/$(TARGET)/services.input \ 103cdf0e10cSrcweir $(my_components:^"$(MISC)/$(TARGET)/":+".component") 104cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/$(TARGET)/ -o $@ \ 105cdf0e10cSrcweir $(SOLARENV)/bin/packcomponents.xslt $(MISC)/$(TARGET)/services.input 106cdf0e10cSrcweir 107cdf0e10cSrcweir$(MISC)/$(TARGET)/services.input: 108cdf0e10cSrcweir $(MKDIRHIER) $(@:d) 109cdf0e10cSrcweir echo \ 110cdf0e10cSrcweir '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 111cdf0e10cSrcweir > $@ 112cdf0e10cSrcweir 113cdf0e10cSrcweir$(MISC)/$(TARGET)/$(TARGET).cpp.component .ERRREMOVE: \ 114cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt $(TARGET).cpp.component 115cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 116cdf0e10cSrcweir '$(COMPONENTPREFIX_INBUILD_NATIVE)$(SHL2TARGETN:f)' -o $@ \ 117cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt $(TARGET).cpp.component 118cdf0e10cSrcweir 119cdf0e10cSrcweir$(MISC)/$(TARGET)/$(TARGET).java.component .ERRREMOVE: \ 120cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt $(TARGET).java.component 121cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 122cdf0e10cSrcweir '$(COMPONENTPREFIX_INBUILD_JAVA)$(TARGET).uno.jar' -o $@ \ 123cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt $(TARGET).java.component 124cdf0e10cSrcweir 125cdf0e10cSrcweir$(MISC)/$(TARGET)/$(TARGET).uno.jar: $(JAVATARGET) \ 126cdf0e10cSrcweir $(MISC)/$(TARGET)/javamaker.flag manifest 127cdf0e10cSrcweir jar cfm $@ manifest -C $(CLASSDIR) test/cppuhelper/propertysetmixin 128cdf0e10cSrcweir 129cdf0e10cSrcweir 130*8807d2faSDamjan Jovanovictest .PHONY: $(APP1TARGETN) $(SHL2TARGETN) $(MISC)/$(TARGET)/$(TARGET).uno.jar \ 131*8807d2faSDamjan Jovanovic $(MISC)/$(TARGET)/types.rdb $(MISC)/$(TARGET)/services.rdb 132*8807d2faSDamjan Jovanovic $(COMMAND_ECHO) $(AUGMENT_LIBRARY_PATH_LOCAL) \ 133*8807d2faSDamjan Jovanovic UNO_TYPES='$(my_file)$(SOLARBINDIR)/udkapi.rdb $(my_file)$(PWD)/$(MISC)/$(TARGET)/types.rdb' \ 134*8807d2faSDamjan Jovanovic UNO_SERVICES='$(my_file)$(SOLARXMLDIR)/ure/services.rdb $(my_file)$(PWD)/$(MISC)/$(TARGET)/services.rdb'\ 135*8807d2faSDamjan Jovanovic URE_INTERNAL_LIB_DIR=$(my_file)$(SOLARSHAREDBIN) \ 136*8807d2faSDamjan Jovanovic URE_INTERNAL_JAVA_DIR=$(my_file)$(SOLARBINDIR) \ 137*8807d2faSDamjan Jovanovic OOO_INBUILD_SHAREDLIB_DIR=$(my_file)$(PWD)/$(DLLDEST) \ 138*8807d2faSDamjan Jovanovic OOO_INBUILD_JAR_DIR=$(my_file)$(PWD)/$(MISC)/$(TARGET) \ 139*8807d2faSDamjan Jovanovic $(APP1TARGETN) --gtest_output="xml:$(BIN)/$(APP1TARGET)_result.xml" 140*8807d2faSDamjan Jovanovic 141*8807d2faSDamjan Jovanovic 142*8807d2faSDamjan Jovanovic.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES" 143*8807d2faSDamjan Jovanovic 144*8807d2faSDamjan Jovanovic.ENDIF # "$(OOO_SUBSEQUENT_TESTS)" == "" 145