add release build
This commit is contained in:
parent
7862a974fc
commit
98804d9ee4
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@
|
||||
*.idb
|
||||
*.obj
|
||||
*.res
|
||||
*.aps
|
||||
@ -17,7 +17,7 @@ link.exe @"link.rsp" /NOLOGO /ERRORREPORT:PROMPT
|
||||
|
||||
@if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
mt.exe -manifest d3d10.exe.manifest -outputresource:Debug\d3d10.exe;1
|
||||
mt.exe -manifest d3d10.exe.debug.manifest -outputresource:Debug\d3d10.exe;1
|
||||
|
||||
@if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
|
||||
24
build_release.bat
Normal file
24
build_release.bat
Normal file
@ -0,0 +1,24 @@
|
||||
fxc /Od /Zi /T fx_4_0 /nologo /Fo main.fxo main.fx
|
||||
|
||||
@if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
rem build main resource
|
||||
rc.exe /d "_UNICODE" /d "UNICODE" /fo"Release\main.res" ".\main.rc"
|
||||
|
||||
@if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
rem compile
|
||||
cl.exe @"compile_release.rsp" "main.cpp"
|
||||
|
||||
@if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
rem link
|
||||
link.exe @"link_release.rsp" /NOLOGO /ERRORREPORT:PROMPT
|
||||
|
||||
@if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
mt.exe -manifest d3d10.exe.release.manifest -outputresource:Release\d3d10.exe;1
|
||||
|
||||
@if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
Release\d3d10.exe
|
||||
19
compile_release.rsp
Normal file
19
compile_release.rsp
Normal file
@ -0,0 +1,19 @@
|
||||
/O2
|
||||
/GL
|
||||
/D "WIN32"
|
||||
/D "NDEBUG"
|
||||
/D "_WINDOWS"
|
||||
/D "_UNICODE"
|
||||
/D "UNICODE"
|
||||
/FD
|
||||
/EHsc
|
||||
/MT
|
||||
/Fo"Release\\"
|
||||
/Fd"Release\vc80.pdb"
|
||||
/W3
|
||||
/c
|
||||
/Wp64
|
||||
/Zi
|
||||
/TP
|
||||
/nologo
|
||||
/errorReport:prompt
|
||||
25
link_release.rsp
Normal file
25
link_release.rsp
Normal file
@ -0,0 +1,25 @@
|
||||
/INCREMENTAL:NO
|
||||
/SUBSYSTEM:WINDOWS
|
||||
/OPT:REF
|
||||
/OPT:ICF
|
||||
/LTCG
|
||||
/MANIFEST:NO
|
||||
/MACHINE:X86
|
||||
/OUT:"Release\d3d10.exe"
|
||||
/PDB:"Release\d3d10.pdb"
|
||||
d3d10.lib
|
||||
d3dx10.lib
|
||||
kernel32.lib
|
||||
user32.lib
|
||||
gdi32.lib
|
||||
winspool.lib
|
||||
comdlg32.lib
|
||||
advapi32.lib
|
||||
shell32.lib
|
||||
ole32.lib
|
||||
oleaut32.lib
|
||||
uuid.lib
|
||||
odbc32.lib
|
||||
odbccp32.lib
|
||||
".\Release\main.obj"
|
||||
".\Release\main.res"
|
||||
2
main.cpp
2
main.cpp
@ -262,7 +262,7 @@ HRESULT InitDirect3DDevice()
|
||||
&pBlobErrors,
|
||||
NULL);
|
||||
if (FAILED(hr)) {
|
||||
print("D3DX10CreateEffectFromFile\n");
|
||||
print("D3DX10CreateEffectFromResource\n");
|
||||
if (pBlobErrors != NULL) {
|
||||
const char * pError = (const char *)pBlobErrors->GetBufferPointer();
|
||||
print("pError: %p\n", pError);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user