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.ELIF "$(COMEX)"=="14" 82# /clr:oldSyntax -- Managed Extensions for C++ -- was removed after VS2015. 83# These sources are C++/CLI now, so plain /clr. 84CFLAGSCXX += -clr -LN -wd4339 -wd4715 85.ELSE 86CFLAGSCXX += -clr:oldSyntax -LN -wd4339 -wd4715 87.ENDIF 88 89OBJFILES = \ 90 $(OBJ)$/climaker_app.obj \ 91 $(OBJ)$/climaker_emit.obj 92 93APP1TARGET = $(TARGET) 94APP1OBJS = $(OBJFILES) 95 96 97APP1STDLIBS = \ 98 $(CPPUHELPERLIB) \ 99 $(CPPULIB) \ 100 $(SALLIB) \ 101 mscoree.lib 102 103.IF "$(CCNUMVER)" >= "001399999999" 104APP1STDLIBS += \ 105 msvcmrt.lib 106.ENDIF 107 108.ENDIF 109 110 111 112.INCLUDE : $(PRJ)$/util$/target.pmk 113.INCLUDE : target.mk 114 115CLIMAKER_CONFIG = $(BIN)$/climaker.exe.config 116 117ALLTAR: \ 118 $(CLIMAKER_CONFIG) 119 120 121 122#Create the config file that is used with the policy assembly 123$(CLIMAKER_CONFIG): climaker.exe.config 124 $(COPY) $< $@ 125 chmod +x $@ 126 127 128.IF "$(BUILD_FOR_CLI)" != "" 129 130$(OBJFILES): $(BIN)$/cli_basetypes.dll 131 132 133.ENDIF 134