1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ = ..$/.. 29*cdf0e10cSrcweirPRJNAME = cli_ure 30*cdf0e10cSrcweir 31*cdf0e10cSrcweirTARGET = climaker 32*cdf0e10cSrcweirTARGETTYPE = CUI 33*cdf0e10cSrcweirLIBTARGET = NO 34*cdf0e10cSrcweirENABLE_EXCEPTIONS = TRUE 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir# disable caching to avoid stale objects 37*cdf0e10cSrcweir# on version changes 38*cdf0e10cSrcweirCCACHE_DISABLE=TRUE 39*cdf0e10cSrcweir.EXPORT : CCACHE_DISABLE 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir.INCLUDE : settings.mk 42*cdf0e10cSrcweir.INCLUDE : $(PRJ)$/util$/makefile.pmk 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir.IF "$(BUILD_FOR_CLI)" != "" 45*cdf0e10cSrcweir 46*cdf0e10cSrcweirNO_OFFUH=TRUE 47*cdf0e10cSrcweirCPPUMAKERFLAGS = 48*cdf0e10cSrcweir 49*cdf0e10cSrcweirUNOTYPES = \ 50*cdf0e10cSrcweir com.sun.star.uno.TypeClass \ 51*cdf0e10cSrcweir com.sun.star.uno.XAggregation \ 52*cdf0e10cSrcweir com.sun.star.uno.XWeak \ 53*cdf0e10cSrcweir com.sun.star.uno.XComponentContext \ 54*cdf0e10cSrcweir com.sun.star.lang.XTypeProvider \ 55*cdf0e10cSrcweir com.sun.star.lang.XInitialization \ 56*cdf0e10cSrcweir com.sun.star.lang.XComponent \ 57*cdf0e10cSrcweir com.sun.star.lang.XMultiComponentFactory \ 58*cdf0e10cSrcweir com.sun.star.lang.XMultiServiceFactory \ 59*cdf0e10cSrcweir com.sun.star.lang.XSingleComponentFactory \ 60*cdf0e10cSrcweir com.sun.star.container.XSet \ 61*cdf0e10cSrcweir com.sun.star.container.XHierarchicalNameAccess \ 62*cdf0e10cSrcweir com.sun.star.loader.XImplementationLoader \ 63*cdf0e10cSrcweir com.sun.star.registry.XSimpleRegistry \ 64*cdf0e10cSrcweir com.sun.star.registry.XRegistryKey \ 65*cdf0e10cSrcweir com.sun.star.reflection.XTypeDescriptionEnumerationAccess \ 66*cdf0e10cSrcweir com.sun.star.reflection.XConstantTypeDescription \ 67*cdf0e10cSrcweir com.sun.star.reflection.XConstantsTypeDescription \ 68*cdf0e10cSrcweir com.sun.star.reflection.XIndirectTypeDescription \ 69*cdf0e10cSrcweir com.sun.star.reflection.XEnumTypeDescription \ 70*cdf0e10cSrcweir com.sun.star.reflection.XInterfaceTypeDescription2 \ 71*cdf0e10cSrcweir com.sun.star.reflection.XInterfaceMethodTypeDescription \ 72*cdf0e10cSrcweir com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \ 73*cdf0e10cSrcweir com.sun.star.reflection.XCompoundTypeDescription \ 74*cdf0e10cSrcweir com.sun.star.reflection.XServiceTypeDescription2 \ 75*cdf0e10cSrcweir com.sun.star.reflection.XSingletonTypeDescription2 \ 76*cdf0e10cSrcweir com.sun.star.reflection.XStructTypeDescription 77*cdf0e10cSrcweir 78*cdf0e10cSrcweirCFLAGSCXX +=-AI$(BIN) 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir 81*cdf0e10cSrcweir# When compiling for CLR, disable "warning C4339: use of undefined type detected 82*cdf0e10cSrcweir# in CLR meta-data - use of this type may lead to a runtime exception": 83*cdf0e10cSrcweir.IF "$(COMEX)"=="10" 84*cdf0e10cSrcweirCFLAGSCXX += -clr:noAssembly -wd4339 85*cdf0e10cSrcweir.ELSE 86*cdf0e10cSrcweirCFLAGSCXX += -clr:oldSyntax -LN -wd4339 -wd4715 87*cdf0e10cSrcweir.ENDIF 88*cdf0e10cSrcweir 89*cdf0e10cSrcweirOBJFILES = \ 90*cdf0e10cSrcweir $(OBJ)$/climaker_app.obj \ 91*cdf0e10cSrcweir $(OBJ)$/climaker_emit.obj 92*cdf0e10cSrcweir 93*cdf0e10cSrcweirAPP1TARGET = $(TARGET) 94*cdf0e10cSrcweirAPP1OBJS = $(OBJFILES) 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir 97*cdf0e10cSrcweirAPP1STDLIBS = \ 98*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 99*cdf0e10cSrcweir $(CPPULIB) \ 100*cdf0e10cSrcweir $(SALLIB) \ 101*cdf0e10cSrcweir mscoree.lib 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir.IF "$(CCNUMVER)" >= "001399999999" 104*cdf0e10cSrcweirAPP1STDLIBS += \ 105*cdf0e10cSrcweir msvcmrt.lib 106*cdf0e10cSrcweir.ENDIF 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir.ENDIF 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir.INCLUDE : $(PRJ)$/util$/target.pmk 113*cdf0e10cSrcweir.INCLUDE : target.mk 114*cdf0e10cSrcweir 115*cdf0e10cSrcweirCLIMAKER_CONFIG = $(BIN)$/climaker.exe.config 116*cdf0e10cSrcweir 117*cdf0e10cSrcweirALLTAR: \ 118*cdf0e10cSrcweir $(CLIMAKER_CONFIG) 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir#Create the config file that is used with the policy assembly 123*cdf0e10cSrcweir$(CLIMAKER_CONFIG): climaker.exe.config 124*cdf0e10cSrcweir $(COPY) $< $@ 125*cdf0e10cSrcweir chmod +x $@ 126*cdf0e10cSrcweir 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir.IF "$(BUILD_FOR_CLI)" != "" 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir$(OBJFILES): $(BIN)$/cli_basetypes.dll 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir 133*cdf0e10cSrcweir.ENDIF 134*cdf0e10cSrcweir 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir 137*cdf0e10cSrcweir 138