Avoid build errors by using ad-hoc Swift modules that import the right sqlite3 header depending on the platform (MacOSX, iPhoneOS, iPhoneSimulator).

This commit is contained in:
Gwendal Roué committed 2016-03-17 08:54:09 +01:00
1 parent 9733fb22fd
commit c6f96906ca
19 files changed
+165 -21

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
framework module GRDB {
umbrella header "GRDB.h"
export *
module * { export * }
}
module SQLiteMacOSX {
header "/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sqlite3.h"
export *
}
module SQLiteiPhoneOS {
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h"
export *
}
module SQLiteiPhoneSimulator {
header "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sqlite3.h"
export *
}