mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
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:
1 parent
ffa2858d82
commit
cb8331f213
7 files changed
+86
-8
No files matched your search
@@ -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.
|
||||
|
||||
Executable
+9
@@ -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
|
||||
// -----------------------------------------
|
||||
|
||||
+1
-1
@@ -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
@@ -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
|
||||
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user