build: fix cross-compiling for iOS

Previously to build successfully for iOS, you needed to specify OS=mac
at gyp time.  This treats ios and mac as exactly the same.

PR-URL: https://github.com/libuv/libuv/pull/262
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
Steven Kabbes 2015-03-11 16:00:13 -07:00 committed by Saúl Ibarra Corretgé
parent c7ebe68fbc
commit 96814fe606

8
uv.gyp
View File

@ -39,7 +39,7 @@
'_FILE_OFFSET_BITS=64', '_FILE_OFFSET_BITS=64',
], ],
}], }],
['OS == "mac"', { ['OS in "mac ios"', {
'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ], 'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
}], }],
['OS == "linux"', { ['OS == "linux"', {
@ -175,10 +175,10 @@
}], }],
], ],
}], }],
[ 'OS in "linux mac android"', { [ 'OS in "linux mac ios android"', {
'sources': [ 'src/unix/proctitle.c' ], 'sources': [ 'src/unix/proctitle.c' ],
}], }],
[ 'OS=="mac"', { [ 'OS in "mac ios"', {
'sources': [ 'sources': [
'src/unix/darwin.c', 'src/unix/darwin.c',
'src/unix/fsevents.c', 'src/unix/fsevents.c',
@ -261,7 +261,7 @@
'libraries': [ '-lkvm' ], 'libraries': [ '-lkvm' ],
}, },
}], }],
[ 'OS in "mac freebsd dragonflybsd openbsd netbsd".split()', { [ 'OS in "ios mac freebsd dragonflybsd openbsd netbsd".split()', {
'sources': [ 'src/unix/kqueue.c' ], 'sources': [ 'src/unix/kqueue.c' ],
}], }],
['uv_library=="shared_library"', { ['uv_library=="shared_library"', {