From 24b36708d869a01c86af13e34d81b7801e2b33a6 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 15 Aug 2023 17:34:20 +0100 Subject: [PATCH] Build for x86_64-linux-android with generated/unix/ code After first running structgen (cross-compiled with the latest Android NDK) on an x86_64-linux-android Android emulator I confirmed that the generated code is identical to the existing `generated/unix` code. Being able to build for x86_64-linux-android is particularly useful for being able to run applications under an Android emulator. --- physx-sys/CHANGELOG.md | 3 +++ physx-sys/src/lib.rs | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/physx-sys/CHANGELOG.md b/physx-sys/CHANGELOG.md index 547f8233..38c4ec13 100644 --- a/physx-sys/CHANGELOG.md +++ b/physx-sys/CHANGELOG.md @@ -4,6 +4,9 @@ ## [Unreleased] - ReleaseDate +### Added +- [PR#209](https://github.com/EmbarkStudios/physx-rs/pull/209) Add support for `x86_64-linux-android` + ## [0.11.3] - 2023-07-07 ### Fixed - 0.11.2 release was broken (wrong case in path names). diff --git a/physx-sys/src/lib.rs b/physx-sys/src/lib.rs index 99f1bc8f..6f3ae94a 100644 --- a/physx-sys/src/lib.rs +++ b/physx-sys/src/lib.rs @@ -151,6 +151,13 @@ include!("generated/unix/structgen.rs"); ))] include!("generated/unix/structgen.rs"); +#[cfg(all( + not(feature = "structgen"), + target_os = "android", + target_arch = "x86_64", +))] +include!("generated/unix/structgen.rs"); + #[cfg(all( not(feature = "structgen"), target_os = "android",