forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LIBS - PART II] Part II of NDK r19 migration - Initial STL lib migra…
…tion (kivy#1947) * [recipe-stl] Add android's STL lib support to `Recipe` To allow us to refactor some common operations that we use in our recipes that depends on android's STL library. Note: This commit will allow us to begin the migration to `c++_shared`. This is a must when we move to android's NDK r19+, because as for android NDK >= 18 is the only one supported STL library. * [recipe-stl] Make CppCompiledComponentsPythonRecipe use Recipe's STL support * [recipe-stl] Make icu a library recipe with STL support (rework) Also done here: - Remove hardcoded version in url - Disable versioned shared libraries - Make it to be build as a shared libraries (instead of static) - Disable the build of static libraries (because we build them as shared ones, so we avoid to link with them without our consents) - Shorten long lines to be pep8's friendly - Remove icu from ci/constants - Remove `RuntimeError` about the need to use NDK api <= 19 (because that is not the case anymore) - consider host's number of cpu to perform the build * [recipe-stl] Rework pyicu recipe to match latest icu changes Also done here: - Remove icu.patch because now we don't have the version in our icu libraries - Shorten long lines to be pep8's friendly * [tests] Add tests for recipe with STL support * [tests] Add tests for icu recipe * [tests] Add tests for pyicu recipe
- Loading branch information
1 parent
a1310fc
commit ea461ff
Showing
9 changed files
with
563 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
diff -aur icu4c-org/source/config/Makefile.inc.in icu4c/source/config/Makefile.inc.in | ||
--- icu/source/config/Makefile.inc.in.orig 2016-03-23 21:50:50.000000000 +0100 | ||
+++ icu/source/config/Makefile.inc.in 2019-02-15 17:59:28.331749766 +0100 | ||
@@ -142,8 +142,8 @@ | ||
LDLIBRARYPATH_ENVVAR = LD_LIBRARY_PATH | ||
|
||
# Versioned target for a shared library | ||
-FINAL_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION) | ||
-MIDDLE_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION_MAJOR) | ||
+FINAL_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION) | ||
+MIDDLE_SO_TARGET = $(SO_TARGET) | ||
|
||
# Access to important ICU tools. | ||
# Use as follows: $(INVOKE) $(GENRB) arguments .. | ||
diff -aur icu4c-org/source/config/mh-linux icu4c/source/config/mh-linux | ||
--- icu4c-org/source/config/mh-linux 2017-07-05 13:23:06.000000000 +0200 | ||
+++ icu4c/source/config/mh-linux 2017-07-06 14:02:52.275016858 +0200 | ||
@@ -24,9 +24,17 @@ | ||
|
||
## Compiler switch to embed a library name | ||
# The initial tab in the next line is to prevent icu-config from reading it. | ||
- LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET)) | ||
+ LD_SONAME = -Wl,-soname -Wl,$(notdir $(SO_TARGET)) | ||
+ DATA_STUBNAME = data$(SO_TARGET_VERSION_MAJOR) | ||
+ COMMON_STUBNAME = uc$(SO_TARGET_VERSION_MAJOR) | ||
+ I18N_STUBNAME = i18n$(SO_TARGET_VERSION_MAJOR) | ||
+ LAYOUT_STUBNAME = le$(SO_TARGET_VERSION_MAJOR) | ||
+ LAYOUTEX_STUBNAME = lx$(SO_TARGET_VERSION_MAJOR) | ||
+ IO_STUBNAME = io$(SO_TARGET_VERSION_MAJOR) | ||
+ TOOLUTIL_STUBNAME = tu$(SO_TARGET_VERSION_MAJOR) | ||
+ CTESTFW_STUBNAME = test$(SO_TARGET_VERSION_MAJOR) | ||
#SH# # We can't depend on MIDDLE_SO_TARGET being set. | ||
-#SH# LD_SONAME= | ||
+#SH# LD_SONAME=$(SO_TARGET) | ||
|
||
## Shared library options | ||
LD_SOOPTIONS= -Wl,-Bsymbolic | ||
@@ -64,10 +64,10 @@ | ||
|
||
## Versioned libraries rules | ||
|
||
-%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION) | ||
- $(RM) $@ && ln -s ${<F} $@ | ||
-%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR) | ||
- $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@ | ||
+%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION) | ||
+ $(RM) $@ && ln -s ${<F} $@ | ||
+%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR) | ||
+ $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@ | ||
|
||
## Bind internal references | ||
|
||
diff -aur icu4c-org/source/data/Makefile.in icu4c/source/data/Makefile.in | ||
--- icu4c-org/source/data/Makefile.in 2017-07-05 13:23:06.000000000 +0200 | ||
+++ icu4c/source/data/Makefile.in 2017-07-06 14:05:31.607995855 +0200 | ||
@@ -24,9 +24,9 @@ | ||
ifeq ($(PKGDATA_OPTS),) | ||
PKGDATA_OPTS = -O $(top_builddir)/data/icupkg.inc | ||
endif | ||
-ifeq ($(PKGDATA_VERSIONING),) | ||
-PKGDATA_VERSIONING = -r $(SO_TARGET_VERSION) | ||
-endif | ||
+#ifeq ($(PKGDATA_VERSIONING),) | ||
+#PKGDATA_VERSIONING = -r $(SO_TARGET_VERSION) | ||
+#endif | ||
|
Oops, something went wrong.