From 32fe3d76716495bb2e01d06e2a551deb8af27ebe Mon Sep 17 00:00:00 2001 From: ZhangJian He Date: Sun, 3 Apr 2022 19:44:36 +0800 Subject: [PATCH] [build] support apple m1 build --- pom.xml | 14 +++++++++++++- src/apple_m1_aol.properties | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 src/apple_m1_aol.properties diff --git a/pom.xml b/pom.xml index dc7e1ba84d4..12cbe4744e1 100644 --- a/pom.xml +++ b/pom.xml @@ -148,7 +148,7 @@ 5.6.2 0.14.2 - 1.18.20 + 1.18.22 2.17.1 1.3.0 3.12.4 @@ -1191,6 +1191,18 @@ + + mac-apple-silicon + + + mac + aarch64 + + + + src/apple_m1_aol.properties + + apache-release diff --git a/src/apple_m1_aol.properties b/src/apple_m1_aol.properties new file mode 100644 index 00000000000..797b9a7b28b --- /dev/null +++ b/src/apple_m1_aol.properties @@ -0,0 +1,38 @@ +# +# +# 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. +# +# +aarch64.MacOSX.linker=g++ + +aarch64.MacOSX.gpp.c.compiler=gcc +aarch64.MacOSX.gpp.c.defines=Darwin GNU_GCC +aarch64.MacOSX.gpp.c.options=-Wall -Wno-long-long -Wpointer-arith -Wconversion +aarch64.MacOSX.gpp.c.includes=**/*.c +aarch64.MacOSX.gpp.c.excludes= + +aarch64.MacOSX.gpp.java.include=include;include/darwin +aarch64.MacOSX.gpp.java.runtimeDirectory=IGNORED + +aarch64.MacOSX.gpp.lib.prefix=lib +aarch64.MacOSX.gpp.shared.prefix=lib +aarch64.MacOSX.gpp.static.extension=a +aarch64.MacOSX.gpp.shared.extension=dylib +aarch64.MacOSX.gpp.plugin.extension=bundle +aarch64.MacOSX.gpp.jni.extension=jnilib +aarch64.MacOSX.gpp.executable.extension=