Skip to content

[CMake] Updates for Android NDK r13 #5432

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

Merged
merged 1 commit into from
Oct 25, 2016
Merged

Conversation

modocache
Copy link
Contributor

Fixes the Android build, and makes some adjustments for Android NDK r13.

  • Fix FindICU.cmake to properly set the SWIFT_${sdk}_ICU_UC and SWIFT_${sdk}_ICU_I18N values. These were not properly set because "uc" and "i18n" were lowercase.
  • Adapt add_swift_library to parse ICU_UC and ICU_I18N for private link libraries and use the proper SWIFT_${sdk}_ICU_* values.
  • NDK r13 removes a subdirectory from the llvm-libc++ includes path. Adapt to this change, and add a FIXME to address this issue before it may break again.
  • Update the documentation to point to a new libicu download for NDK 13.

Fixes the Android build, and makes some adjustments for Android NDK r13.

* Fix FindICU.cmake to properly set the `SWIFT_${sdk}_ICU_UC` and
  `SWIFT_${sdk}_ICU_I18N` values. These were not properly set because
  "uc" and "i18n" were lowercase.
* Adapt `add_swift_library` to parse `ICU_UC` and `ICU_I18N` for
  private link libraries and use the proper `SWIFT_${sdk}_ICU_*` values.
* NDK r13 removes a subdirectory from the llvm-libc++ includes path.
  Adapt to this change, and add a FIXME to address this issue before it
  may break again.
* Update the documentation to point to a new libicu download for NDK 13.
@erg
Copy link
Contributor

erg commented Oct 24, 2016

@swift-ci Please smoke test

@modocache
Copy link
Contributor Author

@swift-ci please smoke test os x platform

@rintaro
Copy link
Member

rintaro commented Oct 25, 2016

@modocache Could you take a look at FindICU.cmake change in #4804?
ICU_${MODULE}_INCLUDE_DIR vs ICU_${MODULE}_INCLUDE_DIRS
Without that change, I'm not sure how ICU_${MODULE}_INCLUDE_DIRS is set.

Edit: Ah I see, Android doesn't rely on pkg_check_modules. Never mind :)

@erg erg merged commit adf36cb into swiftlang:master Oct 25, 2016
@modocache modocache deleted the android-ndk-r13 branch October 25, 2016 18:00
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.

6 participants