@@ -63,6 +63,8 @@ export BIGLINK="$ROOT_PATH/src/tools/biglink"
63
63
export PIP=$PIP_NAME
64
64
export VIRTUALENV=$VIRTUALENV_NAME
65
65
66
+ JELLYBEAN=0
67
+
66
68
MD5SUM=$( which md5sum)
67
69
if [ " X$MD5SUM " == " X" ]; then
68
70
MD5SUM=$( which md5)
@@ -218,6 +220,10 @@ function push_arm() {
218
220
export STRIP=" $TOOLCHAIN_PREFIX -strip --strip-unneeded"
219
221
export MAKE=" make -j5"
220
222
223
+ if [ " $JELLYBEAN " == " 1" ]; then
224
+ export LIBLINK=" $CC -shared $LDFLAGS "
225
+ fi
226
+
221
227
# Use ccache ?
222
228
which ccache & > /dev/null
223
229
if [ $? -eq 0 ]; then
@@ -248,6 +254,7 @@ function usage() {
248
254
echo
249
255
echo " -d directory Name of the distribution directory"
250
256
echo " -h Show this help"
257
+ echo " -j Create distribution for JB 4.3+"
251
258
echo " -l Show a list of available modules"
252
259
echo " -m 'mod1 mod2' Modules to include"
253
260
echo " -f Restart from scratch (remove the current build)"
@@ -345,6 +352,10 @@ function run_prepare() {
345
352
fi
346
353
done
347
354
355
+ if [ " $JELLYBEAN " == " 1" ]; then
356
+ info " Distribution for Jelly Bean (4.3) or higher; biglink will be skipped"
357
+ fi
358
+
348
359
info " Distribution will be located at $DIST_PATH "
349
360
if [ -e " $DIST_PATH " ]; then
350
361
error " The distribution $DIST_PATH already exist"
@@ -760,7 +771,10 @@ function run_distribute() {
760
771
debug " Fill private directory"
761
772
try cp -a python-install/lib private/
762
773
try mkdir -p private/include/python2.7
763
- try mv libs/$ARCH /libpymodules.so private/
774
+
775
+ if [ " $JELLYBEAN " == " 0" ]; then
776
+ try mv libs/$ARCH /libpymodules.so private/
777
+ fi
764
778
try cp python-install/include/python2.7/pyconfig.h private/include/python2.7/
765
779
766
780
debug " Reduce private directory from unwanted files"
@@ -786,9 +800,11 @@ function run_distribute() {
786
800
}
787
801
788
802
function run_biglink() {
789
- push_arm
790
- try $BIGLINK $LIBS_PATH /libpymodules.so $LIBLINK_PATH
791
- pop_arm
803
+ if [ " $JELLYBEAN " == " 0" ]; then
804
+ push_arm
805
+ try $BIGLINK $LIBS_PATH /libpymodules.so $LIBLINK_PATH
806
+ pop_arm
807
+ fi
792
808
}
793
809
794
810
function run() {
@@ -829,11 +845,14 @@ function arm_deduplicate() {
829
845
830
846
831
847
# Do the build
832
- while getopts " :hvlfxm :u:d:s" opt; do
848
+ while getopts " :hjvlfxm :u:d:s" opt; do
833
849
case $opt in
834
850
h)
835
851
usage
836
852
;;
853
+ j)
854
+ JELLYBEAN=1
855
+ ;;
837
856
l)
838
857
list_modules
839
858
;;
0 commit comments