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 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24PRJ = ..$/.. 25PRJNAME = cli_ure 26 27TARGET = climaker 28TARGETTYPE = CUI 29LIBTARGET = NO 30ENABLE_EXCEPTIONS = TRUE 31 32# disable caching to avoid stale objects 33# on version changes 34CCACHE_DISABLE=TRUE 35.EXPORT : CCACHE_DISABLE 36 37.INCLUDE : settings.mk 38.INCLUDE : $(PRJ)$/util$/makefile.pmk 39 40.IF "$(BUILD_FOR_CLI)" != "" 41 42NO_OFFUH=TRUE 43CPPUMAKERFLAGS = 44 45UNOTYPES = \ 46 com.sun.star.uno.TypeClass \ 47 com.sun.star.uno.XAggregation \ 48 com.sun.star.uno.XWeak \ 49 com.sun.star.uno.XComponentContext \ 50 com.sun.star.lang.XTypeProvider \ 51 com.sun.star.lang.XInitialization \ 52 com.sun.star.lang.XComponent \ 53 com.sun.star.lang.XMultiComponentFactory \ 54 com.sun.star.lang.XMultiServiceFactory \ 55 com.sun.star.lang.XSingleComponentFactory \ 56 com.sun.star.container.XSet \ 57 com.sun.star.container.XHierarchicalNameAccess \ 58 com.sun.star.loader.XImplementationLoader \ 59 com.sun.star.registry.XSimpleRegistry \ 60 com.sun.star.registry.XRegistryKey \ 61 com.sun.star.reflection.XTypeDescriptionEnumerationAccess \ 62 com.sun.star.reflection.XConstantTypeDescription \ 63 com.sun.star.reflection.XConstantsTypeDescription \ 64 com.sun.star.reflection.XIndirectTypeDescription \ 65 com.sun.star.reflection.XEnumTypeDescription \ 66 com.sun.star.reflection.XInterfaceTypeDescription2 \ 67 com.sun.star.reflection.XInterfaceMethodTypeDescription \ 68 com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \ 69 com.sun.star.reflection.XCompoundTypeDescription \ 70 com.sun.star.reflection.XServiceTypeDescription2 \ 71 com.sun.star.reflection.XSingletonTypeDescription2 \ 72 com.sun.star.reflection.XStructTypeDescription 73 74CFLAGSCXX +=-AI$(BIN) 75 76 77# When compiling for CLR, disable "warning C4339: use of undefined type detected 78# in CLR meta-data - use of this type may lead to a runtime exception": 79.IF "$(COMEX)"=="10" 80CFLAGSCXX += -clr:noAssembly -wd4339 81.ELSE 82CFLAGSCXX += -clr:oldSyntax -LN -wd4339 -wd4715 83.ENDIF 84 85OBJFILES = \ 86 $(OBJ)$/climaker_app.obj \ 87 $(OBJ)$/climaker_emit.obj 88 89APP1TARGET = $(TARGET) 90APP1OBJS = $(OBJFILES) 91 92 93APP1STDLIBS = \ 94 $(CPPUHELPERLIB) \ 95 $(CPPULIB) \ 96 $(SALLIB) \ 97 mscoree.lib 98 99.IF "$(CCNUMVER)" >= "001399999999" 100APP1STDLIBS += \ 101 msvcmrt.lib 102.ENDIF 103 104.ENDIF 105 106 107 108.INCLUDE : $(PRJ)$/util$/target.pmk 109.INCLUDE : target.mk 110 111CLIMAKER_CONFIG = $(BIN)$/climaker.exe.config 112 113ALLTAR: \ 114 $(CLIMAKER_CONFIG) 115 116 117 118#Create the config file that is used with the policy assembly 119$(CLIMAKER_CONFIG): climaker.exe.config 120 $(COPY) $< $@ 121 chmod +x $@ 122 123 124.IF "$(BUILD_FOR_CLI)" != "" 125 126$(OBJFILES): $(BIN)$/cli_basetypes.dll 127 128 129.ENDIF 130 131 132 133 134