This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch cpp_client_arm in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit b1403c86ba3b3986a38bf86e683b8fd8a7dfeaf1 Author: HTHou <[email protected]> AuthorDate: Mon Sep 6 14:18:45 2021 +0800 Compile cpp client on ARM Linux --- client-cpp/pom.xml | 16 ++++++++++++++++ compile-tools/pom.xml | 23 +++++++++++++++++++++++ example/client-cpp-example/pom.xml | 12 ++++++++++++ 3 files changed, 51 insertions(+) diff --git a/client-cpp/pom.xml b/client-cpp/pom.xml index dfd9403..54f0f99 100644 --- a/client-cpp/pom.xml +++ b/client-cpp/pom.xml @@ -69,6 +69,22 @@ </properties> </profile> <profile> + <id>os-unix-arm</id> + <activation> + <os> + <family>unix</family> + </os> + </activation> + <properties> + <os.suffix>linux</os.suffix> + <!-- use Makefile as default cmake generator, users may specify other generators --> + <cmake.generator>Unix Makefiles</cmake.generator> + <cmake.root.dir>${project.parent.basedir}/compile-tools/thrift/target/cmake-3.21.2-linux-aarch64/</cmake.root.dir> + <thrift.exec.absolute.path>${project.parent.basedir}/compile-tools/thrift/target/build/compiler/cpp/bin/thrift</thrift.exec.absolute.path> + <iotdb.server.script>start-server.sh</iotdb.server.script> + </properties> + </profile> + <profile> <id>os-mac</id> <activation> <os> diff --git a/compile-tools/pom.xml b/compile-tools/pom.xml index e8b56e8..74457fa 100644 --- a/compile-tools/pom.xml +++ b/compile-tools/pom.xml @@ -65,6 +65,29 @@ </properties> </profile> <profile> + <id>os-unix-arm</id> + <activation> + <os> + <family>unix</family> + </os> + </activation> + <properties> + <os.suffix>linux</os.suffix> + <os.classifier>linux-arm_32</os.classifier> + <cmake.url>https://github.com/Kitware/CMake/releases/download/v3.21.2/cmake-3.21.2-linux-aarch64.tar.gz</cmake.url> + <cmake.root.dir>${project.build.directory}/cmake-3.21.2-linux-aarch64/</cmake.root.dir> + <cmake.generator>Unix Makefiles</cmake.generator> + <boost.url>https://boostorg.jfrog.io/artifactory/main/release/${boost.version}/source/boost_${boost.version.underline}.zip</boost.url> + <boost.bootstrap.executable>./bootstrap.sh</boost.bootstrap.executable> + <boost.build.executable>./b2</boost.build.executable> + <thrift.bootstrap.executable>./bootstrap.sh</thrift.bootstrap.executable> + <thrift.configure.executable>./configure</thrift.configure.executable> + <thrift.make.executable>make</thrift.make.executable> + <thrift.compiler.executable>thrift</thrift.compiler.executable> + <gradlew.executable>./gradlew</gradlew.executable> + </properties> + </profile> + <profile> <id>os-mac</id> <activation> <os> diff --git a/example/client-cpp-example/pom.xml b/example/client-cpp-example/pom.xml index d3bb9ba..1a7f61b 100644 --- a/example/client-cpp-example/pom.xml +++ b/example/client-cpp-example/pom.xml @@ -47,6 +47,18 @@ </properties> </profile> <profile> + <id>os-unix-arm</id> + <activation> + <os> + <family>unix</family> + </os> + </activation> + <properties> + <cmake.generator>Unix Makefiles</cmake.generator> + <cmake.root.dir>${project.parent.basedir}/../compile-tools/thrift/target/cmake-3.21.2-linux-aarch64/</cmake.root.dir> + </properties> + </profile> + <profile> <id>os-mac</id> <activation> <os>
