Skip to content

Commit 21b8952

Browse files
HDFS-16666. Pass CMake args for Windows in pom.xml (#4574)
* This PR passes the necessary CMake args in the pom.xml needed for building HDFS native client on Windows. * These arguments are exposed as maven options and can be passed from the command-line.
1 parent a55ace7 commit 21b8952

File tree

1 file changed

+17
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs-native-client

1 file changed

+17
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,23 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
147147
<mkdir dir="${project.build.directory}/native"/>
148148
<exec executable="cmake" dir="${project.build.directory}/native"
149149
failonerror="true">
150-
<arg line="${basedir}/src/ -DGENERATED_JAVAH=${project.build.directory}/native/javah -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model} -DHADOOP_BUILD=1 -DREQUIRE_FUSE=${require.fuse} -DREQUIRE_VALGRIND=${require.valgrind} -A '${env.PLATFORM}'"/>
150+
<arg line="${basedir}/src/"/>
151+
<arg line="-DGENERATED_JAVAH=${project.build.directory}/native/javah"/>
152+
<arg line="-DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
153+
<arg line="-DREQUIRE_VALGRIND=${require.valgrind}"/>
154+
<arg line="-DHADOOP_BUILD=1"/>
155+
<arg line="-DREQUIRE_LIBWEBHDFS=${require.libwebhdfs}"/>
156+
<arg line="-DREQUIRE_OPENSSL=${require.openssl}"/>
157+
<arg line="-DCUSTOM_OPENSSL_PREFIX=${openssl.prefix}"/>
158+
<arg line="-DCUSTOM_OPENSSL_LIB=${openssl.lib}"/>
159+
<arg line="-DCUSTOM_OPENSSL_INCLUDE=${openssl.include}"/>
160+
<arg line="-DCMAKE_PREFIX_PATH=${windows.cmake.prefix.path}"/>
161+
<arg line="-DCMAKE_TOOLCHAIN_FILE=${windows.cmake.toolchain.file}"/>
162+
<arg line="-DCMAKE_BUILD_TYPE=${windows.cmake.build.type}"/>
163+
<arg line="-DBUILD_SHARED_HDFSPP=${windows.build.hdfspp.dll}"/>
164+
<arg line="-DNO_SASL=${windows.no.sasl}"/>
165+
<arg line="-DREQUIRE_FUSE=${require.fuse}"/>
166+
<arg line="-A '${env.PLATFORM}'"/>
151167
<arg line="${native_cmake_args}"/>
152168
</exec>
153169
<exec executable="msbuild" dir="${project.build.directory}/native"

0 commit comments

Comments
 (0)