Skip to content

Commit

Permalink
[temp] Several changes to aid debugging
Browse files Browse the repository at this point in the history
* Add `<f5>ReloadSkin()</f5>` to keymap.xml for debugging
* Build binary add-ons in Debug mode
  • Loading branch information
garbear committed Jul 23, 2018
1 parent 5d1e3d8 commit 23cbb1a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/addons/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ else()
endif()

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_BUILD_TYPE Debug)
endif()

if(NOT CORE_SYSTEM_NAME)
Expand Down
2 changes: 1 addition & 1 deletion cmake/scripts/windows/CXXFlagOverrides.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(MSVC)
set(CMAKE_CXX_FLAGS "/D_UNICODE /DUNICODE /DRPC_USE_NATIVE_WCHAR /MP /DWIN32 /D_WINDOWS /W3 /GR /Zi /EHsc /arch:SSE2")
set(CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /MDd /Ob0 /Od /RTC1 /D_ITERATOR_DEBUG_LEVEL=0")
set(CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /MDd /Ob0 /Od /RTC1 /D_ITERATOR_DEBUG_LEVEL=2")
set(CMAKE_CXX_FLAGS_RELEASE "/MD /Ox /Ob2 /Oi /Ot /Oy /GL /DNDEBUG")
endif()
1 change: 1 addition & 0 deletions system/keymaps/keyboard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<keymap>
<global>
<keyboard>
<f5>ReloadSkin()</f5>
<p>Play</p>
<q>Queue</q>
<f>FastForward</f>
Expand Down
2 changes: 1 addition & 1 deletion tools/buildsteps/windows/make-addons.bat
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ SET STORE_ARGS=-DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=%UCRTVers

rem execute cmake to generate makefiles processable by nmake
cmake "%ADDONS_PATH%" -G "NMake Makefiles" ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_BUILD_TYPE=Debug ^
-DCMAKE_USER_MAKE_RULES_OVERRIDE="%SCRIPTS_PATH%/CFlagOverrides.cmake" ^
-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX="%SCRIPTS_PATH%/CXXFlagOverrides.cmake" ^
-DCMAKE_INSTALL_PREFIX=%ADDONS_INSTALL_PATH% ^
Expand Down

0 comments on commit 23cbb1a

Please sign in to comment.