Renamed customizable files to <file>-USER, added .example files, preserve user customizations.

Added .example files.
Added build phase script to copy .example files if user configuration
files are not already present.
This commit is contained in:
swiftlyfalling committed 2016-05-30 21:16:36 -04:00
1 parent ffa2858d82
commit cb8331f213
7 files changed
+86 -8

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
#include "GRDBCustomSQLite-Custom.xcconfig"
// Build once to generate this file:
#include "GRDBCustomSQLite-USER.xcconfig"
#include "../SQLiteCustom/src/SQLiteLib-Custom.xcconfig"
INFOPLIST_FILE = Support/Info.plist
@@ -1,7 +1,8 @@
// DO NOT MODIFY.
// This config file is used to expose other settings to the test bundle.
#include "GRDBCustomSQLite-Custom.xcconfig"
// Build once to generate this file:
#include "GRDBCustomSQLite-USER.xcconfig"
#include "../SQLiteCustom/src/SQLiteLib-Custom.xcconfig"
OTHER_CFLAGS = -DUSING_BUILTIN_SQLITE -DUSING_CUSTOMSQLITE $(CUSTOM_SQLLIBRARY_CFLAGS) // Do not modify.
+9
View File
@@ -0,0 +1,9 @@
// DO NOT INCLUDE THIS FILE DIRECTLY
// INSTEAD, INCLUDE "GRDBCustomSQLite.h"
//
// INSERT ANY ADDITIONAL SQLITE DEFINES HERE
//
#define SQLITE_ENABLE_PREUPDATE_HOOK
// -----------------------------------------
@@ -2,7 +2,7 @@
// To compile SQLite with additional compilation options:
// 1.) Add them to the "SQLiteLib-Custom.xcconfig" in the SQLiteLib.xcodeproj
// 2.) Add them to the CUSTOM_OTHER_SWIFT_FLAGS line below.
// 3.) Optionally add them to "GRDBCustomSQLite.h" to expose the appropriate SQLite APIs to framework consumers.
// 3.) Optionally add them to "GRDBCustomSQLite-Custom.h" to expose the appropriate SQLite APIs to framework consumers.
//
// How to Convert OTHER_CFLAGS to OTHER_SWIFT_FLAGS:
// Add a space after the "-D"
+16
View File
@@ -0,0 +1,16 @@
// To compile SQLite with additional compilation options:
// 1.) Add them to the "SQLiteLib-Custom.xcconfig" in the SQLiteLib.xcodeproj
// 2.) Add them to the CUSTOM_OTHER_SWIFT_FLAGS line below.
// 3.) Optionally add them to "GRDBCustomSQLite-USER.h" to expose the appropriate SQLite APIs to framework consumers.
//
// How to Convert OTHER_CFLAGS to OTHER_SWIFT_FLAGS:
// Add a space after the "-D"
//
// Example:
// OTHER_CFLAGS = -DSQLITE_ENABLE_PREUPDATE_HOOK
// becomes
// CUSTOM_OTHER_SWIFT_FLAGS = -D SQLITE_ENABLE_PREUPDATE_HOOK
CUSTOM_OTHER_SWIFT_FLAGS = -D SQLITE_ENABLE_PREUPDATE_HOOK
+1 -3
View File
@@ -6,8 +6,6 @@ FOUNDATION_EXPORT double GRDB_VersionNumber;
//! Project version string for GRDB.
FOUNDATION_EXPORT const unsigned char GRDB_VersionString[];
// INSERT ANY ADDITIONAL SQLITE DEFINES HERE
#define SQLITE_ENABLE_PREUPDATE_HOOK
// -----------------------------------------
#import <GRDBCustomSQLite/GRDBCustomSQLite-USER.h>
#import <GRDBCustomSQLite/GRDBCustomSQLite-Bridging.h>
#import <GRDBCustomSQLite/sqlite3.h>