merge the formfield patch from ooo-build
[ooovba.git] / cli_ure / source / basetypes / makefile.mk
blobee2063e6f55f8ac69013a97ce702b419db522aa6
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.11 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ = ..$/..
33 PRJNAME = cli_ure
35 # for dummy
36 TARGET = basetypes
38 .INCLUDE : settings.mk
39 .INCLUDE : $(PRJ)$/util$/makefile.pmk
41 .INCLUDE : $(PRJ)$/util$/target.pmk
42 .INCLUDE : target.mk
45 .IF "$(USE_SHELL)"!="4nt"
46 ECHOQUOTE='
47 .ELSE
48 ECHOQUOTE=
49 .ENDIF
51 .IF "$(BUILD_FOR_CLI)" != ""
53 .INCLUDE : $(BIN)$/cliureversion.mk
55 ASSEMBLY_ATTRIBUTES = $(MISC)$/assembly_ure_$(TARGET).cs
56 POLICY_ASSEMBLY_FILE=$(BIN)$/$(CLI_BASETYPES_POLICY_ASSEMBLY).dll
58 ALLTAR : \
59 $(BIN)$/cli_basetypes.dll \
60 $(POLICY_ASSEMBLY_FILE)
62 .IF "$(CCNUMVER)" >= "001399999999"
63 CSCFLAGS+=-keyfile:"$(BIN)$/cliuno.snk"
64 .ENDIF
66 CSFILES = \
67 uno$/Any.cs \
68 uno$/BoundAttribute.cs \
69 uno$/ExceptionAttribute.cs \
70 uno$/ParameterizedTypeAttribute.cs \
71 uno$/TypeParametersAttribute.cs \
72 uno$/TypeArgumentsAttribute.cs \
73 uno$/OnewayAttribute.cs \
74 uno$/PolymorphicType.cs \
75 $(ASSEMBLY_ATTRIBUTES)
77 .IF "$(CCNUMVER)" <= "001399999999"
78 $(ASSEMBLY_ATTRIBUTES) : assembly.cs makefile.mk $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
79 $(GNUCOPY) -p assembly.cs $@
80 echo $(ECHOQUOTE) \
81 [assembly:System.Reflection.AssemblyVersion( "$(CLI_BASETYPES_NEW_VERSION)")] \
82 [assembly:System.Reflection.AssemblyKeyFile(@"$(BIN)$/cliuno.snk")]$(ECHOQUOTE) \
83 >> $@
84 .ELSE
85 $(ASSEMBLY_ATTRIBUTES) : assembly.cs makefile.mk $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
86 $(GNUCOPY) -p assembly.cs $@
87 echo $(ECHOQUOTE) \
88 [assembly:System.Reflection.AssemblyVersion( "$(CLI_BASETYPES_NEW_VERSION)")]$(ECHOQUOTE) \
89 >> $@
90 .ENDIF
92 $(BIN)$/cli_basetypes.dll : $(CSFILES) $(BIN)$/cliureversion.mk
93 $(CSC) $(CSCFLAGS) \
94 -target:library \
95 -out:$@ \
96 -keyfile:$(BIN)$/cliuno.snk \
97 -reference:System.dll \
98 $(CSFILES)
99 @echo "If code has changed then provide a policy assembly and change the version!"
101 #do not forget to deliver cli_uretypes.config. It is NOT embedded in the policy file.
102 $(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_basetypes.config
103 $(WRAPCMD) $(AL) -out:$@ \
104 -version:$(CLI_BASETYPES_POLICY_VERSION) \
105 -keyfile:$(BIN)$/cliuno.snk \
106 -link:cli_basetypes.config,$(BIN)$/cli_basetypes.config
109 #Create the config file that is used with the policy assembly
110 $(BIN)$/cli_basetypes.config: cli_basetypes_config $(BIN)$/cliureversion.mk
111 $(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \
112 $< $@
115 .ENDIF