From ccaad8d86079987d7676c9f43b10394fdc280435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 9 Apr 2020 08:03:40 +0200 Subject: [PATCH] Restore backward compatibility for setup of custom SQLite builds User only has to rename the `import` Swift statement --- .gitignore | 4 +- Documentation/CustomSQLiteBuilds.md | 28 +++--- GRDBCustom.xcodeproj/project.pbxproj | 72 +++++++------- Makefile | 10 +- SQLiteCustom/GRDB-Bridging.h | 0 SQLiteCustom/GRDB.h | 3 +- SQLiteCustom/GRDB.xcconfig | 2 +- ...nfig => GRDBCustomSQLite-Testing.xcconfig} | 2 +- ...xample => GRDBCustomSQLite-USER.h.example} | 2 +- ...=> GRDBCustomSQLite-USER.xcconfig.example} | 2 +- .../CustomSQLite.xcodeproj/project.pbxproj | 96 +++++++++++-------- .../xcschemes/CustomSQLite.xcscheme | 2 +- ...INSTALL.sh => GRDBCustomSQLite-INSTALL.sh} | 12 +-- .../{GRDB-USER.h => GRDBCustomSQLite-USER.h} | 0 ...cconfig => GRDBCustomSQLite-USER.xcconfig} | 0 15 files changed, 123 insertions(+), 112 deletions(-) delete mode 100755 SQLiteCustom/GRDB-Bridging.h rename SQLiteCustom/{GRDB-Testing.xcconfig => GRDBCustomSQLite-Testing.xcconfig} (91%) rename SQLiteCustom/{GRDB-USER.h.example => GRDBCustomSQLite-USER.h.example} (86%) rename SQLiteCustom/{GRDB-USER.xcconfig.example => GRDBCustomSQLite-USER.xcconfig.example} (82%) rename Tests/CustomSQLite/GRDBCustomSQLite/{GRDB-INSTALL.sh => GRDBCustomSQLite-INSTALL.sh} (77%) rename Tests/CustomSQLite/GRDBCustomSQLite/{GRDB-USER.h => GRDBCustomSQLite-USER.h} (100%) rename Tests/CustomSQLite/GRDBCustomSQLite/{GRDB-USER.xcconfig => GRDBCustomSQLite-USER.xcconfig} (100%) diff --git a/.gitignore b/.gitignore index 598b81ee4..c04845a86 100644 --- a/.gitignore +++ b/.gitignore @@ -97,8 +97,8 @@ xcuserdata *.xcbaseline # GRDBCustomSQLite USER configuration files -SQLiteCustom/GRDB-USER.h -SQLiteCustom/GRDB-USER.xcconfig +SQLiteCustom/GRDBCustomSQLite-USER.h +SQLiteCustom/GRDBCustomSQLite-USER.xcconfig # CocoaPods test Pods diff --git a/Documentation/CustomSQLiteBuilds.md b/Documentation/CustomSQLiteBuilds.md index 96d3a4458..40ca1862f 100644 --- a/Documentation/CustomSQLiteBuilds.md +++ b/Documentation/CustomSQLiteBuilds.md @@ -33,7 +33,7 @@ GRDB builds SQLite with [swiftlyfalling/SQLiteLib](https://github.com/swiftlyfal CUSTOM_SQLLIBRARY_CFLAGS = -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_PREUPDATE_HOOK ``` - - `GRDB-USER.xcconfig`: this file lets GRDB know about extra compilation flags, and enables extra GRDB APIs. + - `GRDBCustomSQLite-USER.xcconfig`: this file lets GRDB know about extra compilation flags, and enables extra GRDB APIs. ```xcconfig // As many -D options as there are custom SQLite compilation options @@ -41,7 +41,7 @@ GRDB builds SQLite with [swiftlyfalling/SQLiteLib](https://github.com/swiftlyfal CUSTOM_OTHER_SWIFT_FLAGS = -D SQLITE_ENABLE_FTS5 -D SQLITE_ENABLE_PREUPDATE_HOOK ``` - - `GRDB-USER.h`: this file lets your application know about extra compilation flags. + - `GRDBCustomSQLite-USER.h`: this file lets your application know about extra compilation flags. ```c // As many #define as there are custom SQLite compilation options @@ -49,7 +49,7 @@ GRDB builds SQLite with [swiftlyfalling/SQLiteLib](https://github.com/swiftlyfal #define SQLITE_ENABLE_PREUPDATE_HOOK ``` - - `GRDB-INSTALL.sh`: this file installs the three other files. + - `GRDBCustomSQLite-INSTALL.sh`: this file installs the three other files. ```sh # License: MIT License @@ -66,11 +66,11 @@ GRDB builds SQLite with [swiftlyfalling/SQLiteLib](https://github.com/swiftlyfal # The path to your custom "SQLiteLib-USER.xcconfig": SQLITELIB_XCCONFIG_USER_PATH="${PROJECT_DIR}/GRDBCustomSQLite/SQLiteLib-USER.xcconfig" - # The path to your custom "GRDB-USER.xcconfig": - CUSTOMSQLITE_XCCONFIG_USER_PATH="${PROJECT_DIR}/GRDBCustomSQLite/GRDB-USER.xcconfig" + # The path to your custom "GRDBCustomSQLite-USER.xcconfig": + CUSTOMSQLITE_XCCONFIG_USER_PATH="${PROJECT_DIR}/GRDBCustomSQLite/GRDBCustomSQLite-USER.xcconfig" - # The path to your custom "GRDB-USER.h": - CUSTOMSQLITE_H_USER_PATH="${PROJECT_DIR}/GRDBCustomSQLite/GRDB-USER.h" + # The path to your custom "GRDBCustomSQLite-USER.h": + CUSTOMSQLITE_H_USER_PATH="${PROJECT_DIR}/GRDBCustomSQLite/GRDBCustomSQLite-USER.h" ####################################################### # @@ -99,27 +99,27 @@ GRDB builds SQLite with [swiftlyfalling/SQLiteLib](https://github.com/swiftlyfal } SyncFileChanges $SQLITELIB_XCCONFIG_USER_PATH "${GRDB_SOURCE_PATH}/SQLiteCustom/src" "SQLiteLib-USER.xcconfig" - SyncFileChanges $CUSTOMSQLITE_XCCONFIG_USER_PATH "${GRDB_SOURCE_PATH}/SQLiteCustom" "GRDB-USER.xcconfig" - SyncFileChanges $CUSTOMSQLITE_H_USER_PATH "${GRDB_SOURCE_PATH}/SQLiteCustom" "GRDB-USER.h" + SyncFileChanges $CUSTOMSQLITE_XCCONFIG_USER_PATH "${GRDB_SOURCE_PATH}/SQLiteCustom" "GRDBCustomSQLite-USER.xcconfig" + SyncFileChanges $CUSTOMSQLITE_H_USER_PATH "${GRDB_SOURCE_PATH}/SQLiteCustom" "GRDBCustomSQLite-USER.h" echo "Finished syncing" ``` - Modify the top of `GRDB-INSTALL.sh` file so that it contains correct paths. + Modify the top of `GRDBCustomSQLite-INSTALL.sh` file so that it contains correct paths. 5. Embed the `GRDBCustom.xcodeproj` project in your own project. -6. Add the `GRDBOSX` or `GRDBiOS` target in the **Target Dependencies** section of the **Build Phases** tab of your **application target**. +6. Add the `GRDBCustomSQLiteOSX` or `GRDBCustomSQLiteiOS` target in the **Target Dependencies** section of the **Build Phases** tab of your **application target**. -7. Add the `GRDB.framework` from the targeted platform to the **Embedded Binaries** section of the **General** tab of your **application target**. +7. Add the `GRDBCustomSQLite.framework` from the targeted platform to the **Embedded Binaries** section of the **General** tab of your **application target**. 8. Add a Run Script phase for your target in the **Pre-actions** section of the **Build** tab of your **application scheme**: ```sh - source "${PROJECT_DIR}/GRDBCustomSQLite/GRDB-INSTALL.sh" + source "${PROJECT_DIR}/GRDBCustomSQLite/GRDBCustomSQLite-INSTALL.sh" ``` - The path should be the path to your `GRDB-INSTALL.sh` file. + The path should be the path to your `GRDBCustomSQLite-INSTALL.sh` file. Select your application target in the "Provide build settings from" menu. diff --git a/GRDBCustom.xcodeproj/project.pbxproj b/GRDBCustom.xcodeproj/project.pbxproj index f085ef88f..696110c93 100755 --- a/GRDBCustom.xcodeproj/project.pbxproj +++ b/GRDBCustom.xcodeproj/project.pbxproj @@ -470,8 +470,8 @@ 56FF455D1D2CDA5200F21EF9 /* RecordUniqueIndexTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56FF45551D2CDA5200F21EF9 /* RecordUniqueIndexTests.swift */; }; 6340BF831E5E3F7900832805 /* RecordPersistenceConflictPolicy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6340BF7F1E5E3F7900832805 /* RecordPersistenceConflictPolicy.swift */; }; 6340BF871E5E3F7900832805 /* RecordPersistenceConflictPolicy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6340BF7F1E5E3F7900832805 /* RecordPersistenceConflictPolicy.swift */; }; - EED476F21CFD17270026A4EC /* GRDB-USER.h in Headers */ = {isa = PBXBuildFile; fileRef = EED476F11CFD16FF0026A4EC /* GRDB-USER.h */; settings = {ATTRIBUTES = (Public, ); }; }; - EED476F31CFD172C0026A4EC /* GRDB-USER.h in Headers */ = {isa = PBXBuildFile; fileRef = EED476F11CFD16FF0026A4EC /* GRDB-USER.h */; settings = {ATTRIBUTES = (Public, ); }; }; + EED476F21CFD17270026A4EC /* GRDBCustomSQLite-USER.h in Headers */ = {isa = PBXBuildFile; fileRef = EED476F11CFD16FF0026A4EC /* GRDBCustomSQLite-USER.h */; settings = {ATTRIBUTES = (Public, ); }; }; + EED476F31CFD172C0026A4EC /* GRDBCustomSQLite-USER.h in Headers */ = {isa = PBXBuildFile; fileRef = EED476F11CFD16FF0026A4EC /* GRDBCustomSQLite-USER.h */; settings = {ATTRIBUTES = (Public, ); }; }; F3BA800A1CFB286A003DC1BA /* Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238701B9C75030082EB20 /* Configuration.swift */; }; F3BA800B1CFB286D003DC1BA /* Database.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238711B9C75030082EB20 /* Database.swift */; }; F3BA800C1CFB286F003DC1BA /* DatabaseError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238731B9C75030082EB20 /* DatabaseError.swift */; }; @@ -502,7 +502,6 @@ F3BA80341CFB28A4003DC1BA /* Record.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238A11B9C753B0082EB20 /* Record.swift */; }; F3BA80361CFB28A4003DC1BA /* TableRecord.swift in Sources */ = {isa = PBXBuildFile; fileRef = 560D92461C672C4B00F4F92B /* TableRecord.swift */; }; F3BA80381CFB2932003DC1BA /* GRDB.h in Headers */ = {isa = PBXBuildFile; fileRef = F3BA7FF11CFB23D3003DC1BA /* GRDB.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F3BA80391CFB2936003DC1BA /* GRDB-Bridging.h in Headers */ = {isa = PBXBuildFile; fileRef = F3BA7FF21CFB23DA003DC1BA /* GRDB-Bridging.h */; settings = {ATTRIBUTES = (Public, ); }; }; F3BA803A1CFB293A003DC1BA /* sqlite3.h in Headers */ = {isa = PBXBuildFile; fileRef = F3BA7FF01CFB23C9003DC1BA /* sqlite3.h */; settings = {ATTRIBUTES = (Public, ); }; }; F3BA803C1CFB2A20003DC1BA /* libsqlitecustom.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F3BA7FF81CFB23E4003DC1BA /* libsqlitecustom.a */; }; F3BA80461CFB2AD7003DC1BA /* GRDB.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3BA7FFE1CFB25E4003DC1BA /* GRDB.framework */; }; @@ -543,7 +542,6 @@ F3BA80901CFB2E7A003DC1BA /* Record.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238A11B9C753B0082EB20 /* Record.swift */; }; F3BA80921CFB2E7A003DC1BA /* TableRecord.swift in Sources */ = {isa = PBXBuildFile; fileRef = 560D92461C672C4B00F4F92B /* TableRecord.swift */; }; F3BA80931CFB2F13003DC1BA /* GRDB.h in Headers */ = {isa = PBXBuildFile; fileRef = F3BA7FF11CFB23D3003DC1BA /* GRDB.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F3BA80941CFB2F15003DC1BA /* GRDB-Bridging.h in Headers */ = {isa = PBXBuildFile; fileRef = F3BA7FF21CFB23DA003DC1BA /* GRDB-Bridging.h */; settings = {ATTRIBUTES = (Public, ); }; }; F3BA80951CFB2F18003DC1BA /* sqlite3.h in Headers */ = {isa = PBXBuildFile; fileRef = F3BA7FF01CFB23C9003DC1BA /* sqlite3.h */; settings = {ATTRIBUTES = (Public, ); }; }; F3BA80961CFB2F45003DC1BA /* libsqlitecustom.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F3BA7FF81CFB23E4003DC1BA /* libsqlitecustom.a */; }; F3BA80A01CFB2F6F003DC1BA /* GRDB.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3BA805A1CFB2BB2003DC1BA /* GRDB.framework */; }; @@ -694,14 +692,14 @@ containerPortal = DC3773EA19C8CBB3004FCF85 /* Project object */; proxyType = 1; remoteGlobalIDString = F3BA7FFD1CFB25E4003DC1BA; - remoteInfo = GRDBiOS; + remoteInfo = GRDBCustomSQLiteiOS; }; F3BA80A11CFB2F6F003DC1BA /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = DC3773EA19C8CBB3004FCF85 /* Project object */; proxyType = 1; remoteGlobalIDString = F3BA80591CFB2BB2003DC1BA; - remoteInfo = GRDBOSX; + remoteInfo = GRDBCustomSQLiteOSX; }; /* End PBXContainerItemProxy section */ @@ -1037,19 +1035,18 @@ DC3773F719C8CBB3004FCF85 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; DC3773F819C8CBB3004FCF85 /* GRDB.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GRDB.h; sourceTree = ""; }; DC37740419C8CBB3004FCF85 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - EED476F11CFD16FF0026A4EC /* GRDB-USER.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "GRDB-USER.h"; path = "SQLiteCustom/GRDB-USER.h"; sourceTree = ""; }; + EED476F11CFD16FF0026A4EC /* GRDBCustomSQLite-USER.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "GRDBCustomSQLite-USER.h"; path = "SQLiteCustom/GRDBCustomSQLite-USER.h"; sourceTree = ""; }; F3BA7FEE1CFB23B7003DC1BA /* GRDB.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = GRDB.xcconfig; path = SQLiteCustom/GRDB.xcconfig; sourceTree = ""; }; F3BA7FEF1CFB23BF003DC1BA /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; name = module.modulemap; path = SQLiteCustom/module.modulemap; sourceTree = ""; }; F3BA7FF01CFB23C9003DC1BA /* sqlite3.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = sqlite3.h; path = SQLiteCustom/src/sqlite3.h; sourceTree = ""; }; F3BA7FF11CFB23D3003DC1BA /* GRDB.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = GRDB.h; path = SQLiteCustom/GRDB.h; sourceTree = ""; }; - F3BA7FF21CFB23DA003DC1BA /* GRDB-Bridging.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "GRDB-Bridging.h"; path = "SQLiteCustom/GRDB-Bridging.h"; sourceTree = ""; }; F3BA7FF31CFB23E4003DC1BA /* SQLiteLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SQLiteLib.xcodeproj; path = SQLiteCustom/src/SQLiteLib.xcodeproj; sourceTree = ""; }; F3BA7FFE1CFB25E4003DC1BA /* GRDB.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GRDB.framework; sourceTree = BUILT_PRODUCTS_DIR; }; F3BA80411CFB2AD7003DC1BA /* GRDBiOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GRDBiOSTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; F3BA805A1CFB2BB2003DC1BA /* GRDB.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GRDB.framework; sourceTree = BUILT_PRODUCTS_DIR; }; F3BA809B1CFB2F6F003DC1BA /* GRDBOSXTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GRDBOSXTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - F3BA813A1CFB3402003DC1BA /* GRDB-USER.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "GRDB-USER.xcconfig"; path = "SQLiteCustom/GRDB-USER.xcconfig"; sourceTree = ""; }; - F3BA813B1CFB3770003DC1BA /* GRDB-Testing.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "GRDB-Testing.xcconfig"; path = "SQLiteCustom/GRDB-Testing.xcconfig"; sourceTree = ""; }; + F3BA813A1CFB3402003DC1BA /* GRDBCustomSQLite-USER.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "GRDBCustomSQLite-USER.xcconfig"; path = "SQLiteCustom/GRDBCustomSQLite-USER.xcconfig"; sourceTree = ""; }; + F3BA813B1CFB3770003DC1BA /* GRDBCustomSQLite-Testing.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "GRDBCustomSQLite-Testing.xcconfig"; path = "SQLiteCustom/GRDBCustomSQLite-Testing.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -1758,7 +1755,7 @@ isa = PBXGroup; children = ( DC37742D19C8CC90004FCF85 /* GRDB */, - F3BA7FED1CFB21F8003DC1BA /* GRDBCustom */, + F3BA7FED1CFB21F8003DC1BA /* GRDBCustomSQLite */, DC10500F19C904DD00D8CA30 /* Tests */, DC3773F419C8CBB3004FCF85 /* Products */, ); @@ -1820,26 +1817,25 @@ EED476F41CFD174D0026A4EC /* Customize */ = { isa = PBXGroup; children = ( - F3BA813A1CFB3402003DC1BA /* GRDB-USER.xcconfig */, - EED476F11CFD16FF0026A4EC /* GRDB-USER.h */, + F3BA813A1CFB3402003DC1BA /* GRDBCustomSQLite-USER.xcconfig */, + EED476F11CFD16FF0026A4EC /* GRDBCustomSQLite-USER.h */, ); name = Customize; sourceTree = ""; }; - F3BA7FED1CFB21F8003DC1BA /* GRDBCustom */ = { + F3BA7FED1CFB21F8003DC1BA /* GRDBCustomSQLite */ = { isa = PBXGroup; children = ( EED476F41CFD174D0026A4EC /* Customize */, F3BA7FEE1CFB23B7003DC1BA /* GRDB.xcconfig */, - F3BA813B1CFB3770003DC1BA /* GRDB-Testing.xcconfig */, + F3BA813B1CFB3770003DC1BA /* GRDBCustomSQLite-Testing.xcconfig */, 56C494421ED726C500CC72AF /* GRDBDeploymentTarget.xcconfig */, F3BA7FEF1CFB23BF003DC1BA /* module.modulemap */, F3BA7FF01CFB23C9003DC1BA /* sqlite3.h */, F3BA7FF11CFB23D3003DC1BA /* GRDB.h */, - F3BA7FF21CFB23DA003DC1BA /* GRDB-Bridging.h */, F3BA7FF31CFB23E4003DC1BA /* SQLiteLib.xcodeproj */, ); - name = GRDBCustom; + name = GRDBCustomSQLite; sourceTree = ""; }; F3BA7FF41CFB23E4003DC1BA /* Products */ = { @@ -1858,10 +1854,9 @@ buildActionMask = 2147483647; files = ( F3BA80381CFB2932003DC1BA /* GRDB.h in Headers */, - F3BA80391CFB2936003DC1BA /* GRDB-Bridging.h in Headers */, F3BA803A1CFB293A003DC1BA /* sqlite3.h in Headers */, 567DAF211EAB61ED00FC0928 /* grdb_config.h in Headers */, - EED476F31CFD172C0026A4EC /* GRDB-USER.h in Headers */, + EED476F31CFD172C0026A4EC /* GRDBCustomSQLite-USER.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1870,10 +1865,9 @@ buildActionMask = 2147483647; files = ( F3BA80931CFB2F13003DC1BA /* GRDB.h in Headers */, - F3BA80941CFB2F15003DC1BA /* GRDB-Bridging.h in Headers */, F3BA80951CFB2F18003DC1BA /* sqlite3.h in Headers */, 567DAF1E1EAB61ED00FC0928 /* grdb_config.h in Headers */, - EED476F21CFD17270026A4EC /* GRDB-USER.h in Headers */, + EED476F21CFD17270026A4EC /* GRDBCustomSQLite-USER.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1897,7 +1891,7 @@ EED9F6461CFE39D1004BA2B8 /* PBXTargetDependency */, ); name = GRDBiOS; - productName = GRDB; + productName = GRDBCustomSQLite; productReference = F3BA7FFE1CFB25E4003DC1BA /* GRDB.framework */; productType = "com.apple.product-type.framework"; }; @@ -1915,7 +1909,7 @@ F3BA80481CFB2AD7003DC1BA /* PBXTargetDependency */, ); name = GRDBiOSTests; - productName = GRDBiOSTests; + productName = GRDBCustomSQLiteiOSTests; productReference = F3BA80411CFB2AD7003DC1BA /* GRDBiOSTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; @@ -1936,7 +1930,7 @@ EED9F6481CFE39D7004BA2B8 /* PBXTargetDependency */, ); name = GRDBOSX; - productName = GRDB; + productName = GRDBCustomSQLite; productReference = F3BA805A1CFB2BB2003DC1BA /* GRDB.framework */; productType = "com.apple.product-type.framework"; }; @@ -1954,7 +1948,7 @@ F3BA80A21CFB2F6F003DC1BA /* PBXTargetDependency */, ); name = GRDBOSXTests; - productName = GRDBOSXTests; + productName = GRDBCustomSQLiteOSXTests; productReference = F3BA809B1CFB2F6F003DC1BA /* GRDBOSXTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; @@ -2101,15 +2095,15 @@ files = ( ); inputPaths = ( - "$(SRCROOT)/SQLiteCustom/GRDB-USER.xcconfig.example", - "$(SRCROOT)/SQLiteCustom/GRDB-USER.h.example", + "$(SRCROOT)/SQLiteCustom/GRDBCustomSQLite-USER.xcconfig.example", + "$(SRCROOT)/SQLiteCustom/GRDBCustomSQLite-USER.h.example", ); name = "Copy .example configuration files (if no USER customizations exist)"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "copiedfiles=false\nfor ((i=0; i < SCRIPT_INPUT_FILE_COUNT ; i++))\ndo\n INFILE=SCRIPT_INPUT_FILE_$i\n FILE=${!INFILE};\n OUTPUTFILE=${FILE%.example}\n echo \"${INFILE}=${FILE}\"\n if [ -f \"$FILE\" ]\n then\n if [ ! -f \"$OUTPUTFILE\" ];\n then\n echo \"Expected USER configuration file doesn't exist\"\n echo \"Copying .example file\"\n cp $FILE $OUTPUTFILE\n touch $OUTPUTFILE\n copiedfiles=true\n else\n echo \"USER Configuration file already exists: ${OUTPUTFILE}\"\n echo \"Skipping .example copy.\"\n fi\n else\n echo \"Missing input .example file: ${FILE}\"\n exit 1\n fi\ndone\n\nif [ \"$copiedfiles\" = true ] ; then\ntouch \"${SRCROOT}/SQLiteCustom/GRDB.xcconfig\"\ntouch \"${SRCROOT}/SQLiteCustom/GRDB-Testing.xcconfig\"\nsleep 1\nfi\n"; + shellScript = "copiedfiles=false\nfor ((i=0; i < SCRIPT_INPUT_FILE_COUNT ; i++))\ndo\n INFILE=SCRIPT_INPUT_FILE_$i\n FILE=${!INFILE};\n OUTPUTFILE=${FILE%.example}\n echo \"${INFILE}=${FILE}\"\n if [ -f \"$FILE\" ]\n then\n if [ ! -f \"$OUTPUTFILE\" ];\n then\n echo \"Expected USER configuration file doesn't exist\"\n echo \"Copying .example file\"\n cp $FILE $OUTPUTFILE\n touch $OUTPUTFILE\n copiedfiles=true\n else\n echo \"USER Configuration file already exists: ${OUTPUTFILE}\"\n echo \"Skipping .example copy.\"\n fi\n else\n echo \"Missing input .example file: ${FILE}\"\n exit 1\n fi\ndone\n\nif [ \"$copiedfiles\" = true ] ; then\ntouch \"${SRCROOT}/SQLiteCustom/GRDB.xcconfig\"\ntouch \"${SRCROOT}/SQLiteCustom/GRDBCustomSQLite-Testing.xcconfig\"\nsleep 1\nfi\n"; showEnvVarsInLog = 0; }; EED476F51CFD1A610026A4EC /* Copy .example configuration files (if no USER customizations exist) */ = { @@ -2118,15 +2112,15 @@ files = ( ); inputPaths = ( - "$(SRCROOT)/SQLiteCustom/GRDB-USER.xcconfig.example", - "$(SRCROOT)/SQLiteCustom/GRDB-USER.h.example", + "$(SRCROOT)/SQLiteCustom/GRDBCustomSQLite-USER.xcconfig.example", + "$(SRCROOT)/SQLiteCustom/GRDBCustomSQLite-USER.h.example", ); name = "Copy .example configuration files (if no USER customizations exist)"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "copiedfiles=false\nfor ((i=0; i < SCRIPT_INPUT_FILE_COUNT ; i++))\ndo\n INFILE=SCRIPT_INPUT_FILE_$i\n FILE=${!INFILE};\n OUTPUTFILE=${FILE%.example}\n echo \"${INFILE}=${FILE}\"\n if [ -f \"$FILE\" ]\n then\n if [ ! -f \"$OUTPUTFILE\" ];\n then\n echo \"Expected USER configuration file doesn't exist\"\n echo \"Copying .example file\"\n cp $FILE $OUTPUTFILE\n touch $OUTPUTFILE\n copiedfiles=true\n else\n echo \"USER Configuration file already exists: ${OUTPUTFILE}\"\n echo \"Skipping .example copy.\"\n fi\n else\n echo \"Missing input .example file: ${FILE}\"\n exit 1\n fi\ndone\n\nif [ \"$copiedfiles\" = true ] ; then\ntouch \"${SRCROOT}/SQLiteCustom/GRDB.xcconfig\"\ntouch \"${SRCROOT}/SQLiteCustom/GRDB-Testing.xcconfig\"\nsleep 1\nfi\n"; + shellScript = "copiedfiles=false\nfor ((i=0; i < SCRIPT_INPUT_FILE_COUNT ; i++))\ndo\n INFILE=SCRIPT_INPUT_FILE_$i\n FILE=${!INFILE};\n OUTPUTFILE=${FILE%.example}\n echo \"${INFILE}=${FILE}\"\n if [ -f \"$FILE\" ]\n then\n if [ ! -f \"$OUTPUTFILE\" ];\n then\n echo \"Expected USER configuration file doesn't exist\"\n echo \"Copying .example file\"\n cp $FILE $OUTPUTFILE\n touch $OUTPUTFILE\n copiedfiles=true\n else\n echo \"USER Configuration file already exists: ${OUTPUTFILE}\"\n echo \"Skipping .example copy.\"\n fi\n else\n echo \"Missing input .example file: ${FILE}\"\n exit 1\n fi\ndone\n\nif [ \"$copiedfiles\" = true ] ; then\ntouch \"${SRCROOT}/SQLiteCustom/GRDB.xcconfig\"\ntouch \"${SRCROOT}/SQLiteCustom/GRDBCustomSQLite-Testing.xcconfig\"\nsleep 1\nfi\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ @@ -2986,7 +2980,7 @@ }; F3BA804A1CFB2AD7003DC1BA /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F3BA813B1CFB3770003DC1BA /* GRDB-Testing.xcconfig */; + baseConfigurationReference = F3BA813B1CFB3770003DC1BA /* GRDBCustomSQLite-Testing.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; CLANG_ENABLE_OBJC_WEAK = YES; @@ -2995,7 +2989,7 @@ GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBiOSTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBCustomSQLite.GRDBCustomSQLiteiOSTests; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; }; @@ -3003,7 +2997,7 @@ }; F3BA804B1CFB2AD7003DC1BA /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F3BA813B1CFB3770003DC1BA /* GRDB-Testing.xcconfig */; + baseConfigurationReference = F3BA813B1CFB3770003DC1BA /* GRDBCustomSQLite-Testing.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; CLANG_ENABLE_OBJC_WEAK = YES; @@ -3013,7 +3007,7 @@ GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBiOSTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBCustomSQLite.GRDBCustomSQLiteiOSTests; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; @@ -3070,7 +3064,7 @@ }; F3BA80A41CFB2F6F003DC1BA /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F3BA813B1CFB3770003DC1BA /* GRDB-Testing.xcconfig */; + baseConfigurationReference = F3BA813B1CFB3770003DC1BA /* GRDBCustomSQLite-Testing.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; CLANG_ENABLE_OBJC_WEAK = YES; @@ -3080,7 +3074,7 @@ GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBOSXTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBCustomSQLiteOSXTests; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; }; @@ -3088,7 +3082,7 @@ }; F3BA80A51CFB2F6F003DC1BA /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F3BA813B1CFB3770003DC1BA /* GRDB-Testing.xcconfig */; + baseConfigurationReference = F3BA813B1CFB3770003DC1BA /* GRDBCustomSQLite-Testing.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; CLANG_ENABLE_OBJC_WEAK = YES; @@ -3099,7 +3093,7 @@ GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBOSXTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBCustomSQLiteOSXTests; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; diff --git a/Makefile b/Makefile index cb8379e99..131c09390 100644 --- a/Makefile +++ b/Makefile @@ -364,11 +364,11 @@ test_performance: # Target that setups SQLite custom builds with extra compilation options. SQLiteCustom: SQLiteCustom/src/sqlite3.h - echo '/* Makefile generated */' > SQLiteCustom/GRDB-USER.h - echo '#define SQLITE_ENABLE_PREUPDATE_HOOK' >> SQLiteCustom/GRDB-USER.h - echo '#define SQLITE_ENABLE_FTS5' >> SQLiteCustom/GRDB-USER.h - echo '// Makefile generated' > SQLiteCustom/GRDB-USER.xcconfig - echo 'CUSTOM_OTHER_SWIFT_FLAGS = -D SQLITE_ENABLE_PREUPDATE_HOOK -D SQLITE_ENABLE_FTS5' >> SQLiteCustom/GRDB-USER.xcconfig + echo '/* Makefile generated */' > SQLiteCustom/GRDBCustomSQLite-USER.h + echo '#define SQLITE_ENABLE_PREUPDATE_HOOK' >> SQLiteCustom/GRDBCustomSQLite-USER.h + echo '#define SQLITE_ENABLE_FTS5' >> SQLiteCustom/GRDBCustomSQLite-USER.h + echo '// Makefile generated' > SQLiteCustom/GRDBCustomSQLite-USER.xcconfig + echo 'CUSTOM_OTHER_SWIFT_FLAGS = -D SQLITE_ENABLE_PREUPDATE_HOOK -D SQLITE_ENABLE_FTS5' >> SQLiteCustom/GRDBCustomSQLite-USER.xcconfig echo '// Makefile generated' > SQLiteCustom/src/SQLiteLib-USER.xcconfig echo 'CUSTOM_SQLLIBRARY_CFLAGS = -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_FTS5' >> SQLiteCustom/src/SQLiteLib-USER.xcconfig diff --git a/SQLiteCustom/GRDB-Bridging.h b/SQLiteCustom/GRDB-Bridging.h deleted file mode 100755 index e69de29bb..000000000 diff --git a/SQLiteCustom/GRDB.h b/SQLiteCustom/GRDB.h index 10960dbad..f5f60f512 100755 --- a/SQLiteCustom/GRDB.h +++ b/SQLiteCustom/GRDB.h @@ -6,6 +6,5 @@ FOUNDATION_EXPORT double GRDB_VersionNumber; //! Project version string for GRDB. FOUNDATION_EXPORT const unsigned char GRDB_VersionString[]; -#import -#import +#import #import diff --git a/SQLiteCustom/GRDB.xcconfig b/SQLiteCustom/GRDB.xcconfig index 446389b19..bb0c76999 100755 --- a/SQLiteCustom/GRDB.xcconfig +++ b/SQLiteCustom/GRDB.xcconfig @@ -2,7 +2,7 @@ CUSTOM_OTHER_SWIFT_FLAGS= // do not modify #include "GRDBDeploymentTarget.xcconfig" // Build once to generate this file: -#include "GRDB-USER.xcconfig" +#include "GRDBCustomSQLite-USER.xcconfig" #include "src/SQLiteLib-USER.xcconfig" INFOPLIST_FILE = Support/Info.plist diff --git a/SQLiteCustom/GRDB-Testing.xcconfig b/SQLiteCustom/GRDBCustomSQLite-Testing.xcconfig similarity index 91% rename from SQLiteCustom/GRDB-Testing.xcconfig rename to SQLiteCustom/GRDBCustomSQLite-Testing.xcconfig index fe2eb4e42..62178e5d3 100755 --- a/SQLiteCustom/GRDB-Testing.xcconfig +++ b/SQLiteCustom/GRDBCustomSQLite-Testing.xcconfig @@ -5,7 +5,7 @@ CUSTOM_OTHER_SWIFT_FLAGS= // do not modify #include "GRDBDeploymentTarget.xcconfig" // Build once to generate this file: -#include "GRDB-USER.xcconfig" +#include "GRDBCustomSQLite-USER.xcconfig" #include "src/SQLiteLib-USER.xcconfig" OTHER_CFLAGS = -DUSING_BUILTIN_SQLITE -DGRDBCUSTOMSQLITE $(CUSTOM_SQLLIBRARY_CFLAGS) // Do not modify. diff --git a/SQLiteCustom/GRDB-USER.h.example b/SQLiteCustom/GRDBCustomSQLite-USER.h.example similarity index 86% rename from SQLiteCustom/GRDB-USER.h.example rename to SQLiteCustom/GRDBCustomSQLite-USER.h.example index d745e232a..5f2503ce9 100755 --- a/SQLiteCustom/GRDB-USER.h.example +++ b/SQLiteCustom/GRDBCustomSQLite-USER.h.example @@ -1,5 +1,5 @@ // DO NOT INCLUDE THIS FILE DIRECTLY -// INSTEAD, INCLUDE "GRDB.h" +// INSTEAD, INCLUDE "GRDBCustomSQLite.h" // // INSERT ANY ADDITIONAL SQLITE DEFINES HERE: diff --git a/SQLiteCustom/GRDB-USER.xcconfig.example b/SQLiteCustom/GRDBCustomSQLite-USER.xcconfig.example similarity index 82% rename from SQLiteCustom/GRDB-USER.xcconfig.example rename to SQLiteCustom/GRDBCustomSQLite-USER.xcconfig.example index 77da7a661..e7147e261 100755 --- a/SQLiteCustom/GRDB-USER.xcconfig.example +++ b/SQLiteCustom/GRDBCustomSQLite-USER.xcconfig.example @@ -2,7 +2,7 @@ // To compile SQLite with additional compilation options: // 1.) Add them to the "SQLiteLib-USER.xcconfig" in the SQLiteLib.xcodeproj // 2.) Add them to the CUSTOM_OTHER_SWIFT_FLAGS line below. -// 3.) Optionally add them to "GRDB-USER.h" to expose the appropriate SQLite APIs to framework consumers. +// 3.) Optionally add them to "GRDBCustomSQLite-USER.h" to expose the appropriate SQLite APIs to framework consumers. // // See the README.md file for more details. // diff --git a/Tests/CustomSQLite/CustomSQLite.xcodeproj/project.pbxproj b/Tests/CustomSQLite/CustomSQLite.xcodeproj/project.pbxproj index 69f215ed1..d74f142e8 100644 --- a/Tests/CustomSQLite/CustomSQLite.xcodeproj/project.pbxproj +++ b/Tests/CustomSQLite/CustomSQLite.xcodeproj/project.pbxproj @@ -7,48 +7,49 @@ objects = { /* Begin PBXBuildFile section */ - 562697E32438E07700502C22 /* GRDB.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 562697DA2438E05F00502C22 /* GRDB.framework */; }; 56F5F6C62349F11E00C4D9F7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F5F6C52349F11E00C4D9F7 /* AppDelegate.swift */; }; 56F5F6C82349F11E00C4D9F7 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F5F6C72349F11E00C4D9F7 /* ViewController.swift */; }; 56F5F6CA2349F11F00C4D9F7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 56F5F6C92349F11F00C4D9F7 /* Assets.xcassets */; }; 56F5F6CD2349F11F00C4D9F7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 56F5F6CB2349F11F00C4D9F7 /* Main.storyboard */; }; + 56F5F6E82349F26400C4D9F7 /* GRDB.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 56F5F6DE2349F22A00C4D9F7 /* GRDB.framework */; }; + 56F5F6E92349F26500C4D9F7 /* GRDB.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 56F5F6DE2349F22A00C4D9F7 /* GRDB.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 562697D92438E05F00502C22 /* PBXContainerItemProxy */ = { + 56F5F6DD2349F22A00C4D9F7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 562697D12438E05F00502C22 /* GRDBCustom.xcodeproj */; + containerPortal = 56F5F6D52349F22A00C4D9F7 /* GRDBCustom.xcodeproj */; proxyType = 2; remoteGlobalIDString = F3BA805A1CFB2BB2003DC1BA; - remoteInfo = GRDBOSX; + remoteInfo = GRDBCustomSQLiteOSX; }; - 562697DB2438E05F00502C22 /* PBXContainerItemProxy */ = { + 56F5F6DF2349F22A00C4D9F7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 562697D12438E05F00502C22 /* GRDBCustom.xcodeproj */; + containerPortal = 56F5F6D52349F22A00C4D9F7 /* GRDBCustom.xcodeproj */; proxyType = 2; remoteGlobalIDString = F3BA809B1CFB2F6F003DC1BA; - remoteInfo = GRDBOSXTests; + remoteInfo = GRDBCustomSQLiteOSXTests; }; - 562697DD2438E05F00502C22 /* PBXContainerItemProxy */ = { + 56F5F6E12349F22A00C4D9F7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 562697D12438E05F00502C22 /* GRDBCustom.xcodeproj */; + containerPortal = 56F5F6D52349F22A00C4D9F7 /* GRDBCustom.xcodeproj */; proxyType = 2; remoteGlobalIDString = F3BA7FFE1CFB25E4003DC1BA; - remoteInfo = GRDBiOS; + remoteInfo = GRDBCustomSQLiteiOS; }; - 562697DF2438E05F00502C22 /* PBXContainerItemProxy */ = { + 56F5F6E32349F22A00C4D9F7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 562697D12438E05F00502C22 /* GRDBCustom.xcodeproj */; + containerPortal = 56F5F6D52349F22A00C4D9F7 /* GRDBCustom.xcodeproj */; proxyType = 2; remoteGlobalIDString = F3BA80411CFB2AD7003DC1BA; - remoteInfo = GRDBiOSTests; + remoteInfo = GRDBCustomSQLiteiOSTests; }; - 562697E12438E06A00502C22 /* PBXContainerItemProxy */ = { + 56F5F6E52349F24D00C4D9F7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 562697D12438E05F00502C22 /* GRDBCustom.xcodeproj */; + containerPortal = 56F5F6D52349F22A00C4D9F7 /* GRDBCustom.xcodeproj */; proxyType = 1; remoteGlobalIDString = F3BA80591CFB2BB2003DC1BA; - remoteInfo = GRDBOSX; + remoteInfo = GRDBCustomSQLiteOSX; }; /* End PBXContainerItemProxy section */ @@ -59,6 +60,7 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( + 56F5F6E92349F26500C4D9F7 /* GRDB.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -66,7 +68,10 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 562697D12438E05F00502C22 /* GRDBCustom.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GRDBCustom.xcodeproj; path = ../../GRDBCustom.xcodeproj; sourceTree = ""; }; + 56E987D9243EF667005CFD0D /* GRDBCustomSQLite-INSTALL.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "GRDBCustomSQLite-INSTALL.sh"; sourceTree = ""; }; + 56E987DA243EF667005CFD0D /* SQLiteLib-USER.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "SQLiteLib-USER.xcconfig"; sourceTree = ""; }; + 56E987DB243EF667005CFD0D /* GRDBCustomSQLite-USER.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "GRDBCustomSQLite-USER.xcconfig"; sourceTree = ""; }; + 56E987DC243EF667005CFD0D /* GRDBCustomSQLite-USER.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "GRDBCustomSQLite-USER.h"; sourceTree = ""; }; 56F5F6C22349F11E00C4D9F7 /* CustomSQLite.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomSQLite.app; sourceTree = BUILT_PRODUCTS_DIR; }; 56F5F6C52349F11E00C4D9F7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 56F5F6C72349F11E00C4D9F7 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; @@ -74,6 +79,7 @@ 56F5F6CC2349F11F00C4D9F7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 56F5F6CE2349F11F00C4D9F7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56F5F6CF2349F11F00C4D9F7 /* CustomSQLite.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = CustomSQLite.entitlements; sourceTree = ""; }; + 56F5F6D52349F22A00C4D9F7 /* GRDBCustom.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GRDBCustom.xcodeproj; path = ../../GRDBCustom.xcodeproj; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -81,28 +87,29 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 562697E32438E07700502C22 /* GRDB.framework in Frameworks */, + 56F5F6E82349F26400C4D9F7 /* GRDB.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 562697D22438E05F00502C22 /* Products */ = { + 56E987D8243EF667005CFD0D /* GRDBCustomSQLite */ = { isa = PBXGroup; children = ( - 562697DA2438E05F00502C22 /* GRDB.framework */, - 562697DC2438E05F00502C22 /* GRDBOSXTests.xctest */, - 562697DE2438E05F00502C22 /* GRDB.framework */, - 562697E02438E05F00502C22 /* GRDBiOSTests.xctest */, + 56E987D9243EF667005CFD0D /* GRDBCustomSQLite-INSTALL.sh */, + 56E987DA243EF667005CFD0D /* SQLiteLib-USER.xcconfig */, + 56E987DB243EF667005CFD0D /* GRDBCustomSQLite-USER.xcconfig */, + 56E987DC243EF667005CFD0D /* GRDBCustomSQLite-USER.h */, ); - name = Products; + path = GRDBCustomSQLite; sourceTree = ""; }; 56F5F6B92349F11E00C4D9F7 = { isa = PBXGroup; children = ( - 562697D12438E05F00502C22 /* GRDBCustom.xcodeproj */, + 56F5F6D52349F22A00C4D9F7 /* GRDBCustom.xcodeproj */, + 56E987D8243EF667005CFD0D /* GRDBCustomSQLite */, 56F5F6C42349F11E00C4D9F7 /* CustomSQLite */, 56F5F6C32349F11E00C4D9F7 /* Products */, 56F5F6E72349F26400C4D9F7 /* Frameworks */, @@ -130,6 +137,17 @@ path = CustomSQLite; sourceTree = ""; }; + 56F5F6D62349F22A00C4D9F7 /* Products */ = { + isa = PBXGroup; + children = ( + 56F5F6DE2349F22A00C4D9F7 /* GRDB.framework */, + 56F5F6E02349F22A00C4D9F7 /* GRDBOSXTests.xctest */, + 56F5F6E22349F22A00C4D9F7 /* GRDB.framework */, + 56F5F6E42349F22A00C4D9F7 /* GRDBiOSTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; 56F5F6E72349F26400C4D9F7 /* Frameworks */ = { isa = PBXGroup; children = ( @@ -152,7 +170,7 @@ buildRules = ( ); dependencies = ( - 562697E22438E06A00502C22 /* PBXTargetDependency */, + 56F5F6E62349F24D00C4D9F7 /* PBXTargetDependency */, ); name = CustomSQLite; productName = CustomSQLite; @@ -188,8 +206,8 @@ projectDirPath = ""; projectReferences = ( { - ProductGroup = 562697D22438E05F00502C22 /* Products */; - ProjectRef = 562697D12438E05F00502C22 /* GRDBCustom.xcodeproj */; + ProductGroup = 56F5F6D62349F22A00C4D9F7 /* Products */; + ProjectRef = 56F5F6D52349F22A00C4D9F7 /* GRDBCustom.xcodeproj */; }, ); projectRoot = ""; @@ -200,32 +218,32 @@ /* End PBXProject section */ /* Begin PBXReferenceProxy section */ - 562697DA2438E05F00502C22 /* GRDB.framework */ = { + 56F5F6DE2349F22A00C4D9F7 /* GRDB.framework */ = { isa = PBXReferenceProxy; fileType = wrapper.framework; path = GRDB.framework; - remoteRef = 562697D92438E05F00502C22 /* PBXContainerItemProxy */; + remoteRef = 56F5F6DD2349F22A00C4D9F7 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - 562697DC2438E05F00502C22 /* GRDBOSXTests.xctest */ = { + 56F5F6E02349F22A00C4D9F7 /* GRDBOSXTests.xctest */ = { isa = PBXReferenceProxy; fileType = wrapper.cfbundle; path = GRDBOSXTests.xctest; - remoteRef = 562697DB2438E05F00502C22 /* PBXContainerItemProxy */; + remoteRef = 56F5F6DF2349F22A00C4D9F7 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - 562697DE2438E05F00502C22 /* GRDB.framework */ = { + 56F5F6E22349F22A00C4D9F7 /* GRDB.framework */ = { isa = PBXReferenceProxy; fileType = wrapper.framework; path = GRDB.framework; - remoteRef = 562697DD2438E05F00502C22 /* PBXContainerItemProxy */; + remoteRef = 56F5F6E12349F22A00C4D9F7 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - 562697E02438E05F00502C22 /* GRDBiOSTests.xctest */ = { + 56F5F6E42349F22A00C4D9F7 /* GRDBiOSTests.xctest */ = { isa = PBXReferenceProxy; fileType = wrapper.cfbundle; path = GRDBiOSTests.xctest; - remoteRef = 562697DF2438E05F00502C22 /* PBXContainerItemProxy */; + remoteRef = 56F5F6E32349F22A00C4D9F7 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXReferenceProxy section */ @@ -255,10 +273,10 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - 562697E22438E06A00502C22 /* PBXTargetDependency */ = { + 56F5F6E62349F24D00C4D9F7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = GRDBOSX; - targetProxy = 562697E12438E06A00502C22 /* PBXContainerItemProxy */; + name = GRDBCustomSQLiteOSX; + targetProxy = 56F5F6E52349F24D00C4D9F7 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ diff --git a/Tests/CustomSQLite/CustomSQLite.xcodeproj/xcshareddata/xcschemes/CustomSQLite.xcscheme b/Tests/CustomSQLite/CustomSQLite.xcodeproj/xcshareddata/xcschemes/CustomSQLite.xcscheme index 2d0ed89c7..440df0bfc 100644 --- a/Tests/CustomSQLite/CustomSQLite.xcodeproj/xcshareddata/xcschemes/CustomSQLite.xcscheme +++ b/Tests/CustomSQLite/CustomSQLite.xcodeproj/xcshareddata/xcschemes/CustomSQLite.xcscheme @@ -10,7 +10,7 @@ ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction"> + scriptText = "source "${PROJECT_DIR}/GRDBCustomSQLite/GRDBCustomSQLite-INSTALL.sh" ">