all pdbs are now packaged with windows

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401564
This commit is contained in:
David Anderson 2007-10-14 21:31:39 +00:00
parent b71951d010
commit de6497f0d9
3 changed files with 21 additions and 18 deletions

View File

@ -12,7 +12,7 @@ namespace builder
{
}
public abstract bool BuildLibrary(Package pkg, Library lib, ref string _binName, ref string _binPath);
public abstract bool BuildLibrary(Package pkg, Library lib);
public abstract string GetPawnCompilerName();
@ -168,7 +168,6 @@ namespace builder
/* Do libraries */
Library [] libs = pkg.GetLibraries();
string bin = null, binpath = null;
for (int i=0; i<libs.Length; i++)
{
if (cfg.Platform == BasePlatform.Platform_Linux
@ -176,16 +175,7 @@ namespace builder
{
continue;
}
if (BuildLibrary(pkg, libs[i], ref bin, ref binpath))
{
path = Config.PathFormat("{0}/{1}/{2}/{3}",
cfg.pkg_path,
pkg.GetBaseFolder(),
libs[i].package_path,
bin);
File.Copy(binpath, path, true);
}
else
if (!BuildLibrary(pkg, libs[i]))
{
throw new System.Exception("Failed to compile library: " + libs[i].binary_name);
}

View File

@ -16,7 +16,7 @@ namespace builder
return "spcomp";
}
public override bool BuildLibrary(Package pkg, Library lib, ref string _binName, ref string _binPath)
public override bool BuildLibrary(Package pkg, Library lib)
{
ProcessStartInfo info = new ProcessStartInfo();
@ -94,8 +94,12 @@ namespace builder
return false;
}
_binName = binName;
_binPath = binpath;
path = Config.PathFormat("{0}/{1}/{2}/{3}",
cfg.pkg_path,
pkg.GetBaseFolder(),
lib.package_path,
binName);
File.Copy(binpath, path, true);
return true;
}

View File

@ -16,7 +16,7 @@ namespace builder
return "spcomp.exe";
}
public override bool BuildLibrary(Package pkg, Library lib, ref string _binName, ref string _binPath)
public override bool BuildLibrary(Package pkg, Library lib)
{
ProcessStartInfo info = new ProcessStartInfo();
@ -94,8 +94,17 @@ namespace builder
return false;
}
_binName = binName;
_binPath = binpath;
path = Config.PathFormat("{0}/{1}/{2}/{3}",
cfg.pkg_path,
pkg.GetBaseFolder(),
lib.package_path,
binName);
File.Copy(binpath, path, true);
/* On Windows we package the .pdb files as well */
binpath = binpath.Replace(".dll", ".pdb");
path = path.Replace(".dll", ".pdb");
File.Copy(binpath, path, true);
return true;
}