Page MenuHomePhabricator

[native] fix path to native rust library directory
ClosedPublic

Authored by varun on Oct 25 2022, 12:10 PM.
Tags
None
Referenced Files
F3396871: D5480.diff
Sun, Dec 1, 2:59 PM
Unknown Object (File)
Tue, Nov 26, 6:13 PM
Unknown Object (File)
Tue, Nov 26, 6:13 PM
Unknown Object (File)
Mon, Nov 25, 3:47 AM
Unknown Object (File)
Sun, Nov 24, 11:07 PM
Unknown Object (File)
Tue, Nov 5, 11:04 AM
Unknown Object (File)
Tue, Nov 5, 11:04 AM
Unknown Object (File)
Tue, Nov 5, 11:04 AM

Details

Summary

We were incorrectly including a directory containing build artifacts from a previous Xcode build. This happened to work by coincidence, but is not the right directory. Now we include the directory created by corrosion containing the correct native_rust_library source files.

Test Plan

cd native/android && ./gradlew bundleDebug && ./gradlew bundleRelease

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

I cherry-picked this change to D5369 and it worked locally

Added @jon as a reviewer because I'm not sure if there's a more idiomatic way to do this

Pre-empting any future CI issues because of case-sensitivity on certain platforms

max added inline comments.
native/android/app/CMakeLists.txt
134

Looks monstrous, but seems we can't get rid of this.

atul added inline comments.
native/android/app/CMakeLists.txt
134

+1

This revision is now accepted and ready to land.Oct 26 2022, 10:29 AM

I want to make sure @jon takes a look since he's the in-house CMake expert

This revision now requires review to proceed.Oct 26 2022, 11:14 AM
jon added inline comments.
native/android/app/CMakeLists.txt
134

If this path is generated at build time, using ${CMAKE_CURRENT_BINARY_DIR}/.cxx is probably the best practice.

This should only make a difference if we do add_subdirectory(native/android/app). But it's just avoid that potential pain.

This revision is now accepted and ready to land.Oct 26 2022, 12:02 PM