Python compatibility changes

* Add OpenGLWidgest as a req
* Use res directory for qrc replacement
This commit is contained in:
Jeremy Rimpo
2021-12-06 05:19:46 -06:00
parent 4e23c04cd3
commit 2606d8edc7
3 changed files with 23 additions and 16 deletions
+1 -16
View File
@@ -40,7 +40,7 @@ macro(do_src)
endif()
# resources in the src directory
file(GLOB_RECURSE resources ${src_dir}/*.ui ${src_dir}/*.qrc)
file(GLOB_RECURSE resources ${src_dir}/*.ui)
foreach(object ${resources})
get_filename_component(ext "${object}" LAST_EXT)
@@ -59,21 +59,6 @@ macro(do_src)
"${object}"
WORKING_DIRECTORY ${PYTHON_ROOT})
list(APPEND src_files "${output}")
# elseif("${ext}" STREQUAL ".qrc")
# # process .qrc files and copy the resulting .py in data
# get_filename_component(name "${object}" NAME_WLE)
# get_filename_component(folder "${object}" DIRECTORY)
# set(output "${folder}/${name}.py")
# execute_process(
# COMMAND ${PYTHON_ROOT}/PCbuild/amd64/python.exe
# -I
# -m PyQt6.pyrcc_main
# -o "${output}"
# "${object}"
# WORKING_DIRECTORY ${PYTHON_ROOT})
list(APPEND src_files "${output}")
endif()
endforeach()