Permalink
Browse files

Strongly named Boo.dll, Boo.Lang.Parser.dll and Boo.Lang.Compiler

git-svn-id: https://svn.codehaus.org/boo/trunk@1336 2c1201b4-01cd-e047-a400-b836ae1fbc61
  • Loading branch information...
1 parent d07f2f7 commit b15eda30e824b989af350581b91c7debd232d7fc @bamboo bamboo committed Dec 15, 2004
View
@@ -3,8 +3,6 @@
<property name="debug" value="true" />
<property name="optimize" value="false" />
-
- <property name="skip.satellites" value="false" />
<property name="antlr.home" value="lib/antlr-2.7.4" />
<property name="java" value="java" />
@@ -183,12 +181,7 @@
</csc>
</target>
- <target name="Boo" depends="compile-grammar, satellites">
-
- <resgen
- input="src/Boo/Resources/strings.txt"
- output="build/strings.resources" />
-
+ <target name="Boo" depends="resources">
<csc
target="library"
output="build/Boo.dll"
@@ -202,6 +195,12 @@
<resources basedir="build">
<include name="strings.resources" />
</resources>
+ <resources basedir="build/pt">
+ <include name="strings.pt.resources" />
+ </resources>
+ <resources basedir="build/it">
+ <include name="strings.it.resources" />
+ </resources>
</csc>
</target>
@@ -346,39 +345,27 @@
</zip>
</target>
- <target name="satellites" depends="init" unless="${skip.satellites}">
+ <target name="resources" depends="init">
+
+ <resgen
+ input="src/Boo/Resources/strings.txt"
+ output="build/strings.resources" />
<property name="locale" value="pt" />
- <call target="build-satellite" />
+ <call target="build-resource" />
<property name="locale" value="it" />
- <call target="build-satellite" />
+ <call target="build-resource" />
</target>
- <target name="build-satellite">
+ <target name="build-resource">
<mkdir dir="${build.dir}/${locale}" />
-
<resgen
input="src/Boo/Resources/${locale}/strings.txt"
output="build/${locale}/strings.${locale}.resources" />
-
- <al target="lib"
- culture="${locale}"
- output="build/${locale}/Boo.resources.dll"
- if="${nant.platform.win32}">
- <sources basedir="build/${locale}">
- <include name="strings.${locale}.resources" />
- </sources>
- </al>
-
- <exec program="${path::combine(nant.settings.currentframework.sdkdirectory, 'al')}" if="${nant.platform.unix}">
- <arg value="/target:lib" />
- <arg value="/culture:${locale}" />
- <arg value="/out:build/${locale}/Boo.resources.dll" />
- <arg value="/embed:build/${locale}/strings.${locale}.resources" />
- </exec>
+
</target>
<target name="compile-grammar" depends="init" unless="${skip.antlr}">
@@ -33,59 +33,15 @@
[assembly: ReflectionPermission(SecurityAction.RequestMinimum,
ReflectionEmit=true,
TypeInformation=true)]
-
-//
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-//
-[assembly: AssemblyTitle("boo -an extensible programming language for the CLI")]
+[assembly: AssemblyTitle("boo - an extensible programming language for the CLI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("boo - an extensible programming language for the CLI")]
[assembly: AssemblyCopyright("(C) 2004 Rodrigo Barreto de Oliveira")]
[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-//
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-
+[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.0.0.0")]
-
-//
-// In order to sign your assembly you must specify a key to use. Refer to the
-// Microsoft .NET Framework documentation for more information on assembly signing.
-//
-// Use the attributes below to control which key is used for signing.
-//
-// Notes:
-// (*) If no key is specified, the assembly is not signed.
-// (*) KeyName refers to a key that has been installed in the Crypto Service
-// Provider (CSP) on your machine. KeyFile refers to a file which contains
-// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
-// following processing occurs:
-// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
-// in the KeyFile is installed into the CSP and used.
-// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
-// When specifying the KeyFile, the location of the KeyFile should be
-// relative to the project output directory which is
-// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
-// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
-// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
-// documentation for more information on this.
-//
[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
+[assembly: AssemblyKeyFile("../src/boo.snk")]
[assembly: AssemblyKeyName("")]
@@ -120,5 +120,10 @@ public bool IsStatic
return _event.GetAddMethod().IsStatic;
}
}
+
+ override public string ToString()
+ {
+ return _event.ToString();
+ }
}
}
@@ -62,7 +62,8 @@ public bool IsPublic
{
get
{
- return GetAccessor().IsPublic;
+ return (null != _property.GetGetMethod() ||
+ null != _property.GetSetMethod());
}
}
@@ -165,5 +165,10 @@ public Property Property
return _property;
}
}
+
+ override public string ToString()
+ {
+ return string.Format("{0} as {1}", Name, Type);
+ }
}
}
@@ -38,4 +38,5 @@ import System.Runtime.CompilerServices
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyKeyFile("../src/boo.snk")]
@@ -1,86 +1,43 @@
-#region license
-// Copyright (c) 2004, Rodrigo B. de Oliveira (rbo@acm.org)
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification,
-// are permitted provided that the following conditions are met:
-//
-// * Redistributions of source code must retain the above copyright notice,
-// this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above copyright notice,
-// this list of conditions and the following disclaimer in the documentation
-// and/or other materials provided with the distribution.
-// * Neither the name of Rodrigo B. de Oliveira nor the names of its
-// contributors may be used to endorse or promote products derived from this
-// software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+#region license
+// Copyright (c) 2004, Rodrigo B. de Oliveira (rbo@acm.org)
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without modification,
+// are permitted provided that the following conditions are met:
+//
+// * Redistributions of source code must retain the above copyright notice,
+// this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+// * Neither the name of Rodrigo B. de Oliveira nor the names of its
+// contributors may be used to endorse or promote products derived from this
+// software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#endregion
+#endregion
using System.Reflection;
using System.Runtime.CompilerServices;
-//
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-//
[assembly: AssemblyTitle("boo antlr based parser")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("boo - an extensible programming language for the CLI")]
[assembly: AssemblyCopyright("(C) 2004 Rodrigo Barreto de Oliveira")]
[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-//
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-
+[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.0.0.0")]
-
-//
-// In order to sign your assembly you must specify a key to use. Refer to the
-// Microsoft .NET Framework documentation for more information on assembly signing.
-//
-// Use the attributes below to control which key is used for signing.
-//
-// Notes:
-// (*) If no key is specified, the assembly is not signed.
-// (*) KeyName refers to a key that has been installed in the Crypto Service
-// Provider (CSP) on your machine. KeyFile refers to a file which contains
-// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
-// following processing occurs:
-// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
-// in the KeyFile is installed into the CSP and used.
-// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
-// When specifying the KeyFile, the location of the KeyFile should be
-// relative to the project output directory which is
-// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
-// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
-// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
-// documentation for more information on this.
-//
[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
+[assembly: AssemblyKeyFile("../src/boo.snk")]
[assembly: AssemblyKeyName("")]
Oops, something went wrong.

0 comments on commit b15eda3

Please sign in to comment.