Make PySide2 optional on windows

* It's already optional on linux due to distributions not necessarily
  carrying packages for it yet. We also make it optional on windows
  since by the same measure it's not a huge problem if it's missing, and
  official builds will include it. This means we don't have to ship the
  binary dependencies
This commit is contained in:
baldurk
2018-02-02 20:47:19 +00:00
parent bbb4fed8e1
commit c1ceb3b02a
5 changed files with 58 additions and 33 deletions
@@ -46,6 +46,14 @@
PyTypeObject **SbkPySide2_QtCoreTypes = NULL;
PyTypeObject **SbkPySide2_QtGuiTypes = NULL;
PyTypeObject **SbkPySide2_QtWidgetsTypes = NULL;
#else
// for non-windows, this message is displayed at CMake time.
#ifdef _MSC_VER
#pragma message( \
"Building without PySide2 - Qt will not be accessible in python scripting. See https://github.com/baldurk/renderdoc/wiki/PySide2")
#endif
#endif
#include <QApplication>
@@ -138,6 +138,7 @@
<ClCompile Include="$(IntDir)generated\renderdoc_module_python.cxx">
<DisableSpecificWarnings>4127;4189;4456;4459;4701;4244;4706;4101;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DebugInformationFormat Condition="'$(Configuration)'=='Release'">None</DebugInformationFormat>
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
</ItemGroup>
<ItemGroup>
@@ -132,6 +132,7 @@
<ClCompile Include="$(IntDir)generated\renderdoc_module_python.cxx">
<DisableSpecificWarnings>4127;4189;4456;4459;4701;4244;4706;4101;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DebugInformationFormat Condition="'$(Configuration)'=='Release'">None</DebugInformationFormat>
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
</ItemGroup>
<ItemGroup>