1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 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. 14# 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). 20# 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. 25# 26#************************************************************************* 27 28PRJ = ..$/.. 29PRJNAME = cli_ure 30 31# for dummy 32TARGET = basetypes 33 34.INCLUDE : settings.mk 35.INCLUDE : $(PRJ)$/util$/makefile.pmk 36 37.INCLUDE : $(PRJ)$/util$/target.pmk 38.INCLUDE : target.mk 39 40.IF "$(BUILD_FOR_CLI)" != "" 41 42.INCLUDE : $(BIN)$/cliureversion.mk 43 44ASSEMBLY_ATTRIBUTES = $(MISC)$/assembly_ure_$(TARGET).cs 45POLICY_ASSEMBLY_FILE=$(BIN)$/$(CLI_BASETYPES_POLICY_ASSEMBLY).dll 46 47ALLTAR : \ 48 $(BIN)$/cli_basetypes.dll \ 49 $(POLICY_ASSEMBLY_FILE) 50 51.IF "$(CCNUMVER)" >= "001399999999" 52CSCFLAGS+=-keyfile:"$(BIN)$/cliuno.snk" 53.ENDIF 54 55CSFILES = \ 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) 65 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 80 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!" 88 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 95 96 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 $< $@ 101 102 103.ENDIF 104 105 106