HDFS-9207. Move the implementation to the hdfs-native-client module. Contributed by Haohui Mai.
This commit is contained in:
parent
9e929a7a0d
commit
08794423e8
@ -1,23 +0,0 @@
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
||||
|
||||
enable_testing()
|
||||
|
||||
add_subdirectory(libhdfspp)
|
@ -98,6 +98,11 @@ endfunction()
|
||||
|
||||
add_subdirectory(main/native/libhdfs)
|
||||
add_subdirectory(main/native/libhdfs-tests)
|
||||
add_subdirectory(main/native/libhdfspp)
|
||||
|
||||
if(REQUIRE_LIBWEBHDFS)
|
||||
add_subdirectory(contrib/libwebhdfs)
|
||||
endif()
|
||||
|
||||
# Find Linux FUSE
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
|
@ -18,6 +18,8 @@
|
||||
|
||||
project (libhdfspp)
|
||||
|
||||
enable_testing()
|
||||
|
||||
find_package(Doxygen)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
find_package(Protobuf REQUIRED)
|
||||
@ -32,7 +34,7 @@ endif()
|
||||
# Mac OS 10.7 and later deprecates most of the methods in OpenSSL.
|
||||
# Add -Wno-deprecated-declarations to avoid the warnings.
|
||||
if(APPLE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -Wno-deprecated-declarations")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -Wno-deprecated-declarations -Wno-unused-local-typedef")
|
||||
endif()
|
||||
|
||||
if(DOXYGEN_FOUND)
|
||||
@ -48,9 +50,10 @@ include_directories(
|
||||
${PROJECT_BINARY_DIR}/lib/proto
|
||||
third_party/asio-1.10.2/include
|
||||
third_party/gmock-1.7.0
|
||||
${OPENSSL_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
set(PROTO_HDFS_DIR ${CMAKE_CURRENT_LIST_DIR}/../../proto)
|
||||
set(PROTO_HDFS_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../../hadoop-hdfs-client/src/main/proto)
|
||||
set(PROTO_HADOOP_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../../../hadoop-common-project/hadoop-common/src/main/proto)
|
||||
set(PROTO_HADOOP_TEST_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../../../hadoop-common-project/hadoop-common/src/test/proto)
|
||||
|
@ -7,6 +7,7 @@ protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS
|
||||
${PROTO_HDFS_DIR}/acl.proto
|
||||
${PROTO_HDFS_DIR}/datatransfer.proto
|
||||
${PROTO_HDFS_DIR}/encryption.proto
|
||||
${PROTO_HDFS_DIR}/erasurecoding.proto
|
||||
${PROTO_HDFS_DIR}/hdfs.proto
|
||||
${PROTO_HDFS_DIR}/inotify.proto
|
||||
${PROTO_HDFS_DIR}/xattr.proto
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user