1
0
forked from 0ad/0ad

Made premake put ps_test.pdb into binaries/data

This was SVN commit r1458.
This commit is contained in:
Ykkrosh 2004-12-05 19:10:57 +00:00
parent ffb5f87857
commit cf7f9dcc47
7 changed files with 35 additions and 13 deletions

Binary file not shown.

View File

@ -4,6 +4,7 @@ dofile("../functions.lua")
project.name = "pyrogenesis" project.name = "pyrogenesis"
project.bindir = "../../../binaries/system" project.bindir = "../../../binaries/system"
project.libdir = "../../../binaries/system" project.libdir = "../../../binaries/system"
project.debugdir = "../../../binaries/data"
project.configs = { "Debug", "Release", "Testing" } project.configs = { "Debug", "Release", "Testing" }
-- Start the package part -- Start the package part

View File

@ -67,7 +67,7 @@
</Configuration> </Configuration>
<Configuration <Configuration
Name="Release|Win32" Name="Release|Win32"
OutputDirectory=".\" OutputDirectory=".."
IntermediateDirectory="obj\Release\" IntermediateDirectory="obj\Release\"
ConfigurationType="1" ConfigurationType="1"
CharacterSet="2"> CharacterSet="2">

View File

@ -285,6 +285,7 @@ static int finishProject()
project->path = getString(getProject(), "path"); project->path = getString(getProject(), "path");
project->binaries = getString(getProject(), "bindir"); project->binaries = getString(getProject(), "bindir");
project->libraries = getString(getProject(), "libdir"); project->libraries = getString(getProject(), "libdir");
project->debugfiles = getString(getProject(), "debugdir");
optlist = getArray(-1, "options"); optlist = getArray(-1, "options");
project->numOptions = getArraySize(optlist); project->numOptions = getArraySize(optlist);

View File

@ -60,6 +60,7 @@ typedef struct _Project
const char* name; const char* name;
const char* binaries; const char* binaries;
const char* libraries; const char* libraries;
const char* debugfiles;
const char* path; const char* path;
Package** package; Package** package;
Option** option; Option** option;

View File

@ -479,7 +479,20 @@ static int writeVcProject(int version, Package* package)
writeList(file, config->libPaths, ";", "", "", checkDir, NULL); writeList(file, config->libPaths, ";", "", "", checkDir, NULL);
fprintf(file, "\"\n"); fprintf(file, "\"\n");
fprintf(file, " GenerateDebugInformation=\"%s\"\n", symbols ? "TRUE" : "FALSE"); fprintf(file, " GenerateDebugInformation=\"%s\"\n", symbols ? "TRUE" : "FALSE");
if (symbols) fprintf(file, " ProgramDatabaseFile=\"obj\\%s\\%s.pdb\"\n", config->name, getFilename(config->target, 0));
if (symbols)
{
if (project->debugfiles)
{
fprintf(file, " ProgramDatabaseFile=\"");
fprintf(file, reversePath(path, project->debugfiles, WIN32));
fprintf(file, "%s.pdb\"\n", getFilename(config->target, 0));
}
else
{
fprintf(file, " ProgramDatabaseFile=\"obj\\%s\\%s.pdb\"\n", config->name, getFilename(config->target, 0));
}
}
fprintf(file, " SubSystem=\"%d\"\n", subsystem); fprintf(file, " SubSystem=\"%d\"\n", subsystem);
if (!debug) fprintf(file, " OptimizeReferences=\"2\"\n"); if (!debug) fprintf(file, " OptimizeReferences=\"2\"\n");
if (!debug) fprintf(file, " EnableCOMDATFolding=\"2\"\n"); if (!debug) fprintf(file, " EnableCOMDATFolding=\"2\"\n");

View File

@ -9,17 +9,23 @@ REM Change to the lua project name, this must correspond to the base file name
REM of the created project files REM of the created project files
SET PROJECT=pyrogenesis SET PROJECT=pyrogenesis
CD premake cd ..\premake
premake --target vs6
MOVE %PROJECT%.dsw ..\vc6
MOVE %PROJECT%.dsp ..\vc6
premake --target vs7 REM Minor hack to make sure the relative paths are correct:
move %PROJECT%.sln ..\vc7 mkdir tmp
move %PROJECT%.vcproj ..\vc7 copy premake.lua tmp
cd tmp
premake --target vs2003 ..\premake --target vs6
move %PROJECT%.sln ..\vc2003 move %PROJECT%.dsw ..\..\workspaces\vc6
move %PROJECT%.vcproj ..\vc2003 move %PROJECT%.dsp ..\..\workspaces\vc6
cd .. ..\premake --target vs7
move %PROJECT%.sln ..\..\workspaces\vc7
move %PROJECT%.vcproj ..\..\workspaces\vc7
..\premake --target vs2003
move %PROJECT%.sln ..\..\workspaces\vc2003
move %PROJECT%.vcproj ..\..\workspaces\vc2003
cd ..\..\workspaces