Switch RENDERDOC_PLATFORM to RENDERDOC_PLATFORM_<PLAT>.

Notes
======
- With no clean way to do string comparisons in the C preprocessor, have a define per-platform. This avoids the clever string concatenation for determining the OS-specic bits, and allows SN-DBS to distribute builds without custom rewrite rules.
- Fix up instances of WIN32, etc., in non-3rdparty sources to refer to this.
- Move the per-platform specific bits into their own subdirs.
This commit is contained in:
Michael Vance
2016-04-15 12:57:58 -04:00
parent f30a1a6dc3
commit 8b1794456d
23 changed files with 54 additions and 52 deletions
+2 -2
View File
@@ -238,7 +238,7 @@ int renderdoccmd(int argc, char **argv)
fprintf(stderr, "Not enough parameters to --replay");
}
}
#ifdef WIN32
#if defined(RENDERDOC_PLATFORM_WIN32)
// if we were given an executable on windows, inject into it
// can't do this on other platforms as there's no nice extension
// and we don't want to just launch any single parameter in case it's
@@ -370,7 +370,7 @@ int renderdoccmd(int argc, char **argv)
fprintf(stderr, "renderdoccmd usage:\n\n");
fprintf(stderr, " <file.rdc> Launch a preview window that replays this logfile and\n");
fprintf(stderr, " displays the backbuffer.\n");
#ifdef WIN32
#if defined(RENDERDOC_PLATFORM_WIN32)
fprintf(stderr, " <program.exe> Launch a capture of this program with default options.\n");
#endif
fprintf(stderr, "\n");