When `-D BUILD_SHARED_LIBS=ON` is passed to `cmake`, it builds a single shared library. Specifically, - For C APIs, it builds `libsherpa-onnx-c-api.so` - For Python APIs, it builds `_sherpa_onnx.cpython-xx-xx.so` - For Kotlin and Java APIs, it builds `libsherpa-onnx-jni.so` There is no `libsherpa-onnx-core.so` any longer. Note it affects only shared libraries.
19 lines
765 B
CMake
19 lines
765 B
CMake
# The Flutter tooling requires that developers have a version of Visual Studio
|
|
# installed that includes CMake 3.14 or later. You should not increase this
|
|
# version, as doing so will cause the plugin to fail to compile for some
|
|
# customers of the plugin.
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
# Project-level configuration.
|
|
set(PROJECT_NAME "sherpa_onnx_windows")
|
|
project(${PROJECT_NAME} LANGUAGES CXX)
|
|
|
|
# List of absolute paths to libraries that should be bundled with the plugin.
|
|
# This list could contain prebuilt libraries, or libraries created by an
|
|
# external build triggered from this build file.
|
|
set(sherpa_onnx_windows_bundled_libraries
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/sherpa-onnx-c-api.dll"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/onnxruntime.dll"
|
|
PARENT_SCOPE
|
|
)
|