Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / cli_ure / source / basetypes / makefile.mk
blob5547c32de0dfa9f4a69fb881187a3948e1bad0c8
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 # for dummy
32 TARGET = basetypes
34 .INCLUDE : settings.mk
35 .INCLUDE : $(PRJ)$/util$/makefile.pmk
37 .INCLUDE : $(PRJ)$/util$/target.pmk
38 .INCLUDE : target.mk
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
47 ALLTAR : \
48 $(BIN)$/cli_basetypes.dll \
49 $(POLICY_ASSEMBLY_FILE)
51 .IF "$(CCNUMVER)" >= "001399999999"
52 CSCFLAGS+=-keyfile:"$(BIN)$/cliuno.snk"
53 .ENDIF
55 CSFILES = \
56 uno$/Any.cs \
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 $@
69 echo \
70 '[assembly:System.Reflection.AssemblyVersion( "$(CLI_BASETYPES_NEW_VERSION)")] \
71 [assembly:System.Reflection.AssemblyKeyFile(@"$(BIN)$/cliuno.snk")]' \
72 >> $@
73 .ELSE
74 $(ASSEMBLY_ATTRIBUTES) : assembly.cs makefile.mk $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
75 $(GNUCOPY) -p assembly.cs $@
76 echo \
77 '[assembly:System.Reflection.AssemblyVersion( "$(CLI_BASETYPES_NEW_VERSION)")]' \
78 >> $@
79 .ENDIF
81 $(BIN)$/cli_basetypes.dll : $(CSFILES) $(BIN)$/cliureversion.mk
82 $(CSC) $(CSCFLAGS) \
83 -target:library \
84 -out:$@ \
85 -reference:System.dll \
86 $(CSFILES)
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 \
100 $< $@
103 .ENDIF