aboutsummaryrefslogtreecommitdiff
path: root/ports/tensorflow-cc
diff options
context:
space:
mode:
Diffstat (limited to 'ports/tensorflow-cc')
-rw-r--r--ports/tensorflow-cc/CONTROL6
-rw-r--r--ports/tensorflow-cc/portfile.cmake8
-rw-r--r--ports/tensorflow-cc/vcpkg.json11
3 files changed, 15 insertions, 10 deletions
diff --git a/ports/tensorflow-cc/CONTROL b/ports/tensorflow-cc/CONTROL
deleted file mode 100644
index 392ce1013..000000000
--- a/ports/tensorflow-cc/CONTROL
+++ /dev/null
@@ -1,6 +0,0 @@
-Source: tensorflow-cc
-Version: 2.3.1
-Port-Version: 1
-Homepage: https://github.com/tensorflow/tensorflow
-Description: Library for computation using data flow graphs for scalable machine learning (C++ API version)
-Supports: !(x86|arm|uwp)
diff --git a/ports/tensorflow-cc/portfile.cmake b/ports/tensorflow-cc/portfile.cmake
index 783fe8b70..bf77e7148 100644
--- a/ports/tensorflow-cc/portfile.cmake
+++ b/ports/tensorflow-cc/portfile.cmake
@@ -2,9 +2,9 @@ vcpkg_fail_port_install(ON_ARCH "x86" "arm" ON_TARGET "UWP")
set(TF_LIB_SUFFIX "_cc")
set(TF_PORT_SUFFIX "-cc")
-set(TF_INCLUDE_DIRS "${INSTALL_PREFIX}/${TARGET_TRIPLET}/include/tensorflow-external
- ${INSTALL_PREFIX}/${TARGET_TRIPLET}/include/tensorflow-external/src")
-list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../tensorflow-common")
+set(TF_INCLUDE_DIRS "${CURRENT_INSTALLED_DIR}/include/tensorflow-external
+ ${CURRENT_INSTALLED_DIR}/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)
+file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow-external")
diff --git a/ports/tensorflow-cc/vcpkg.json b/ports/tensorflow-cc/vcpkg.json
new file mode 100644
index 000000000..5297a3b07
--- /dev/null
+++ b/ports/tensorflow-cc/vcpkg.json
@@ -0,0 +1,11 @@
+{
+ "name": "tensorflow-cc",
+ "version-string": "2.3.1",
+ "port-version": 2,
+ "description": "Library for computation using data flow graphs for scalable machine learning (C++ API version)",
+ "homepage": "https://github.com/tensorflow/tensorflow",
+ "supports": "!(x86 | arm | uwp)",
+ "dependencies": [
+ "tensorflow-common"
+ ]
+}