Bump for 3.6-28
[LibreOffice.git] / cli_ure / source / bootstrap / makefile.mk
blob95bdb3d2702eae92370f8a55f8d21dce02259068
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 PRJ = ..$/..
29 PRJNAME = cli_ure
31 TARGET = cli_uno_glue
32 ENABLE_EXCEPTIONS=TRUE
34 .INCLUDE : settings.mk
35 .INCLUDE : $(PRJ)$/util$/makefile.pmk
37 .IF "$(USE_SHELL)"!="4nt"
38 ECHOQUOTE='
39 # emacs is a fool: '
40 .ELSE
41 ECHOQUOTE=
42 .ENDIF
44 .IF "$(ENABLE_MONO)" != "YES"
45 dummy:
46 @echo "Mono binding disabled - skipping ..."
47 .ELSE
49 .INCLUDE : $(BIN)$/cliureversion.mk
51 ASSEMBLY_KEY="$(BIN)$/cliuno.snk"
53 ASSEMBLY_ATTRIBUTES = $(MISC)$/assembly_cppuhelper.cs
55 POLICY_ASSEMBLY_FILE=$(BIN)$/$(CLI_CPPUHELPER_POLICY_ASSEMBLY).dll
57 ALLTAR : \
58 $(SHL1TARGETN) \
59 $(ASSEMBLY_ATTRIBUTES) \
60 $(BIN)$/cli_cppuhelper.dll \
61 $(BIN)$/cli_cppuhelper.config \
62 $(POLICY_ASSEMBLY_FILE)
64 CSFILES = \
65 managed_bootstrap.cs \
66 $(ASSEMBLY_ATTRIBUTES)
68 $(ASSEMBLY_ATTRIBUTES) .PHONY: assembly.cs $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
69 $(GNUCOPY) -p assembly.cs $@
70 +echo $(ECHOQUOTE) \
71 [assembly:System.Reflection.AssemblyVersion( "$(CLI_CPPUHELPER_NEW_VERSION)" )] $(ECHOQUOTE) \
72 >> $@
74 EXTERNAL_DIR=$(PRJ)$/..$/external/cli
76 .IF "$(ENABLE_MONO_CLIMAKER)" != "YES"
78 $(OUT)$/bin$/cli_uretypes.dll : $(EXTERNAL_DIR)$/cli_uretypes.dll $(EXTERNAL_DIR)$/cli_uretypes.config $(EXTERNAL_DIR)$/policy.1.0.cli_uretypes.dll
79 +$(COPY) $? $(OUT)$/bin$/
81 .ENDIF
83 $(BIN)$/cli_cppuhelper.dll : $(CSFILES) $(OUT)$/bin$/cli_uretypes.dll
84 +$(CSC) $(CSCFLAGS) \
85 -target:library \
86 -out:$@ \
87 -keyfile:$(BIN)$/cliuno.snk \
88 -reference:$(OUT)$/bin$/cli_uretypes.dll \
89 -reference:System.dll \
90 $(CSFILES)
91 @echo "If code has changed then provide a policy assembly and change the version!"
93 CFLAGS += $(MONO_CFLAGS)
95 SLOFILES= \
96 $(SLO)$/native_glue.obj
98 SHL1OBJS = $(SLOFILES)
100 SHL1STDLIBS = \
101 $(SALLIB) \
102 $(CPPULIB) \
103 $(CPPUHELPERLIB)
105 SHL1STDLIBS += $(MONO_LIBS)
107 SHL1TARGET = $(TARGET)
109 $(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_cppuhelper.config
110 $(WRAPCMD) $(AL) -out:$@ \
111 -version:$(CLI_CPPUHELPER_POLICY_VERSION) \
112 -keyfile:$(BIN)$/cliuno.snk \
113 -link:cli_cppuhelper.config,$(BIN)$/cli_cppuhelper.config
115 #Create the config file that is used with the policy assembly
116 $(BIN)$/cli_cppuhelper.config: ../native/cli_cppuhelper_config $(BIN)$/cliureversion.mk
117 $(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \
118 $< $@
120 .ENDIF
122 .INCLUDE : $(PRJ)$/util$/target.pmk
123 .INCLUDE : target.mk