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