Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1442)

Unified Diff: third_party/libsrtp/libsrtp.gyp

Issue 9956068: Change macro definitions for android/arm and add srtp tests into gyp (Closed) Base URL: https://src.chromium.org/svn/trunk/deps/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libsrtp/libsrtp.gyp
===================================================================
--- third_party/libsrtp/libsrtp.gyp (revision 130067)
+++ third_party/libsrtp/libsrtp.gyp (working copy)
@@ -29,10 +29,51 @@
],
}],
['target_arch=="arm"', {
- 'defines': [
- 'CPU_RISC',
- 'SIZEOF_UNSIGNED_LONG=4',
- 'SIZEOF_UNSIGNED_LONG_LONG=8',
+ 'conditions': [
+ ['OS!="android"', {
+ 'defines': [
+ 'CPU_RISC',
+ 'SIZEOF_UNSIGNED_LONG=4',
+ 'SIZEOF_UNSIGNED_LONG_LONG=8',
+ ],
+ }],
+ ['OS=="android"', {
+ 'defines': [
+ 'CPU_CISC',
Sergey Ulanov 2012/04/02 18:44:36 This seems wrong to me. ARM is always RISC archite
leozwang 2012/04/02 21:14:57 It seemed not a right flag to me at the beginning.
Sergey Ulanov 2012/04/02 23:36:23 As far as I understand libsrtp uses that to differ
+ 'DEV_URANDOM="/dev/urandom"',
+ 'HAVE_ARPA_INET_H',
Sergey Ulanov 2012/04/02 18:44:36 Do we need to have all these defines? Many of them
leozwang 2012/04/02 21:14:57 I was also debating about if I should keep this lo
Sergey Ulanov 2012/04/02 23:36:23 I don't think any of these can cause any problems
+ 'HAVE_BYTESWAP_H',
+ 'HAVE_INET_ATON',
+ 'HAVE_INT16_T',
+ 'HAVE_INT32_T',
+ 'HAVE_INT8_T',
+ 'HAVE_INTTYPES_H',
+ 'HAVE_MEMORY_H',
+ 'HAVE_NETINET_IN_H',
+ 'HAVE_SOCKET',
+ 'HAVE_STDINT_H',
+ 'HAVE_STDLIB_H',
+ 'HAVE_STRINGS_H',
+ 'HAVE_STRING_H',
+ 'HAVE_SYSLOG_H',
+ 'HAVE_SYS_SOCKET_H',
+ 'HAVE_SYS_STAT_H',
+ 'HAVE_SYS_TYPES_H',
+ 'HAVE_SYS_UIO_H',
+ 'HAVE_UINT16_T',
+ 'HAVE_UINT32_T',
+ 'HAVE_UINT64_T',
+ 'HAVE_UINT8_T',
+ 'HAVE_UNISTD_H',
+ 'HAVE_USLEEP',
+ 'PACKAGE_BUGREPORT=""',
+ 'PACKAGE_NAME=""',
+ 'PACKAGE_STRING=""',
+ 'PACKAGE_TARNAME=""',
+ 'PACKAGE_VERSION=""',
+ 'STDC_HEADERS=1',
+ ],
+ }],
],
}],
['OS!="win"', {
@@ -71,10 +112,51 @@
],
}],
['target_arch=="arm"', {
- 'defines': [
- 'CPU_RISC',
- 'SIZEOF_UNSIGNED_LONG=4',
- 'SIZEOF_UNSIGNED_LONG_LONG=8',
+ 'conditions': [
+ ['OS!="android"', {
+ 'defines': [
+ 'CPU_RISC',
+ 'SIZEOF_UNSIGNED_LONG=4',
+ 'SIZEOF_UNSIGNED_LONG_LONG=8',
+ ],
+ }],
+ ['OS=="android"', {
+ 'defines': [
+ 'CPU_CISC',
+ 'DEV_URANDOM="/dev/urandom"',
+ 'HAVE_ARPA_INET_H',
+ 'HAVE_BYTESWAP_H',
+ 'HAVE_INET_ATON',
+ 'HAVE_INT16_T',
+ 'HAVE_INT32_T',
+ 'HAVE_INT8_T',
+ 'HAVE_INTTYPES_H',
+ 'HAVE_MEMORY_H',
+ 'HAVE_NETINET_IN_H',
+ 'HAVE_SOCKET',
+ 'HAVE_STDINT_H',
+ 'HAVE_STDLIB_H',
+ 'HAVE_STRINGS_H',
+ 'HAVE_STRING_H',
+ 'HAVE_SYSLOG_H',
+ 'HAVE_SYS_SOCKET_H',
+ 'HAVE_SYS_STAT_H',
+ 'HAVE_SYS_TYPES_H',
+ 'HAVE_SYS_UIO_H',
+ 'HAVE_UINT16_T',
+ 'HAVE_UINT32_T',
+ 'HAVE_UINT64_T',
+ 'HAVE_UINT8_T',
+ 'HAVE_UNISTD_H',
+ 'HAVE_USLEEP',
+ 'PACKAGE_BUGREPORT=""',
+ 'PACKAGE_NAME=""',
+ 'PACKAGE_STRING=""',
+ 'PACKAGE_TARNAME=""',
+ 'PACKAGE_VERSION=""',
+ 'STDC_HEADERS=1',
+ ],
+ }],
],
}],
['OS!="win"', {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698