mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user