1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
32 ENABLE_EXCEPTIONS
=TRUE
34 .INCLUDE
: settings.mk
35 .INCLUDE
: $(PRJ
)$/util
$/makefile.pmk
37 .IF
"$(USE_SHELL)"!="4nt"
44 .IF
"$(ENABLE_MONO)" != "YES"
46 @echo
"Mono binding disabled - skipping ..."
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
59 $(ASSEMBLY_ATTRIBUTES
) \
60 $(BIN
)$/cli_cppuhelper.dll \
61 $(BIN
)$/cli_cppuhelper.config \
62 $(POLICY_ASSEMBLY_FILE
)
65 managed_bootstrap.cs \
66 $(ASSEMBLY_ATTRIBUTES
)
68 $(ASSEMBLY_ATTRIBUTES
) .PHONY
: assembly.cs
$(BIN
)$/cliuno.snk
$(BIN
)$/cliureversion.mk
69 $(GNUCOPY
) -p assembly.cs
$@
71 [assembly
:System.Reflection.AssemblyVersion
( "$(CLI_CPPUHELPER_NEW_VERSION)" )] $(ECHOQUOTE
) \
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
$/
83 $(BIN
)$/cli_cppuhelper.dll
: $(CSFILES
) $(OUT
)$/bin
$/cli_uretypes.dll
87 -keyfile
:$(BIN
)$/cliuno.snk \
88 -reference
:$(OUT
)$/bin
$/cli_uretypes.dll \
89 -reference
:System.dll \
91 @echo
"If code has changed then provide a policy assembly and change the version!"
93 CFLAGS
+= $(MONO_CFLAGS
)
96 $(SLO
)$/native_glue.obj
98 SHL1OBJS
= $(SLOFILES
)
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 \
122 .INCLUDE
: $(PRJ
)$/util
$/target.pmk