merge the formfield patch from ooo-build
[ooovba.git] / cli_ure / source / ure / makefile.mk
bloba30906b5bd4107465a8a305490283d24809ba7e7
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.21 $
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 = ure
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
50 # ' emacs is a fool
52 .IF "$(BUILD_FOR_CLI)" != ""
54 .INCLUDE : $(BIN)$/cliureversion.mk
56 ASSEMBLY_ATTRIBUTES = $(MISC)$/assembly_ure_$(TARGET).cs
58 POLICY_ASSEMBLY_FILE=$(BIN)$/$(CLI_URE_POLICY_ASSEMBLY).dll
59 ALLTAR : \
60 $(BIN)$/cli_ure.dll \
61 $(POLICY_ASSEMBLY_FILE)
63 .IF "$(CCNUMVER)" >= "001399999999"
64 CSCFLAGS+=-keyfile:"$(BIN)$/cliuno.snk"
65 .ENDIF
67 CSFILES = \
68 uno$/util$/DisposeGuard.cs \
69 uno$/util$/WeakAdapter.cs \
70 uno$/util$/WeakBase.cs \
71 uno$/util$/WeakComponentBase.cs \
72 $(ASSEMBLY_ATTRIBUTES)
74 .IF "$(CCNUMVER)" <= "001399999999"
75 $(ASSEMBLY_ATTRIBUTES) : assembly.cs makefile.mk $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
76 $(GNUCOPY) -p assembly.cs $@
77 echo $(ECHOQUOTE) \
78 [assembly:System.Reflection.AssemblyVersion( "$(CLI_URE_NEW_VERSION)")] \
79 [assembly:System.Reflection.AssemblyKeyFile(@"$(BIN)$/cliuno.snk")]$(ECHOQUOTE) \
80 >> $@
81 .ELSE
82 $(ASSEMBLY_ATTRIBUTES) : assembly.cs makefile.mk $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
83 $(GNUCOPY) -p assembly.cs $@
84 echo $(ECHOQUOTE) \
85 [assembly:System.Reflection.AssemblyVersion( "$(CLI_URE_NEW_VERSION)")]$(ECHOQUOTE) \
86 >> $@
87 .ENDIF
89 $(BIN)$/cli_ure.dll : $(CSFILES) $(BIN)$/cli_uretypes.dll $(BIN)$/cliureversion.mk
90 $(CSC) $(CSCFLAGS) \
91 -target:library \
92 -out:$@ \
93 -keyfile:$(BIN)$/cliuno.snk \
94 -reference:$(OUT)$/bin$/cli_uretypes.dll \
95 -reference:System.dll \
96 $(CSFILES)
97 @echo "If code has changed then provide a policy assembly and change the version!"
100 #do not forget to deliver cli_ure.config. It is NOT embedded in the policy file.
101 $(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_ure.config
102 $(WRAPCMD) $(AL) -out:$@ \
103 -version:$(CLI_URE_POLICY_VERSION) \
104 -keyfile:$(BIN)$/cliuno.snk \
105 -link:cli_ure.config,$(BIN)$/cli_ure.config
107 #Create the config file that is used with the policy assembly
108 $(BIN)$/cli_ure.config: cli_ure_config $(BIN)$/cliureversion.mk
109 $(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \
110 $< $@
113 .ENDIF