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
95750b1c
Kaydet (Commit)
95750b1c
authored
Tem 09, 2016
tarafından
Xavier de Gaye
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #27442: Expose the Android API level in sysconfig.get_config_vars()
as 'ANDROID_API_LEVEL'.
üst
2247e5c4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
0 deletions
+51
-0
NEWS
Misc/NEWS
+3
-0
configure
configure
+26
-0
configure.ac
configure.ac
+19
-0
pyconfig.h.in
pyconfig.h.in
+3
-0
No files found.
Misc/NEWS
Dosyayı görüntüle @
95750b1c
...
@@ -132,6 +132,9 @@ C API
...
@@ -132,6 +132,9 @@ C API
Build
Build
-----
-----
-
Issue
#
27442
:
Expose
the
Android
API
level
that
python
was
built
against
,
in
sysconfig
.
get_config_vars
()
as
'ANDROID_API_LEVEL'
.
-
Issue
#
27434
:
The
interpreter
that
runs
the
cross
-
build
,
found
in
PATH
,
must
-
Issue
#
27434
:
The
interpreter
that
runs
the
cross
-
build
,
found
in
PATH
,
must
now
be
of
the
same
feature
version
(
e
.
g
.
3.6
)
as
the
source
being
built
.
now
be
of
the
same
feature
version
(
e
.
g
.
3.6
)
as
the
source
being
built
.
...
...
configure
Dosyayı görüntüle @
95750b1c
...
@@ -5648,6 +5648,32 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
...
@@ -5648,6 +5648,32 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for the Android API level"
>
&5
$as_echo_n
"checking for the Android API level... "
>
&6
;
}
cat
>>
conftest.c
<<
EOF
#ifdef __ANDROID__
#include <android/api-level.h>
__ANDROID_API__
#else
#error not Android
#endif
EOF
if
$CPP
$CPPFLAGS
conftest.c
>
conftest.out 2>/dev/null
;
then
ANDROID_API_LEVEL
=
`
grep
-v
'^#'
conftest.out |
grep
-v
'^ *$'
`
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ANDROID_API_LEVEL
"
>
&5
$as_echo
"
$ANDROID_API_LEVEL
"
>
&6
;
}
cat
>>
confdefs.h
<<
_ACEOF
#define ANDROID_API_LEVEL
$ANDROID_API_LEVEL
_ACEOF
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: not Android"
>
&5
$as_echo
"not Android"
>
&6
;
}
fi
rm
-f
conftest.c conftest.out
# Check for unsupported systems
# Check for unsupported systems
case
$ac_sys_system
/
$ac_sys_release
in
case
$ac_sys_system
/
$ac_sys_release
in
atheos
*
|
Linux
*
/1
*
)
atheos
*
|
Linux
*
/1
*
)
...
...
configure.ac
Dosyayı görüntüle @
95750b1c
...
@@ -899,6 +899,25 @@ AC_SUBST(NO_AS_NEEDED)
...
@@ -899,6 +899,25 @@ AC_SUBST(NO_AS_NEEDED)
# checks for UNIX variants that set C preprocessor variables
# checks for UNIX variants that set C preprocessor variables
AC_USE_SYSTEM_EXTENSIONS
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__
#else
#error not Android
#endif
EOF
if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
ANDROID_API_LEVEL=`grep -v '^#' conftest.out | grep -v '^ *$'`
AC_MSG_RESULT([$ANDROID_API_LEVEL])
AC_DEFINE_UNQUOTED(ANDROID_API_LEVEL, $ANDROID_API_LEVEL, [The Android API level.])
else
AC_MSG_RESULT([not Android])
fi
rm -f conftest.c conftest.out
# Check for unsupported systems
# Check for unsupported systems
case $ac_sys_system/$ac_sys_release in
case $ac_sys_system/$ac_sys_release in
atheos*|Linux*/1*)
atheos*|Linux*/1*)
...
...
pyconfig.h.in
Dosyayı görüntüle @
95750b1c
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
support for AIX C++ shared extension modules. */
support for AIX C++ shared extension modules. */
#undef AIX_GENUINE_CPLUSPLUS
#undef AIX_GENUINE_CPLUSPLUS
/* The Android API level. */
#undef ANDROID_API_LEVEL
/* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM
/* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM
mixed-endian order (byte order 45670123) */
mixed-endian order (byte order 45670123) */
#undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754
#undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754
...
...
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