mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
qrenderdoc: Drop building swig .py.c files
This is an alternative to https://github.com/baldurk/renderdoc/pull/1768 suggested by baldurk. I found that for some reason when cross compiling, the qrenderdoc CMakeLists.txt was failing to see the include-bin executable that renderdoc should have built. Apparently the .py.c files were no longer required for qrenderdoc, so removing it also fixed the issue I was seeing. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
committed by
Baldur Karlsson
parent
528a0c5f5e
commit
d2f7837ecf
@@ -258,14 +258,7 @@ foreach(in ${swig_interfaces})
|
||||
DEPENDS ${RDOC_REPLAY_FILES}
|
||||
DEPENDS ${QRD_INTERFACE_FILES})
|
||||
|
||||
add_custom_command(OUTPUT ${swig_file}.py.c
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin ${swig_file}.py ${swig_file}.py.c
|
||||
DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin
|
||||
DEPENDS ${swig_file}_python.cxx)
|
||||
|
||||
list(APPEND swig_output ${swig_file}_python.cxx)
|
||||
list(APPEND swig_output ${swig_file}.py.c)
|
||||
endforeach()
|
||||
|
||||
add_custom_target(swig-bindings ALL DEPENDS ${swig_output})
|
||||
|
||||
@@ -128,9 +128,7 @@ win32 {
|
||||
|
||||
# Add the SWIG files that were generated in cmake
|
||||
SOURCES += $$CMAKE_DIR/qrenderdoc/renderdoc_python.cxx
|
||||
SOURCES += $$CMAKE_DIR/qrenderdoc/renderdoc.py.c
|
||||
SOURCES += $$CMAKE_DIR/qrenderdoc/qrenderdoc_python.cxx
|
||||
SOURCES += $$CMAKE_DIR/qrenderdoc/qrenderdoc.py.c
|
||||
|
||||
CONFIG += warn_off
|
||||
CONFIG += c++14
|
||||
|
||||
Reference in New Issue
Block a user