Skip to content

Conversation

@jschwe
Copy link
Member

@jschwe jschwe commented Oct 18, 2025

Use Release mode for gradle for production builds and Debug for any other builds.
This fixes an exception when building for android with a custom cargo profile.
SERVO_TARGET_DIR is read in apk/jni/Android.mk and specifies the folder
libservoshell.so is expected to be in.

Testing: Tested manually with ./mach build --android --production
Fixes: #34564

Use Release mode for gradle for production builds
and Debug for any other builds.
This fixes an exception when building for android with
a custom cargo profile.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 18, 2025
@jschwe jschwe requested a review from mukilan October 20, 2025 13:06
Copy link
Member

@mukilan mukilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 20, 2025
Co-authored-by: Mukilan Thiyagarajan <mukilanthiagarajan@gmail.com>
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 20, 2025
@jschwe jschwe added this pull request to the merge queue Oct 20, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 20, 2025
Merged via the queue into servo:main with commit 205b049 Oct 20, 2025
33 checks passed
@jschwe jschwe deleted the jschwender/android-prod branch October 20, 2025 17:51
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mach: Android packaging does not support custom build profiles

3 participants