2015-09-04, 21:37
(2015-08-30, 14:10)garbear Wrote: How do you set up add-ons for debugging on windows? I tried setting cmake params to debug, but the resulting DLLs don't compile successfully.
So here goes:
- change addon definitions to file:///....
- open tools\windows\prepare-binary-addons-dev.bat and change -DCMAKE_BUILD_TYPE=Debug ^ to -DCMAKE_BUILD_TYPE=Release ^
- run tools\windows\prepare-binary-addons-dev.bat (you can pass a list of addons to build)
- open project\cmake\addons\build\kodi-addons.sln and build the solution (often need to build twice)
- add project\cmake\addons\build\<addon-id>-prefix\src\<addon-id>-build\<addon-id>.vcxproj to the solution
- build the solution (unfortunately this won't package and copy the addons to the addons directory)
- set any breakpoints in the addon code and run Kodi
- for installing the addons after building either create your own post build event or open project\cmake\addons\build\<addon-id>-prefix\src\<addon-id>-build\<addon-id>.sln and build the INSTALL project