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 #*************************************************************************
34 .INCLUDE
: settings.mk
35 .INCLUDE
: $(PRJ
)$/util
$/makefile.pmk
37 .INCLUDE
: $(PRJ
)$/util
$/target.pmk
40 .IF
"$(BUILD_FOR_CLI)" != ""
42 .INCLUDE
: $(BIN
)$/cliureversion.mk
44 ASSEMBLY_ATTRIBUTES
= $(MISC
)$/assembly_ure_
$(TARGET
).cs
45 POLICY_ASSEMBLY_FILE
=$(BIN
)$/$(CLI_BASETYPES_POLICY_ASSEMBLY
).dll
48 $(BIN
)$/cli_basetypes.dll \
49 $(POLICY_ASSEMBLY_FILE
)
51 .IF
"$(CCNUMVER)" >= "001399999999"
52 CSCFLAGS
+=-keyfile
:"$(BIN)$/cliuno.snk"
57 uno
$/BoundAttribute.cs \
58 uno
$/ExceptionAttribute.cs \
59 uno
$/ParameterizedTypeAttribute.cs \
60 uno
$/TypeParametersAttribute.cs \
61 uno
$/TypeArgumentsAttribute.cs \
62 uno
$/OnewayAttribute.cs \
63 uno
$/PolymorphicType.cs \
64 $(ASSEMBLY_ATTRIBUTES
)
66 .IF
"$(CCNUMVER)" <= "001399999999"
67 $(ASSEMBLY_ATTRIBUTES
) : assembly.cs makefile.mk
$(BIN
)$/cliuno.snk
$(BIN
)$/cliureversion.mk
68 $(GNUCOPY
) -p assembly.cs
$@
70 '[assembly:System.Reflection.AssemblyVersion( "$(CLI_BASETYPES_NEW_VERSION)")] \
71 [assembly:System.Reflection.AssemblyKeyFile(@"$(BIN)$/cliuno.snk")]' \
74 $(ASSEMBLY_ATTRIBUTES
) : assembly.cs makefile.mk
$(BIN
)$/cliuno.snk
$(BIN
)$/cliureversion.mk
75 $(GNUCOPY
) -p assembly.cs
$@
77 '[assembly:System.Reflection.AssemblyVersion( "$(CLI_BASETYPES_NEW_VERSION)")]' \
81 $(BIN
)$/cli_basetypes.dll
: $(CSFILES
) $(BIN
)$/cliureversion.mk
85 -reference
:System.dll \
87 @echo
"If code has changed then provide a policy assembly and change the version!"
89 #do not forget to deliver cli_uretypes.config. It is NOT embedded in the policy file.
90 $(POLICY_ASSEMBLY_FILE
) : $(BIN
)$/cli_basetypes.config
91 $(WRAPCMD
) AL.exe
-out
:$@ \
92 -version
:$(CLI_BASETYPES_POLICY_VERSION
) \
93 -keyfile
:$(BIN
)$/cliuno.snk \
94 -link
:$(BIN
)$/cli_basetypes.config
97 #Create the config file that is used with the policy assembly
98 $(BIN
)$/cli_basetypes.config
: cli_basetypes_config
$(BIN
)$/cliureversion.mk
99 $(PERL
) $(SOLARENV
)$/bin
$/clipatchconfig.pl \