diff --git a/qrenderdoc/CMakeLists.txt b/qrenderdoc/CMakeLists.txt index 39b7d3a13..999df5926 100644 --- a/qrenderdoc/CMakeLists.txt +++ b/qrenderdoc/CMakeLists.txt @@ -170,7 +170,7 @@ if(PYSIDE2_FOUND) "LIBS+=-L${PYSIDE2_LIBRARY_DIR}\n" "LIBS+=-lshiboken2\n") else() - message(STATUS "PySide2 not found - Qt will not be accessible in python scripting") + message(STATUS "PySide2 not found - Qt will not be accessible in python scripting. See https://github.com/baldurk/renderdoc/wiki/PySide2") file(APPEND ${CMAKE_BINARY_DIR}/qrenderdoc/qrenderdoc_cmake.pri diff --git a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp index 14f58e2dd..93e186689 100644 --- a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp +++ b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp @@ -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 diff --git a/qrenderdoc/Code/pyrenderdoc/pyrenderdoc_module.vcxproj b/qrenderdoc/Code/pyrenderdoc/pyrenderdoc_module.vcxproj index db899f88c..04211f60c 100644 --- a/qrenderdoc/Code/pyrenderdoc/pyrenderdoc_module.vcxproj +++ b/qrenderdoc/Code/pyrenderdoc/pyrenderdoc_module.vcxproj @@ -138,6 +138,7 @@ 4127;4189;4456;4459;4701;4244;4706;4101;%(DisableSpecificWarnings) None + /bigobj %(AdditionalOptions) diff --git a/qrenderdoc/Code/pyrenderdoc/qrenderdoc_module.vcxproj b/qrenderdoc/Code/pyrenderdoc/qrenderdoc_module.vcxproj index c3974d705..72142428e 100644 --- a/qrenderdoc/Code/pyrenderdoc/qrenderdoc_module.vcxproj +++ b/qrenderdoc/Code/pyrenderdoc/qrenderdoc_module.vcxproj @@ -132,6 +132,7 @@ 4127;4189;4456;4459;4701;4244;4706;4101;%(DisableSpecificWarnings) None + /bigobj %(AdditionalOptions) diff --git a/qrenderdoc/qrenderdoc_local.vcxproj b/qrenderdoc/qrenderdoc_local.vcxproj index 20f3ac3f4..628a783d1 100644 --- a/qrenderdoc/qrenderdoc_local.vcxproj +++ b/qrenderdoc/qrenderdoc_local.vcxproj @@ -90,7 +90,7 @@ true $(ProjectDir);$(IntDir)generated\;$(SolutionDir)\renderdoc\api\replay;3rdparty\python\include;3rdparty\pyside\include\PySide2;3rdparty\pyside\include\PySide2\QtCore;3rdparty\pyside\include\PySide2\QtGui;3rdparty\pyside\include\PySide2\QtWidgets;3rdparty\pyside\include\shiboken2;3rdparty\qt\$(Platform)\include;3rdparty\qt\$(Platform)\include\QtWidgets;3rdparty\qt\$(Platform)\include\QtGui;3rdparty\qt\$(Platform)\include\QtCore;3rdparty\qt\$(Platform)\include\QtSvg;3rdparty\qt\$(Platform)\include\QtNetwork;%(AdditionalIncludeDirectories) /Zc:strictStrings /Zc:throwingNew %(AdditionalOptions) - _WINDOWS;UNICODE;WIN32;WIN64;RENDERDOC_PLATFORM_WIN32;PYSIDE2_ENABLED=1;SCINTILLA_QT=1;MAKING_LIBRARY=1;SCI_LEXER=1;QT_NO_CAST_FROM_ASCII;QT_NO_CAST_TO_ASCII;QT_WIDGETS_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_SVG_LIB;%(PreprocessorDefinitions) + _WINDOWS;UNICODE;WIN32;WIN64;RENDERDOC_PLATFORM_WIN32;SCINTILLA_QT=1;MAKING_LIBRARY=1;SCI_LEXER=1;QT_NO_CAST_FROM_ASCII;QT_NO_CAST_TO_ASCII;QT_WIDGETS_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_SVG_LIB;%(PreprocessorDefinitions) Level4 true 4100;4127;4189;4714;4718;4996;%(DisableSpecificWarnings) @@ -100,7 +100,7 @@ Windows - shiboken2.lib;python36.lib;qtmain.lib;Qt5Widgets.lib;Qt5Gui.lib;Qt5Core.lib;Qt5Svg.lib;Qt5Network.lib;shell32.lib + python36.lib;qtmain.lib;Qt5Widgets.lib;Qt5Gui.lib;Qt5Core.lib;Qt5Svg.lib;Qt5Network.lib;shell32.lib 3rdparty\pyside\$(Platform);3rdparty\python\$(Platform);3rdparty\qt\$(Platform)\lib;%(AdditionalLibraryDirectories) true true @@ -121,35 +121,48 @@ $(SolutionDir)\renderdoc\api\replay - - - Disabled - - - - - Disabled - - - - - MaxSpeed - Default - true - true - - - true - true - - MultiThreadedDebugDLL - shiboken2.lib;python36.lib;qtmaind.lib;Qt5Widgetsd.lib;Qt5Guid.lib;Qt5Cored.lib;Qt5Svgd.lib;shell32.lib + python36.lib;qtmaind.lib;Qt5Widgetsd.lib;Qt5Guid.lib;Qt5Cored.lib;Qt5Svgd.lib;shell32.lib + + + PYSIDE2_ENABLED=1;%(PreprocessorDefinitions) + + + shiboken2.lib;%(AdditionalDependencies) + + + + + PYSIDE2_ENABLED=0;%(PreprocessorDefinitions) + + + + + Disabled + + + + + Disabled + + + + + MaxSpeed + Default + true + true + + + true + true + + @@ -661,6 +674,7 @@ NotUsing + /bigobj %(AdditionalOptions) 4101;4244;4456;4459;4706;%(DisableSpecificWarnings) @@ -668,6 +682,7 @@ NotUsing + /bigobj %(AdditionalOptions) @@ -1595,37 +1610,37 @@ IF %ERRORLEVEL% NEQ 0 (echo ==================================================== PreserveNewest false - + shiboken2.dll PreserveNewest false - + PySide2\pyside2.dll PreserveNewest false - + PySide2\__init__.py PreserveNewest false - + PySide2\_utils.py PreserveNewest false - + PySide2\QtCore.pyd PreserveNewest false - + PySide2\QtGui.pyd PreserveNewest false - + PySide2\QtWidgets.pyd PreserveNewest false