Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
c06c22e9
Unverified
Kaydet (Commit)
c06c22e9
authored
Kas 23, 2017
tarafından
xdegaye
Kaydeden (comit)
GitHub
Kas 23, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-29040: Support building Android with Unified Headers (GH-4492)
üst
5ad7ef8e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
pyport.h
Include/pyport.h
+3
-1
2017-11-21-16-56-24.bpo-29040.14lCSr.rst
...EWS.d/next/Build/2017-11-21-16-56-24.bpo-29040.14lCSr.rst
+2
-0
configure
configure
+4
-1
configure.ac
configure.ac
+4
-1
No files found.
Include/pyport.h
Dosyayı görüntüle @
c06c22e9
...
...
@@ -784,7 +784,9 @@ extern _invalid_parameter_handler _Py_silent_invalid_parameter_handler;
#endif
/* Py_BUILD_CORE */
#ifdef __ANDROID__
#include <android/api-level.h>
/* The Android langinfo.h header is not used. */
#undef HAVE_LANGINFO_H
#undef CODESET
#endif
/* Maximum value of the Windows DWORD type */
...
...
Misc/NEWS.d/next/Build/2017-11-21-16-56-24.bpo-29040.14lCSr.rst
0 → 100644
Dosyayı görüntüle @
c06c22e9
Support building Android with Unified Headers. The first NDK release to
support Unified Headers is android-ndk-r14.
configure
Dosyayı görüntüle @
c06c22e9
...
...
@@ -5611,7 +5611,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
$as_echo_n
"checking for the Android API level... "
>
&6
;
}
cat
>>
conftest.c
<<
EOF
#ifdef __ANDROID__
#include <android/api-level.h>
android_api = __ANDROID_API__
arm_arch = __ARM_ARCH
#else
...
...
@@ -5624,6 +5623,10 @@ if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
_arm_arch
=
`
sed
-n
-e
'/__ARM_ARCH/d'
-e
's/^arm_arch = //p'
conftest.out
`
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ANDROID_API_LEVEL
"
>
&5
$as_echo
"
$ANDROID_API_LEVEL
"
>
&6
;
}
if
test
-z
"
$ANDROID_API_LEVEL
"
;
then
echo
'Fatal: you must define __ANDROID_API__'
exit
1
fi
cat
>>
confdefs.h
<<
_ACEOF
#define ANDROID_API_LEVEL
$ANDROID_API_LEVEL
...
...
configure.ac
Dosyayı görüntüle @
c06c22e9
...
...
@@ -885,7 +885,6 @@ AC_USE_SYSTEM_EXTENSIONS
AC_MSG_CHECKING([for the Android API level])
cat >> conftest.c <<EOF
#ifdef __ANDROID__
#include <android/api-level.h>
android_api = __ANDROID_API__
arm_arch = __ARM_ARCH
#else
...
...
@@ -897,6 +896,10 @@ if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
_arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
AC_MSG_RESULT([$ANDROID_API_LEVEL])
if test -z "$ANDROID_API_LEVEL"; then
echo 'Fatal: you must define __ANDROID_API__'
exit 1
fi
AC_DEFINE_UNQUOTED(ANDROID_API_LEVEL, $ANDROID_API_LEVEL, [The Android API level.])
AC_MSG_CHECKING([for the Android arm ABI])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment