summaryrefslogtreecommitdiff
path: root/PreBuild.bat
diff options
context:
space:
mode:
Diffstat (limited to 'PreBuild.bat')
-rw-r--r--PreBuild.bat21
1 files changed, 21 insertions, 0 deletions
diff --git a/PreBuild.bat b/PreBuild.bat
new file mode 100644
index 0000000..50c1e03
--- /dev/null
+++ b/PreBuild.bat
@@ -0,0 +1,21 @@
+@ECHO OFF
+
+REM
+REM %1 = $(PlatformName)
+REM %2 = $(ConfigurationName)
+REM
+
+del SpiceX.inf
+del OSpiceX.rgs
+
+if "%1" == "Win32" (
+set CLSID=ACD6D89C-938D-49B4-8E81-DDBD13F4B48A
+) else if "%1" == "x64" (
+set CLSID=ACD6D89C-938D-49B4-8E81-DDBD13F4B48B
+) else (
+echo Wrong PlatformName %1
+exit /B 1
+)
+
+sed "s|CLASS_ID|%CLSID%|" SpiceX.inf.template > SpiceX.inf
+sed "s|CLASS_ID|%CLSID%|" OSpiceX.rgs.template > OSpiceX.rgs