tools/builder/ABuilder.cs
changeset 1558 95a3d8bf618d
parent 1554 9ca40dd0a55a
child 1559 bb3fd890699d
     1.1 --- a/tools/builder/ABuilder.cs	Sun Oct 14 20:25:57 2007 +0000
     1.2 +++ b/tools/builder/ABuilder.cs	Sun Oct 14 21:31:39 2007 +0000
     1.3 @@ -12,7 +12,7 @@
     1.4  		{
     1.5  		}
     1.6  
     1.7 -		public abstract bool BuildLibrary(Package pkg, Library lib, ref string _binName, ref string _binPath);
     1.8 +		public abstract bool BuildLibrary(Package pkg, Library lib);
     1.9  
    1.10  		public abstract string GetPawnCompilerName();
    1.11  
    1.12 @@ -168,7 +168,6 @@
    1.13  
    1.14  			/* Do libraries */
    1.15  			Library [] libs = pkg.GetLibraries();
    1.16 -			string bin = null, binpath = null;
    1.17  			for (int i=0; i<libs.Length; i++)
    1.18  			{
    1.19  				if (cfg.Platform == BasePlatform.Platform_Linux
    1.20 @@ -176,16 +175,7 @@
    1.21  				{
    1.22  					continue;
    1.23  				}
    1.24 -				if (BuildLibrary(pkg, libs[i], ref bin, ref binpath))
    1.25 -				{
    1.26 -					path = Config.PathFormat("{0}/{1}/{2}/{3}",
    1.27 -						cfg.pkg_path,
    1.28 -						pkg.GetBaseFolder(),
    1.29 -						libs[i].package_path,
    1.30 -						bin);
    1.31 -					File.Copy(binpath, path, true);
    1.32 -				}
    1.33 -				else 
    1.34 +				if (!BuildLibrary(pkg, libs[i]))
    1.35  				{
    1.36  					throw new System.Exception("Failed to compile library: " + libs[i].binary_name);
    1.37  				}