summaryrefslogtreecommitdiff
path: root/aarch64-support.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-24 07:02:45 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-24 07:02:45 +0000
commitf50f3918a2e2140fc8ee48523279e7235ea64921 (patch)
tree44539245456f00e6191e707b424357a26d3cde42 /aarch64-support.patch
parentcd392a40af24da0df7f7f108ba9694fb92c80b2e (diff)
automatic import of libopenni2-dev
Diffstat (limited to 'aarch64-support.patch')
-rw-r--r--aarch64-support.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/aarch64-support.patch b/aarch64-support.patch
new file mode 100644
index 0000000..e34967a
--- /dev/null
+++ b/aarch64-support.patch
@@ -0,0 +1,33 @@
+diff --git a/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak b/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak
+index dd88b04..7454e8a 100644
+--- a/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak
++++ b/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak
+@@ -16,6 +16,8 @@ else ifneq (,$(findstring i686,$(MACHINE)))
+ HOST_PLATFORM = x86
+ else ifneq (,$(findstring i386,$(MACHINE)))
+ HOST_PLATFORM = x86
++else ifneq (,$(findstring aarch64,$(MACHINE)))
++ HOST_PLATFORM = Arm64
+ else ifneq (,$(findstring arm,$(MACHINE)))
+ HOST_PLATFORM = Arm
+ else
+diff --git a/ThirdParty/PSCommon/BuildSystem/Platform.Arm64 b/ThirdParty/PSCommon/BuildSystem/Platform.Arm64
+new file mode 100644
+index 0000000..2eb8966
+--- /dev/null
++++ b/ThirdParty/PSCommon/BuildSystem/Platform.Arm64
+@@ -0,0 +1,14 @@
++# Platform.Arm64 - native aarch64 build (added for openEuler aarch64)
++#
++# OpenNI 2.2.0 predates aarch64; this platform file intentionally defines
++# NO architecture-specific compiler flags (no SSE, no -march=armv7-a) and
++# relies on the toolchain defaults. NEON fast paths in the drivers are gated
++# behind XN_NEON (only set by the old arm32 Platform.Arm) and therefore fall
++# back to the scalar reference implementations on aarch64.
++#
++# Disable the GLUT-based NiViewer tool to avoid pulling in OpenGL/freeglut.
++export GLUT_SUPPORTED=0
++
++# 2014-era C++ sources: build against gnu++14 to stay clear of C++17
++# removals (dynamic exception specifications, the register keyword, etc.).
++CFLAGS += -std=gnu++14