Skip to content

Commit 5cc1c2d

Browse files
author
t3rr0r
committed
build ios
1 parent 651622b commit 5cc1c2d

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

deps/leveldb/leveldb-1.20/port/port_posix.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define STORAGE_LEVELDB_PORT_PORT_POSIX_H_
99

1010
#undef PLATFORM_IS_LITTLE_ENDIAN
11-
#if defined(OS_MACOSX)
11+
#if defined(OS_MACOSX) || defined(OS_IOS)
1212
#include <machine/endian.h>
1313
#if defined(__DARWIN_LITTLE_ENDIAN) && defined(__DARWIN_BYTE_ORDER)
1414
#define PLATFORM_IS_LITTLE_ENDIAN \
@@ -52,14 +52,15 @@
5252

5353
#if defined(OS_MACOSX) || defined(OS_SOLARIS) || defined(OS_FREEBSD) ||\
5454
defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_DRAGONFLYBSD) ||\
55-
defined(OS_ANDROID) || defined(OS_HPUX) || defined(CYGWIN)
55+
defined(OS_ANDROID) || defined(OS_HPUX) || defined(CYGWIN) ||\
56+
defined(OS_IOS)
5657
// Use fread/fwrite/fflush on platforms without _unlocked variants
5758
#define fread_unlocked fread
5859
#define fwrite_unlocked fwrite
5960
#define fflush_unlocked fflush
6061
#endif
6162

62-
#if defined(OS_MACOSX) || defined(OS_FREEBSD) ||\
63+
#if defined(OS_MACOSX) || defined(OS_FREEBSD) || defined(OS_IOS) ||\
6364
defined(OS_OPENBSD) || defined(OS_DRAGONFLYBSD)
6465
// Use fsync() on platforms without fdatasync()
6566
#define fdatasync fsync

deps/leveldb/leveldb.gyp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,20 @@
128128
'-pthread'
129129
]
130130
}]
131+
, ['OS == "ios"', {
132+
'defines': [
133+
'OS_IOS=1'
134+
]
135+
, 'libraries': []
136+
, 'ccflags': []
137+
, 'xcode_settings': {
138+
'WARNING_CFLAGS': [
139+
'-Wno-sign-compare'
140+
, '-Wno-unused-variable'
141+
, '-Wno-unused-function'
142+
]
143+
}
144+
}]
131145
, ['OS == "mac"', {
132146
'defines': [
133147
'OS_MACOSX=1'

deps/snappy/snappy.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
['OS=="linux"', {'os_include': 'linux'}]
55
, ['OS=="android"', {'os_include': 'linux'}]
66
, ['OS=="mac"', {'os_include': 'mac'}]
7+
, ['OS=="ios"', {'os_include': 'mac'}]
78
, ['OS=="solaris"', {'os_include': 'solaris'}]
89
, ['OS=="win"', {'os_include': 'win32'}]
910
, ['OS=="freebsd"', {'os_include': 'freebsd'}]

0 commit comments

Comments
 (0)