From de0261f31a60b90b57e4568ba5d96d223061a1d9 Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Mon, 28 Dec 2020 14:55:54 -0800 Subject: [PATCH 1/4] [vcpkg] Fix unrecognized identifer errors in prbuild and cibuild. Error: Unrecognized identifer name false. Add to override list in triplet file. tensorflow-common's version numbers are unchanged because there is no effect on any consumers. Error: Unrecognized identifer name ios. Add to override list in triplet file. This is used in the "ashes" port and is recognized by the community triplet x64-ios. --- ports/tensorflow-common/CONTROL | 1 - toolsrc/src/vcpkg/platform-expression.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ports/tensorflow-common/CONTROL b/ports/tensorflow-common/CONTROL index a5f0364afd17eb..1921cbc0b65740 100644 --- a/ports/tensorflow-common/CONTROL +++ b/ports/tensorflow-common/CONTROL @@ -3,4 +3,3 @@ Version: 2.3.1 Port-Version: 0 Homepage: https://github.com/tensorflow/tensorflow Description: This meta package holds common files for the C [tensorflow] and the C++ [tensorflow-cc] API version of TensorFlow but is not installable on its own. -Supports: false diff --git a/toolsrc/src/vcpkg/platform-expression.cpp b/toolsrc/src/vcpkg/platform-expression.cpp index b87ca4ce91bd5b..78627eb9c0416f 100644 --- a/toolsrc/src/vcpkg/platform-expression.cpp +++ b/toolsrc/src/vcpkg/platform-expression.cpp @@ -29,6 +29,7 @@ namespace vcpkg::PlatformExpression uwp, android, emscripten, + ios, static_link, }; @@ -48,6 +49,7 @@ namespace vcpkg::PlatformExpression {"uwp", Identifier::uwp}, {"android", Identifier::android}, {"emscripten", Identifier::emscripten}, + {"ios", Identifier::ios}, {"static", Identifier::static_link}, }; @@ -392,6 +394,7 @@ namespace vcpkg::PlatformExpression case Identifier::android: return true_if_exists_and_equal("VCPKG_CMAKE_SYSTEM_NAME", "Android"); case Identifier::emscripten: return true_if_exists_and_equal("VCPKG_CMAKE_SYSTEM_NAME", "Emscripten"); + case Identifier::ios: return true_if_exists_and_equal("VCPKG_CMAKE_SYSTEM_NAME", "iOS"); case Identifier::wasm32: return true_if_exists_and_equal("VCPKG_TARGET_ARCHITECTURE", "wasm32"); case Identifier::static_link: return true_if_exists_and_equal("VCPKG_LIBRARY_LINKAGE", "static"); From 5e1ed43556afb8ecec86ab9d3c4cd7a7f32f848b Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Thu, 31 Dec 2020 19:07:59 -0800 Subject: [PATCH 2/4] [tensorflow-*] format-manifest all CONTROLs. --- ports/tensorflow-cc/CONTROL | 6 ------ ports/tensorflow-cc/vcpkg.json | 8 ++++++++ ports/tensorflow-common/CONTROL | 5 ----- ports/tensorflow-common/vcpkg.json | 6 ++++++ ports/tensorflow/CONTROL | 6 ------ ports/tensorflow/vcpkg.json | 7 +++++++ 6 files changed, 21 insertions(+), 17 deletions(-) delete mode 100644 ports/tensorflow-cc/CONTROL create mode 100644 ports/tensorflow-cc/vcpkg.json delete mode 100644 ports/tensorflow-common/CONTROL create mode 100644 ports/tensorflow-common/vcpkg.json delete mode 100644 ports/tensorflow/CONTROL create mode 100644 ports/tensorflow/vcpkg.json diff --git a/ports/tensorflow-cc/CONTROL b/ports/tensorflow-cc/CONTROL deleted file mode 100644 index 392ce10136d039..00000000000000 --- 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/vcpkg.json b/ports/tensorflow-cc/vcpkg.json new file mode 100644 index 00000000000000..f3bc4717d31709 --- /dev/null +++ b/ports/tensorflow-cc/vcpkg.json @@ -0,0 +1,8 @@ +{ + "name": "tensorflow-cc", + "version-string": "2.3.1", + "port-version": 1, + "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)" +} diff --git a/ports/tensorflow-common/CONTROL b/ports/tensorflow-common/CONTROL deleted file mode 100644 index 1921cbc0b65740..00000000000000 --- a/ports/tensorflow-common/CONTROL +++ /dev/null @@ -1,5 +0,0 @@ -Source: tensorflow-common -Version: 2.3.1 -Port-Version: 0 -Homepage: https://github.com/tensorflow/tensorflow -Description: This meta package holds common files for the C [tensorflow] and the C++ [tensorflow-cc] API version of TensorFlow but is not installable on its own. diff --git a/ports/tensorflow-common/vcpkg.json b/ports/tensorflow-common/vcpkg.json new file mode 100644 index 00000000000000..7c0e0875f8ff48 --- /dev/null +++ b/ports/tensorflow-common/vcpkg.json @@ -0,0 +1,6 @@ +{ + "name": "tensorflow-common", + "version-string": "2.3.1", + "description": "This meta package holds common files for the C [tensorflow] and the C++ [tensorflow-cc] API version of TensorFlow but is not installable on its own.", + "homepage": "https://github.com/tensorflow/tensorflow" +} diff --git a/ports/tensorflow/CONTROL b/ports/tensorflow/CONTROL deleted file mode 100644 index 0f775ae8d9d46a..00000000000000 --- a/ports/tensorflow/CONTROL +++ /dev/null @@ -1,6 +0,0 @@ -Source: tensorflow -Version: 2.3.1 -Port-Version: 0 -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/vcpkg.json b/ports/tensorflow/vcpkg.json new file mode 100644 index 00000000000000..e977a0158bbd50 --- /dev/null +++ b/ports/tensorflow/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "tensorflow", + "version-string": "2.3.1", + "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)" +} From f0282be6b15007c68b6df11eb449bcfade721ed4 Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Thu, 31 Dec 2020 19:27:12 -0800 Subject: [PATCH 3/4] [tensorflow-*] Communicate through "share" as requested by Robert. --- ports/tensorflow-cc/portfile.cmake | 8 +++--- ports/tensorflow-cc/vcpkg.json | 7 +++-- ports/tensorflow-common/portfile.cmake | 28 ++++++++++++++++++- .../tensorflow-common/tensorflow-common.cmake | 12 ++++---- ports/tensorflow-common/vcpkg.json | 1 + ports/tensorflow/portfile.cmake | 26 ++++++++--------- ports/tensorflow/vcpkg.json | 6 +++- 7 files changed, 61 insertions(+), 27 deletions(-) diff --git a/ports/tensorflow-cc/portfile.cmake b/ports/tensorflow-cc/portfile.cmake index 783fe8b70e459b..bf77e7148f57ee 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 index f3bc4717d31709..5297a3b0731d7f 100644 --- a/ports/tensorflow-cc/vcpkg.json +++ b/ports/tensorflow-cc/vcpkg.json @@ -1,8 +1,11 @@ { "name": "tensorflow-cc", "version-string": "2.3.1", - "port-version": 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)" + "supports": "!(x86 | arm | uwp)", + "dependencies": [ + "tensorflow-common" + ] } diff --git a/ports/tensorflow-common/portfile.cmake b/ports/tensorflow-common/portfile.cmake index 4d51544d829d29..d0b5772f1b1846 100644 --- a/ports/tensorflow-common/portfile.cmake +++ b/ports/tensorflow-common/portfile.cmake @@ -1 +1,27 @@ -message(FATAL_ERROR "This meta package holds common files for the C [tensorflow] and the C++ [tensorflow-cc] API version of TensorFlow but is not installable on its own.") +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) + +set(TENSORFLOW_FILES + "${CMAKE_CURRENT_LIST_DIR}/change-macros-for-static-lib.patch" + "${CMAKE_CURRENT_LIST_DIR}/convert_lib_params_linux.py" + "${CMAKE_CURRENT_LIST_DIR}/convert_lib_params_windows.py" + "${CMAKE_CURRENT_LIST_DIR}/fix-build-error.patch" + "${CMAKE_CURRENT_LIST_DIR}/fix-dbg-build-errors.patch" + "${CMAKE_CURRENT_LIST_DIR}/fix-linux-build.patch" + "${CMAKE_CURRENT_LIST_DIR}/fix-more-build-errors.patch" + "${CMAKE_CURRENT_LIST_DIR}/generate_static_link_cmd_linux.py" + "${CMAKE_CURRENT_LIST_DIR}/generate_static_link_cmd_macos.py" + "${CMAKE_CURRENT_LIST_DIR}/generate_static_link_cmd_windows.py" + "${CMAKE_CURRENT_LIST_DIR}/README-linux" + "${CMAKE_CURRENT_LIST_DIR}/README-macos" + "${CMAKE_CURRENT_LIST_DIR}/README-windows" + "${CMAKE_CURRENT_LIST_DIR}/tensorflow-common.cmake" + "${CMAKE_CURRENT_LIST_DIR}/tensorflow-config-shared.cmake.in" + "${CMAKE_CURRENT_LIST_DIR}/tensorflow-config-static.cmake.in" + "${CMAKE_CURRENT_LIST_DIR}/tensorflow-config-windows-dll.cmake.in" + "${CMAKE_CURRENT_LIST_DIR}/tensorflow-config-windows-lib.cmake.in" + ) + +file(COPY ${TENSORFLOW_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + +# Use vcpkg's license +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/../../LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/tensorflow-common/tensorflow-common.cmake b/ports/tensorflow-common/tensorflow-common.cmake index 1f9a7203c59f20..dd601ba9bd887c 100644 --- a/ports/tensorflow-common/tensorflow-common.cmake +++ b/ports/tensorflow-common/tensorflow-common.cmake @@ -110,14 +110,14 @@ else() endif() foreach(BUILD_TYPE dbg rel) - # prefer repeated source extraction here for each build type over extracting once above the loop and copying because users reported issues with copying symlinks + # prefer repeated source extraction here for each build type over extracting once above the loop and copying because users reported issues with copying symlinks set(STATIC_ONLY_PATCHES) set(LINUX_ONLY_PATCHES) if(VCPKG_LIBRARY_LINKAGE STREQUAL static) - set(STATIC_ONLY_PATCHES ../tensorflow-common/change-macros-for-static-lib.patch) # there is no static build option - change macros via patch and link library manually at the end + set(STATIC_ONLY_PATCHES "${CMAKE_CURRENT_LIST_DIR}/change-macros-for-static-lib.patch") # there is no static build option - change macros via patch and link library manually at the end endif() if(VCPKG_TARGET_IS_LINUX) - set(LINUX_ONLY_PATCHES ../tensorflow-common/fix-linux-build.patch) + set(LINUX_ONLY_PATCHES "${CMAKE_CURRENT_LIST_DIR}/fix-linux-build.patch") endif() vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH @@ -126,9 +126,9 @@ foreach(BUILD_TYPE dbg rel) SHA512 e497ef4564f50abf9f918be4522cf702f4cf945cb1ebf83af1386ac4ddc7373b3ba70c7f803f8ca06faf2c6b5396e60b1e0e9b97bfbd667e733b08b6e6d70ef0 HEAD_REF master PATCHES - ../tensorflow-common/fix-build-error.patch # Fix namespace error - ../tensorflow-common/fix-dbg-build-errors.patch # Fix no return statement - ../tensorflow-common/fix-more-build-errors.patch # Fix no return statement + "${CMAKE_CURRENT_LIST_DIR}/fix-build-error.patch" # Fix namespace error + "${CMAKE_CURRENT_LIST_DIR}/fix-dbg-build-errors.patch" # Fix no return statement + "${CMAKE_CURRENT_LIST_DIR}/fix-more-build-errors.patch" # Fix no return statement ${STATIC_ONLY_PATCHES} ${LINUX_ONLY_PATCHES} ) diff --git a/ports/tensorflow-common/vcpkg.json b/ports/tensorflow-common/vcpkg.json index 7c0e0875f8ff48..5d6009d2fe2e99 100644 --- a/ports/tensorflow-common/vcpkg.json +++ b/ports/tensorflow-common/vcpkg.json @@ -1,6 +1,7 @@ { "name": "tensorflow-common", "version-string": "2.3.1", + "port-version": 1, "description": "This meta package holds common files for the C [tensorflow] and the C++ [tensorflow-cc] API version of TensorFlow but is not installable on its own.", "homepage": "https://github.com/tensorflow/tensorflow" } diff --git a/ports/tensorflow/portfile.cmake b/ports/tensorflow/portfile.cmake index f3a43d24c2c370..0bd5ce3544dff4 100644 --- a/ports/tensorflow/portfile.cmake +++ b/ports/tensorflow/portfile.cmake @@ -2,18 +2,18 @@ vcpkg_fail_port_install(ON_ARCH "x86" "arm" ON_TARGET "uwp") set(TF_LIB_SUFFIX "") set(TF_PORT_SUFFIX "") -set(TF_INCLUDE_DIRS "${INSTALL_PREFIX}/${TARGET_TRIPLET}/include") -list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../tensorflow-common") +set(TF_INCLUDE_DIRS "${CURRENT_INSTALLED_DIR}/include") +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/tensorflow/c/c_api.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c) -file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/c_api_experimental.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c) -file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tensor_interface.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c) -file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tf_attrtype.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c) -file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tf_datatype.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c) -file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tf_file_statistics.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c) -file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tf_status.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c) -file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tf_tensor.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c) -file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/eager/c_api.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c/eager) -file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/eager/c_api_experimental.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c/eager) -file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/eager/dlpack.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/tensorflow/c/eager) +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/c_api.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c") +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/c_api_experimental.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c") +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tensor_interface.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c") +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tf_attrtype.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c") +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tf_datatype.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c") +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tf_file_statistics.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c") +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tf_status.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c") +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/tf_tensor.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c") +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/eager/c_api.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c/eager") +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/eager/c_api_experimental.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c/eager") +file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bazel-bin/tensorflow/include/tensorflow/c/eager/dlpack.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/tensorflow/c/eager") diff --git a/ports/tensorflow/vcpkg.json b/ports/tensorflow/vcpkg.json index e977a0158bbd50..2c3f6d4bf98ca3 100644 --- a/ports/tensorflow/vcpkg.json +++ b/ports/tensorflow/vcpkg.json @@ -1,7 +1,11 @@ { "name": "tensorflow", "version-string": "2.3.1", + "port-version": 1, "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)" + "supports": "!(x86 | arm | uwp)", + "dependencies": [ + "tensorflow-common" + ] } From c7ead9964f1b795013ec701d0422427715512a27 Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Tue, 5 Jan 2021 00:34:58 -0800 Subject: [PATCH 4/4] Copy license.txt into port tree. --- ports/tensorflow-common/LICENSE.txt | 23 +++++++++++++++++++++++ ports/tensorflow-common/portfile.cmake | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 ports/tensorflow-common/LICENSE.txt diff --git a/ports/tensorflow-common/LICENSE.txt b/ports/tensorflow-common/LICENSE.txt new file mode 100644 index 00000000000000..2e4eac8264fa4c --- /dev/null +++ b/ports/tensorflow-common/LICENSE.txt @@ -0,0 +1,23 @@ +Copyright (c) Microsoft Corporation + +All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/ports/tensorflow-common/portfile.cmake b/ports/tensorflow-common/portfile.cmake index d0b5772f1b1846..5902d050214116 100644 --- a/ports/tensorflow-common/portfile.cmake +++ b/ports/tensorflow-common/portfile.cmake @@ -24,4 +24,4 @@ set(TENSORFLOW_FILES file(COPY ${TENSORFLOW_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") # Use vcpkg's license -file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/../../LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)