Skip to content

Commit

Permalink
Pass --build_shared_lib to some QNN pipelines. Include Boost::mp11.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlizarraga committed Dec 16, 2024
1 parent ea2a141 commit d820c9b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/onnxruntime_providers_qnn.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_qnn_cc_srcs})
onnxruntime_add_shared_library_module(onnxruntime_providers_qnn ${onnxruntime_providers_qnn_cc_srcs})
onnxruntime_add_include_to_target(onnxruntime_providers_qnn ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} onnx onnxruntime_common safeint_interface)
onnxruntime_add_include_to_target(onnxruntime_providers_qnn ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} onnx onnxruntime_common Boost::mp11 safeint_interface)
target_link_libraries(onnxruntime_providers_qnn PRIVATE ${ONNXRUNTIME_PROVIDERS_SHARED} ${ABSEIL_LIBS})
add_dependencies(onnxruntime_providers_qnn ${onnxruntime_EXTERNAL_DEPENDENCIES})
target_include_directories(onnxruntime_providers_qnn PRIVATE ${ONNXRUNTIME_ROOT}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
--android_abi=x86_64 \
--android_api=31 \
--parallel \
--build_shared_lib \
--use_qnn \
--qnn_home $(QnnSDKRootDir) \
--cmake_generator=Ninja \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
--config Release \
--use_binskim_compliant_compile_flags \
--build_java \
--build_shared_lib \
--use_qnn \
--qnn_home $(QnnSDKRootDir) \
--cmake_generator=Ninja \
Expand All @@ -77,6 +78,7 @@ jobs:
--config Release \
--use_binskim_compliant_compile_flags \
--build_java \
--build_shared_lib \
--use_qnn \
--qnn_home $(QnnSDKRootDir) \
--cmake_generator=Ninja \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
--config $(BuildConfig)
--build_dir $(Build.BinariesDirectory)
--cmake_generator "Visual Studio 17 2022"
--build_shared_lib
--use_qnn
--qnn_home $(QnnSDKRootDir)
--update --build --parallel
Expand All @@ -88,6 +89,7 @@ jobs:
--config $(BuildConfig) ^
--build_dir $(Build.BinariesDirectory) ^
--cmake_generator "Visual Studio 17 2022" ^
--build_shared_lib ^
--use_qnn ^
--qnn_home $(QnnSDKRootDir) ^
--test --enable_onnx_tests
Expand Down
2 changes: 2 additions & 0 deletions tools/ci_build/github/azure-pipelines/win-qnn-ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
--build_dir $(Build.BinariesDirectory)
--cmake_generator "Visual Studio 17 2022"
--build_java
--build_shared_lib
--use_qnn
--qnn_home $(QnnSDKRootDir)
--use_binskim_compliant_compile_flags
Expand All @@ -87,6 +88,7 @@ jobs:
--build_dir $(Build.BinariesDirectory) ^
--cmake_generator "Visual Studio 17 2022" ^
--build_java ^
--build_shared_lib ^
--use_qnn ^
--qnn_home $(QnnSDKRootDir) ^
--use_binskim_compliant_compile_flags ^
Expand Down

0 comments on commit d820c9b

Please sign in to comment.