Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85837172
D382.1793594713.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
636 B
Referenced Files
None
Subscribers
None
D382.1793594713.diff
View Options
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,12 @@
configure_file("${CMAKE_BINARY_DIR}/vodozemac.lib.rs" "${CMAKE_SOURCE_DIR}/cpp/src/lib.rs" COPYONLY)
corrosion_import_crate(MANIFEST_PATH cpp/Cargo.toml)
+if(CMAKE_SYSTEM_NAME STREQUAL "Android" AND CMAKE_CXX_COMPILER_TARGET)
+ corrosion_set_env_vars(vodozemac
+ "CFLAGS_${Rust_CARGO_TARGET}=--target=${CMAKE_CXX_COMPILER_TARGET}"
+ "CXXFLAGS_${Rust_CARGO_TARGET}=--target=${CMAKE_CXX_COMPILER_TARGET}"
+ )
+endif()
add_library(vodozemac-shared SHARED)
add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/vodozemac.h"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 1, 8:45 PM (22 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1807505
Default Alt Text
D382.1793594713.diff (636 B)
Attached To
Mode
D382: Fix cross-compilation arguments for android
Attached
Detach File
Event Timeline