diff options
Diffstat (limited to 'vcpkg/ports/tensorflow-cc')
| -rw-r--r-- | vcpkg/ports/tensorflow-cc/portfile.cmake | 11 | ||||
| -rw-r--r-- | vcpkg/ports/tensorflow-cc/vcpkg.json | 15 |
2 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/tensorflow-cc/portfile.cmake b/vcpkg/ports/tensorflow-cc/portfile.cmake new file mode 100644 index 0000000..ee9926b --- /dev/null +++ b/vcpkg/ports/tensorflow-cc/portfile.cmake @@ -0,0 +1,11 @@ +if(VCPKG_TARGET_IS_WINDOWS) + vcpkg_check_linkage(ONLY_STATIC_LIBRARY) +endif() + +set(TF_LIB_SUFFIX "_cc") +set(TF_PORT_SUFFIX "-cc") +set(TF_INCLUDE_DIRS "\${TENSORFLOW_INSTALL_PREFIX}/include/tensorflow-external \${TENSORFLOW_INSTALL_PREFIX}/include/tensorflow-external/src") +list(APPEND CMAKE_MODULE_PATH "${CURRENT_INSTALLED_DIR}/share/tensorflow-common") +include(tensorflow-common) + +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow-external") diff --git a/vcpkg/ports/tensorflow-cc/vcpkg.json b/vcpkg/ports/tensorflow-cc/vcpkg.json new file mode 100644 index 0000000..de99c8a --- /dev/null +++ b/vcpkg/ports/tensorflow-cc/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "tensorflow-cc", + "version-semver": "2.10.0", + "description": "Library for computation using data flow graphs for scalable machine learning (C++ API version)", + "homepage": "https://github.com/tensorflow/tensorflow", + "license": "Apache-2.0", + "supports": "!(x86 | arm | uwp) | (arm64 & osx)", + "dependencies": [ + "tensorflow-common", + { + "name": "vcpkg-tool-bazel", + "host": true + } + ] +} |