From e6010e334abdf98eb9f62c1d6abbb2a9e8cd7d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 17 Mar 2016 08:18:49 +0100 Subject: [PATCH] One modulemap per target --- GRDB.xcodeproj/project.pbxproj | 42 ++++++++++++++------------ Support/GRDB.xcconfig | 2 +- Support/{ => GRDBOSX}/module.modulemap | 0 Support/GRDBiOS/module.modulemap | 8 +++++ 4 files changed, 31 insertions(+), 21 deletions(-) rename Support/{ => GRDBOSX}/module.modulemap (100%) create mode 100644 Support/GRDBiOS/module.modulemap diff --git a/GRDB.xcodeproj/project.pbxproj b/GRDB.xcodeproj/project.pbxproj index c64fddacb..0e7b9033e 100644 --- a/GRDB.xcodeproj/project.pbxproj +++ b/GRDB.xcodeproj/project.pbxproj @@ -430,6 +430,8 @@ 565B0FEE1BBC7D980098DE03 /* RowConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowConvertibleTests.swift; sourceTree = ""; }; 565D5D701BBC694D00DC9BD4 /* Row+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Row+FoundationTests.swift"; sourceTree = ""; }; 565D5D731BBC70AE00DC9BD4 /* StatementArguments+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "StatementArguments+FoundationTests.swift"; sourceTree = ""; }; + 567D10631C9A911C00ACC500 /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = module.modulemap; sourceTree = ""; }; + 567D10651C9A911C00ACC500 /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = module.modulemap; sourceTree = ""; }; 5683C2681B4D445E00296494 /* libsqlite3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.dylib; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/usr/lib/libsqlite3.dylib; sourceTree = DEVELOPER_DIR; }; 569530FB1C9067CC00CF1A2B /* DatabaseQueueCrashTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueCrashTests.swift; sourceTree = ""; }; 569530FC1C9067CC00CF1A2B /* DatabaseValueConvertibleCrashTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleCrashTests.swift; sourceTree = ""; }; @@ -484,7 +486,6 @@ 56B7F4361BE4C11200E39BBF /* DatabaseCoderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseCoderTests.swift; sourceTree = ""; }; 56B7F4391BEB42D500E39BBF /* Migration.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Migration.swift; sourceTree = ""; }; 56B8F49A1B4E2F3600C24296 /* GRDB.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = GRDB.xcconfig; sourceTree = ""; }; - 56B8F49B1B4E2F3600C24296 /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = module.modulemap; sourceTree = ""; }; 56BB86111BA9886D001F9168 /* PerformanceTests.sqlite */ = {isa = PBXFileReference; lastKnownFileType = file; path = PerformanceTests.sqlite; sourceTree = ""; }; 56BB86121BA9886D001F9168 /* InsertRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = InsertRecordTests.swift; sourceTree = ""; }; 56BB86181BA988F2001F9168 /* FMDatabase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FMDatabase.h; sourceTree = ""; }; @@ -735,6 +736,24 @@ path = Collation; sourceTree = ""; }; + 567D10621C9A911C00ACC500 /* GRDBiOS */ = { + isa = PBXGroup; + children = ( + 567D10631C9A911C00ACC500 /* module.modulemap */, + 5683C2681B4D445E00296494 /* libsqlite3.dylib */, + ); + path = GRDBiOS; + sourceTree = ""; + }; + 567D10641C9A911C00ACC500 /* GRDBOSX */ = { + isa = PBXGroup; + children = ( + 567D10651C9A911C00ACC500 /* module.modulemap */, + DC37744219C8DC91004FCF85 /* libsqlite3.dylib */, + ); + path = GRDBOSX; + sourceTree = ""; + }; 569530FA1C9067CC00CF1A2B /* Crash */ = { isa = PBXGroup; children = ( @@ -999,22 +1018,6 @@ name = Products; sourceTree = ""; }; - 56E5D7BF1B4D3DC900430942 /* GRDBiOS */ = { - isa = PBXGroup; - children = ( - 5683C2681B4D445E00296494 /* libsqlite3.dylib */, - ); - path = GRDBiOS; - sourceTree = ""; - }; - 56E5D7C11B4D3DC900430942 /* GRDBOSX */ = { - isa = PBXGroup; - children = ( - DC37744219C8DC91004FCF85 /* libsqlite3.dylib */, - ); - path = GRDBOSX; - sourceTree = ""; - }; 56EA86921C91DFDA002BB4DF /* DatabaseReader */ = { isa = PBXGroup; children = ( @@ -1121,9 +1124,8 @@ isa = PBXGroup; children = ( 56B8F49A1B4E2F3600C24296 /* GRDB.xcconfig */, - 56B8F49B1B4E2F3600C24296 /* module.modulemap */, - 56E5D7BF1B4D3DC900430942 /* GRDBiOS */, - 56E5D7C11B4D3DC900430942 /* GRDBOSX */, + 567D10621C9A911C00ACC500 /* GRDBiOS */, + 567D10641C9A911C00ACC500 /* GRDBOSX */, DC3773F819C8CBB3004FCF85 /* GRDB.h */, DC2393C61ABE35F8003FF113 /* GRDB-Bridging.h */, DC3773F719C8CBB3004FCF85 /* Info.plist */, diff --git a/Support/GRDB.xcconfig b/Support/GRDB.xcconfig index c7d9ddbc0..2dd423f53 100644 --- a/Support/GRDB.xcconfig +++ b/Support/GRDB.xcconfig @@ -1 +1 @@ -MODULEMAP_FILE = $(SRCROOT)/Support/module.modulemap +MODULEMAP_FILE = $(SRCROOT)/Support/$(TARGET_NAME)/module.modulemap diff --git a/Support/module.modulemap b/Support/GRDBOSX/module.modulemap similarity index 100% rename from Support/module.modulemap rename to Support/GRDBOSX/module.modulemap diff --git a/Support/GRDBiOS/module.modulemap b/Support/GRDBiOS/module.modulemap new file mode 100644 index 000000000..50c9006f6 --- /dev/null +++ b/Support/GRDBiOS/module.modulemap @@ -0,0 +1,8 @@ +framework module GRDB { + umbrella header "GRDB.h" + + header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h" + + export * + module * { export * } +}