hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject hadoop git commit: HDFS-11518: libhdfs++: Add a build option to skip building examples, tests, and tools. Contributed by Anatoli Schein.
Date Tue, 20 Jun 2017 18:48:42 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HDFS-8707 40e3290b9 -> 1b3fe2858


HDFS-11518: libhdfs++: Add a build option to skip building examples, tests, and tools.  Contributed
by Anatoli Schein.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/1b3fe285
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/1b3fe285
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/1b3fe285

Branch: refs/heads/HDFS-8707
Commit: 1b3fe2858be650eea501a58735cc139ba2fb2829
Parents: 40e3290
Author: James Clampffer <james.clampffer@hp.com>
Authored: Tue Jun 20 14:44:50 2017 -0400
Committer: James Clampffer <james.clampffer@hp.com>
Committed: Tue Jun 20 14:44:50 2017 -0400

----------------------------------------------------------------------
 .../src/main/native/libhdfspp/CMakeLists.txt        | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/1b3fe285/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
index e0476cf..a5c77e0 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
@@ -16,6 +16,14 @@
 # limitations under the License.
 #
 
+# If cmake variable HDFSPP_LIBRARY_ONLY is set, then tests, examples, and
+# tools will not be built. This allows for faster builds of the libhdfspp
+# library alone, avoids looking for a JDK, valgrind, and gmock, and
+# prevents the generation of multiple binaries that might not be relevant
+# to other projects during normal use.
+# Example of cmake invocation with HDFSPP_LIBRARY_ONLY enabled:
+# cmake -DHDFSPP_LIBRARY_ONLY=1
+
 project (libhdfspp)
 
 cmake_minimum_required(VERSION 2.8)
@@ -174,9 +182,11 @@ include_directories( SYSTEM
 add_subdirectory(third_party/gmock-1.7.0)
 add_subdirectory(third_party/uriparser2)
 add_subdirectory(lib)
-add_subdirectory(tests)
-add_subdirectory(examples)
-add_subdirectory(tools)
+if(NOT HDFSPP_LIBRARY_ONLY)
+    add_subdirectory(tests)
+    add_subdirectory(examples)
+    add_subdirectory(tools)
+endif()
 
 # create an empty file; hadoop_add_dual_library wraps add_library which
 # requires at least one file as an argument


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message