Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutotoolsToolchain] Honoring tools.android:ndk_path conf #16502

Merged
merged 4 commits into from
Jun 20, 2024

Conversation

franramirez688
Copy link
Contributor

@franramirez688 franramirez688 commented Jun 19, 2024

Changelog: Feature: Honoring tools.android:ndk_path conf. Setting the needed flags to cross-build for Android.
Docs: conan-io/docs#3787
Closes: #13443

Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

Looks good

if not self._is_cross_building or not self._conanfile.settings.get_safe("os") == "Android":
return ret
ndk_path = self._conanfile.conf.get("tools.android:ndk_path", check_type=str)
if ndk_path:
Copy link
Member

Choose a reason for hiding this comment

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

What if ndk_path is not defined? Isn't it mandatory in other places?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's true that if it's not defined, in other toolchains like Meson or CMake, it is raised as an exception, but do we want to do that here? It'd be a breaking change because people have always included all the needed flags via buildenv.

conan/tools/gnu/autotoolstoolchain.py Outdated Show resolved Hide resolved
@czoido czoido merged commit fed5f7f into conan-io:develop2 Jun 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] AutotoolsToolchain: define environment when building for Android
3 participants