1# 2# Copyright 2020 The TensorFlow Authors. All Rights Reserved. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# https://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16include(ExternalProject) 17 18if(TARGET neon2sse OR neon2sse_POPULATED) 19 return() 20endif() 21 22OverridableFetchContent_Declare( 23 neon2sse 24 URL https://storage.googleapis.com/mirror.tensorflow.org/github.com/intel/ARM_NEON_2_x86_SSE/archive/1200fe90bb174a6224a525ee60148671a786a71f.tar.gz 25 # Sync with tensorflow/workspace2.bzl 26 URL_HASH SHA256=213733991310b904b11b053ac224fee2d4e0179e46b52fe7f8735b8831e04dcc 27 SOURCE_DIR "${CMAKE_BINARY_DIR}/neon2sse" 28) 29 30OverridableFetchContent_GetProperties(neon2sse) 31if(NOT neon2sse_POPULATED) 32 OverridableFetchContent_Populate(neon2sse) 33endif() 34 35add_subdirectory( 36 "${neon2sse_SOURCE_DIR}" 37 "${neon2sse_BINARY_DIR}" 38) 39