Skip to content

Instantly share code, notes, and snippets.

@Delamare2112
Last active April 11, 2016 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Delamare2112/cfcb452fe05c9521b43c2d2605e779b8 to your computer and use it in GitHub Desktop.
Save Delamare2112/cfcb452fe05c9521b43c2d2605e779b8 to your computer and use it in GitHub Desktop.
:: build.bat
@echo off
FOR %%i IN (*.sln*) DO (
set file=%%i
)
set file=%file:~0,-4%
del %file%\Debug /Q
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe %file%\%file%.vcxproj
:: run.bat
@echo off
FOR %%i IN (*.sln*) DO (
set file=%%i
)
set file=%file:~0,-4%
start /wait /min cmd /C build.bat
if exist %file%\Debug\%file%.exe (
start %file%\Debug\%file%.exe
) else (
echo "Please run build and fix your problems first."
exit /b 1
)
:: debug.bat
@echo off
FOR %%i IN (*.sln*) DO (
set file=%%i
)
set debugger=C:%HOMEPATH%\Downloads\snapshot_2016-03-31_11-32\release\x96dbg.exe
set file=%file:~0,-4%
start /wait /min cmd /C build.bat
if exist %file%\Debug\%file%.exe (
start %debugger% %CD%\%file%\Debug\%file%.exe
) else (
echo "Please run build and fix your problems first."
exit /b 1
)
:: .atom-build.json
{
"cmd": "{PROJECT_PATH}\\build.bat",
"sh": true,
"targets": {
"run": {
"sh": true,
"cmd": "{PROJECT_PATH}\\run.bat"
},
"debug": {
"sh": true
"cmd": "{PROJECT_PATH}\\debug.bat"
}
}
}
:: .sublime-project
{
"folders":
[
{
"path": ".",
"folder_exclude_patterns": [".svn", "._d", ".metadata", ".settings", ".git", "*Debug"],
"file_exclude_patterns": ["*.pyc", "*.pyo", ".project"]
}
],
"build_systems":
[
{
"name": "build",
"working_dir": "$project_path",
"shell_cmd": "cmd /C $project_path\\build.bat"
},
{
"name": "run",
"working_dir": "$project_path",
"shell_cmd": "cmd /C $project_path\\run.bat"
},
{
"name": "debug",
"working_dir": "$project_path",
"shell_cmd": "cmd /C $project_path\\debug.bat"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment