Skip to content

Instantly share code, notes, and snippets.

@andresfelipemendez
Last active February 7, 2018 16:15
Show Gist options
  • Save andresfelipemendez/60e07a37acaa3b06489841fbc2aa005d to your computer and use it in GitHub Desktop.
Save andresfelipemendez/60e07a37acaa3b06489841fbc2aa005d to your computer and use it in GitHub Desktop.
@echo off
mkdir ..\..\build
pushd ..\..\build
cl -Zi ..\handmade\code\win32_handmade.cpp user32.lib
popd

cmd target

windir%\system32\cmd.exe /k c:\Users\andres.mendez\Development\handmadehero\handmade\misc\shell.bat && cd /d w:\

open startup folder

shell:startup paste startup.bat

@echo off
call "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
@echo off
subst w: c:\Users\andres.mendez\Development\handmadehero
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "../code/build",
"windows" :{
"command": ".\\code\\build.bat"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "run",
"type": "shell",
"command": "../code/build",
"windows" :{
"command": "..\\..\\build\\win32_handmade.exe"
},
"group": {
"kind": "test",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment