Skip to content

Commit

Permalink
Sign Emgu.TF.Lite, Emgu.TF.Lite.Models & Emgu.TF.Protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
emgucv authored and Canming Huang committed Jun 10, 2024
1 parent 77297cb commit f888a6b
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 231 deletions.
274 changes: 85 additions & 189 deletions CMakeLists.txt

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions Emgu.TF.Lite.Models/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,20 @@ IF(HAVE_LITE_BUILD)
PROJECT(Emgu.TF.Lite.Models.Netstandard)

BUILD_DOTNET_PROJ(${PROJECT_NAME} "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}/${PROJECT_NAME}.csproj" "" ALL)

IF (EMGU_SIGN_FOUND)
EMGU_SIGN_BINARY(${PROJECT_NAME} ${LIBRARY_OUTPUT_PATH}/Emgu.TF.Lite.Models.dll)
ENDIF()

# Binary signing should be done during project build time.
#IF (EMGU_SIGN_FOUND)
# EMGU_SIGN_BINARY(${PROJECT_NAME} ${LIBRARY_OUTPUT_PATH}/Build/Emgu.TF.Lite.Models/AnyCPU/Release/netstandard2.0/Emgu.TF.Lite.Models.dll)
# EMGU_SIGN_BINARY(${PROJECT_NAME} ${LIBRARY_OUTPUT_PATH}/Build/Emgu.TF.Lite.Models/AnyCPU/Release/net8.0-ios/Emgu.TF.Lite.Models.dll)
# EMGU_SIGN_BINARY(${PROJECT_NAME} ${LIBRARY_OUTPUT_PATH}/Build/Emgu.TF.Lite.Models/AnyCPU/Release/net8.0-maccatalyst/Emgu.TF.Lite.Models.dll)
#ENDIF()

ADD_DEPENDENCIES(${PROJECT_NAME} Emgu.TF.Lite.Netstandard)

INSTALL(
FILES
${LIBRARY_OUTPUT_PATH}/Emgu.TF.Lite.Models.dll
${LIBRARY_OUTPUT_PATH}/Emgu.TF.Lite.Models.xml
DESTINATION ${CPACK_PACKAGE_CLI_FOLDER}
DIRECTORY
${LIBRARY_OUTPUT_PATH}/Build/Emgu.TF.Lite.Models
DESTINATION lib
COMPONENT emgutf_binary)
ENDIF()
ENDIF()
Expand Down
12 changes: 6 additions & 6 deletions Emgu.TF.Lite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ IF (DOTNET_FOUND)
IF (WIN32 AND HAVE_WINDESKTOP_X86_LITE)
EMGU_SIGN_BINARY(${PROJECT_NAME} ${LIBRARY_OUTPUT_PATH}/runtimes/win-x86/native/tfliteextern.dll)
ENDIF()
EMGU_SIGN_BINARY(${PROJECT_NAME} ${LIBRARY_OUTPUT_PATH}/Emgu.TF.Lite.dll)
#Binary signing should be done during project build time
#EMGU_SIGN_BINARY(${PROJECT_NAME} ${LIBRARY_OUTPUT_PATH}/Emgu.TF.Lite.dll)
ENDIF()

INSTALL(
FILES
${LIBRARY_OUTPUT_PATH}/Emgu.TF.Lite.xml
${LIBRARY_OUTPUT_PATH}/Emgu.TF.Lite.dll
DESTINATION ${CPACK_PACKAGE_CLI_FOLDER}
DIRECTORY
${LIBRARY_OUTPUT_PATH}/Build/Emgu.TF.Lite
DESTINATION lib
COMPONENT emgutf_binary)

ENDIF()
ENDIF()
ENDIF()
1 change: 1 addition & 0 deletions cmake/Emgu.TF.Lite.Directory.Build.props.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ http://www.emgu.com/wiki/files/emgutflite/${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK
<!-- https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2022 -->
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
${EMGUTF_LITE_POST_PROCESS_BINARY}
${EMGUTF_LITE_POST_PROCESS_NUGET}

</Project>
4 changes: 2 additions & 2 deletions cmake/Emgu.TF.Lite.Models.Directory.Build.props.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ http://www.emgu.com/wiki/files/emgutflite/${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK

<!-- https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2022 -->
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
${EMGUTF_LITE_POST_PROCESS_BINARY}

${EMGUTF_LITE_MODELS_POST_PROCESS_BINARY}
${EMGUTF_LITE_MODELS_POST_PROCESS_NUGET}
</Project>
25 changes: 0 additions & 25 deletions cmake/Emgu.TF.Lite.Models.Package.nuspec.in

This file was deleted.

2 changes: 1 addition & 1 deletion cmake/Emgu.TF.Protobuf.Directory.Build.props.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ http://www.emgu.com/wiki/files/emgutf/${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PAC

<!-- https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2022 -->
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
${EMGUTF_POST_PROCESS_BINARY}
${EMGUTF_PROTOBUF_POST_PROCESS_BINARY}
</Project>

0 comments on commit f888a6b

Please sign in to comment.