@@ -757,6 +757,11 @@ def run(self): # noqa C901
757757 cmake_build_args += ["--target" , "custom_ops_aot_lib" ]
758758 cmake_build_args += ["--target" , "quantized_ops_aot_lib" ]
759759
760+ if cmake_cache .is_enabled ("EXECUTORCH_BUILD_QNN" ):
761+ cmake_build_args += ["--target" , "qnn_executorch_backend" ]
762+ cmake_build_args += ["--target" , "PyQnnManagerAdaptor" ]
763+ cmake_build_args += ["--target" , "PyQnnWrapperAdaptor" ]
764+
760765 # Set PYTHONPATH to the location of the pip package.
761766 os .environ ["PYTHONPATH" ] = (
762767 site .getsitepackages ()[0 ] + ";" + os .environ .get ("PYTHONPATH" , "" )
@@ -846,13 +851,13 @@ def run(self): # noqa C901
846851 dependent_cmake_flags = ["EXECUTORCH_BUILD_QNN" ],
847852 ),
848853 BuiltExtension (
849- src_dir = "%CMAKE_CACHE_DIR%/backends/qualcomm/python/ %BUILD_TYPE%/" ,
854+ src_dir = "%CMAKE_CACHE_DIR%/backends/qualcomm/%BUILD_TYPE%/" ,
850855 src = "PyQnnManagerAdaptor.*" ,
851856 modpath = "executorch.backends.qualcomm.python.PyQnnManagerAdaptor" ,
852857 dependent_cmake_flags = ["EXECUTORCH_BUILD_QNN" ],
853858 ),
854859 BuiltExtension (
855- src_dir = "%CMAKE_CACHE_DIR%/backends/qualcomm/python/ %BUILD_TYPE%/" ,
860+ src_dir = "%CMAKE_CACHE_DIR%/backends/qualcomm/%BUILD_TYPE%/" ,
856861 src = "PyQnnWrapperAdaptor.*" ,
857862 modpath = "executorch.backends.qualcomm.python.PyQnnWrapperAdaptor" ,
858863 dependent_cmake_flags = ["EXECUTORCH_BUILD_QNN" ],
0 commit comments