1
0
forked from 0ad/0ad

committed Simon's fix for building asm files in dirs containing spaces

This was SVN commit r2811.
This commit is contained in:
janwas 2005-09-29 18:41:40 +00:00
parent d77d9e8346
commit 88f78b9ea2
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -282,12 +282,14 @@ static void vcFiles(FILE* file, const char* path, int stage)
Config *config=package->config[j];
const char *nasmPath = translatePath(config->nasmPath, WIN32);
// JW 2005-09-29: fixed CommandLine to work with paths
// containing spaces.
if (endsWith(path, ".asm"))
{
fprintf(file, "%s <FileConfiguration Name=\"%s|Win32\">\n", indent, config->name);
fprintf(file, "%s <Tool Name=\"VCCustomBuildTool\" "
"Description=\"Assembling $(InputPath)\" "
"CommandLine=\"%s -f win32 -o $(IntDir)\\$(InputName).asm.obj $(InputPath)\" "
"CommandLine=\"%s -f win32 -o \"$(IntDir)\\$(InputName).asm.obj\" \"$(InputPath)\"\" "
"Outputs=\"$(IntDir)\\$(InputName).asm.obj\" />", indent, nasmPath);
fprintf(file, "%s </FileConfiguration>", indent);
}