Skip to content

Commit 7418c3b

Browse files
committed
Merge pull request #385 from acrookston/watchos-xcode-7-3
WatchOS support
2 parents 7139feb + 5d09ab2 commit 7418c3b

File tree

3 files changed

+124
-0
lines changed

3 files changed

+124
-0
lines changed

CocoaPods/watchos.modulemap

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
framework module SQLite {
2+
umbrella header "SQLite.h"
3+
4+
module armv7k {
5+
header "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/usr/include/sqlite3.h"
6+
requires armv7k
7+
}
8+
9+
module x86 {
10+
header "/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/usr/include/sqlite3.h"
11+
requires x86
12+
}
13+
14+
link "sqlite3"
15+
16+
export *
17+
module * { export * }
18+
}

SQLite.swift.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ Pod::Spec.new do |s|
2323
s.ios.deployment_target = "8.0"
2424
s.tvos.deployment_target = "9.0"
2525
s.osx.deployment_target = "10.9"
26+
s.watchos.deployment_target = "2.0"
2627

2728
s.ios.module_map = "CocoaPods/ios.modulemap"
2829
s.tvos.module_map = "CocoaPods/tvos.modulemap"
2930
s.osx.module_map = "CocoaPods/osx.modulemap"
31+
s.watchos.module_map = "CocoaPods/watchos.modulemap"
3032

3133
s.libraries = 'sqlite3'
3234
s.source_files = 'SQLite/**/*.{c,h,m,swift}'

SQLite.xcodeproj/project.pbxproj

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
03A65E5A1C6BB0F50062603F /* SQLite.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SQLite.framework; sourceTree = BUILT_PRODUCTS_DIR; };
155155
03A65E631C6BB0F60062603F /* SQLiteTests tvOS.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "SQLiteTests tvOS.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
156156
03A65E961C6BB3210062603F /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib/libsqlite3.tbd; sourceTree = DEVELOPER_DIR; };
157+
A121AC451CA35C79005A31D1 /* SQLite.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SQLite.framework; sourceTree = BUILT_PRODUCTS_DIR; };
157158
EE247AD31C3F04ED00AE3E12 /* SQLite.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SQLite.framework; sourceTree = BUILT_PRODUCTS_DIR; };
158159
EE247AD61C3F04ED00AE3E12 /* SQLite.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQLite.h; sourceTree = "<group>"; };
159160
EE247AD81C3F04ED00AE3E12 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -226,6 +227,13 @@
226227
);
227228
runOnlyForDeploymentPostprocessing = 0;
228229
};
230+
A121AC411CA35C79005A31D1 /* Frameworks */ = {
231+
isa = PBXFrameworksBuildPhase;
232+
buildActionMask = 2147483647;
233+
files = (
234+
);
235+
runOnlyForDeploymentPostprocessing = 0;
236+
};
229237
EE247ACF1C3F04ED00AE3E12 /* Frameworks */ = {
230238
isa = PBXFrameworksBuildPhase;
231239
buildActionMask = 2147483647;
@@ -280,6 +288,7 @@
280288
EE247B451C3F3ED000AE3E12 /* SQLiteTests Mac.xctest */,
281289
03A65E5A1C6BB0F50062603F /* SQLite.framework */,
282290
03A65E631C6BB0F60062603F /* SQLiteTests tvOS.xctest */,
291+
A121AC451CA35C79005A31D1 /* SQLite.framework */,
283292
);
284293
name = Products;
285294
sourceTree = "<group>";
@@ -409,6 +418,13 @@
409418
);
410419
runOnlyForDeploymentPostprocessing = 0;
411420
};
421+
A121AC421CA35C79005A31D1 /* Headers */ = {
422+
isa = PBXHeadersBuildPhase;
423+
buildActionMask = 2147483647;
424+
files = (
425+
);
426+
runOnlyForDeploymentPostprocessing = 0;
427+
};
412428
EE247AD01C3F04ED00AE3E12 /* Headers */ = {
413429
isa = PBXHeadersBuildPhase;
414430
buildActionMask = 2147483647;
@@ -470,6 +486,24 @@
470486
productReference = 03A65E631C6BB0F60062603F /* SQLiteTests tvOS.xctest */;
471487
productType = "com.apple.product-type.bundle.unit-test";
472488
};
489+
A121AC441CA35C79005A31D1 /* SQLite watchOS */ = {
490+
isa = PBXNativeTarget;
491+
buildConfigurationList = A121AC4C1CA35C79005A31D1 /* Build configuration list for PBXNativeTarget "SQLite watchOS" */;
492+
buildPhases = (
493+
A121AC401CA35C79005A31D1 /* Sources */,
494+
A121AC411CA35C79005A31D1 /* Frameworks */,
495+
A121AC421CA35C79005A31D1 /* Headers */,
496+
A121AC431CA35C79005A31D1 /* Resources */,
497+
);
498+
buildRules = (
499+
);
500+
dependencies = (
501+
);
502+
name = "SQLite watchOS";
503+
productName = "SQLite watchOS";
504+
productReference = A121AC451CA35C79005A31D1 /* SQLite.framework */;
505+
productType = "com.apple.product-type.framework";
506+
};
473507
EE247AD21C3F04ED00AE3E12 /* SQLite iOS */ = {
474508
isa = PBXNativeTarget;
475509
buildConfigurationList = EE247AE71C3F04ED00AE3E12 /* Build configuration list for PBXNativeTarget "SQLite iOS" */;
@@ -557,6 +591,9 @@
557591
03A65E621C6BB0F60062603F = {
558592
CreatedOnToolsVersion = 7.2;
559593
};
594+
A121AC441CA35C79005A31D1 = {
595+
CreatedOnToolsVersion = 7.3;
596+
};
560597
EE247AD21C3F04ED00AE3E12 = {
561598
CreatedOnToolsVersion = 7.2;
562599
};
@@ -589,6 +626,7 @@
589626
EE247B441C3F3ED000AE3E12 /* SQLiteTests Mac */,
590627
03A65E591C6BB0F50062603F /* SQLite tvOS */,
591628
03A65E621C6BB0F60062603F /* SQLiteTests tvOS */,
629+
A121AC441CA35C79005A31D1 /* SQLite watchOS */,
592630
);
593631
};
594632
/* End PBXProject section */
@@ -608,6 +646,13 @@
608646
);
609647
runOnlyForDeploymentPostprocessing = 0;
610648
};
649+
A121AC431CA35C79005A31D1 /* Resources */ = {
650+
isa = PBXResourcesBuildPhase;
651+
buildActionMask = 2147483647;
652+
files = (
653+
);
654+
runOnlyForDeploymentPostprocessing = 0;
655+
};
611656
EE247AD11C3F04ED00AE3E12 /* Resources */ = {
612657
isa = PBXResourcesBuildPhase;
613658
buildActionMask = 2147483647;
@@ -686,6 +731,13 @@
686731
);
687732
runOnlyForDeploymentPostprocessing = 0;
688733
};
734+
A121AC401CA35C79005A31D1 /* Sources */ = {
735+
isa = PBXSourcesBuildPhase;
736+
buildActionMask = 2147483647;
737+
files = (
738+
);
739+
runOnlyForDeploymentPostprocessing = 0;
740+
};
689741
EE247ACE1C3F04ED00AE3E12 /* Sources */ = {
690742
isa = PBXSourcesBuildPhase;
691743
buildActionMask = 2147483647;
@@ -861,6 +913,48 @@
861913
};
862914
name = Release;
863915
};
916+
A121AC4A1CA35C79005A31D1 /* Debug */ = {
917+
isa = XCBuildConfiguration;
918+
buildSettings = {
919+
APPLICATION_EXTENSION_API_ONLY = YES;
920+
CLANG_ANALYZER_NONNULL = YES;
921+
DEFINES_MODULE = YES;
922+
DYLIB_COMPATIBILITY_VERSION = 1;
923+
DYLIB_CURRENT_VERSION = 1;
924+
DYLIB_INSTALL_NAME_BASE = "@rpath";
925+
INFOPLIST_FILE = SQLite/Info.plist;
926+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
927+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
928+
PRODUCT_BUNDLE_IDENTIFIER = com.stephencelis.SQLite;
929+
PRODUCT_NAME = SQLite;
930+
SDKROOT = watchos;
931+
SKIP_INSTALL = YES;
932+
TARGETED_DEVICE_FAMILY = 4;
933+
WATCHOS_DEPLOYMENT_TARGET = 2.2;
934+
};
935+
name = Debug;
936+
};
937+
A121AC4B1CA35C79005A31D1 /* Release */ = {
938+
isa = XCBuildConfiguration;
939+
buildSettings = {
940+
APPLICATION_EXTENSION_API_ONLY = YES;
941+
CLANG_ANALYZER_NONNULL = YES;
942+
DEFINES_MODULE = YES;
943+
DYLIB_COMPATIBILITY_VERSION = 1;
944+
DYLIB_CURRENT_VERSION = 1;
945+
DYLIB_INSTALL_NAME_BASE = "@rpath";
946+
INFOPLIST_FILE = SQLite/Info.plist;
947+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
948+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
949+
PRODUCT_BUNDLE_IDENTIFIER = com.stephencelis.SQLite;
950+
PRODUCT_NAME = SQLite;
951+
SDKROOT = watchos;
952+
SKIP_INSTALL = YES;
953+
TARGETED_DEVICE_FAMILY = 4;
954+
WATCHOS_DEPLOYMENT_TARGET = 2.2;
955+
};
956+
name = Release;
957+
};
864958
EE247AE51C3F04ED00AE3E12 /* Debug */ = {
865959
isa = XCBuildConfiguration;
866960
buildSettings = {
@@ -1099,6 +1193,7 @@
10991193
03A65E6C1C6BB0F60062603F /* Release */,
11001194
);
11011195
defaultConfigurationIsVisible = 0;
1196+
defaultConfigurationName = Release;
11021197
};
11031198
03A65E701C6BB0F60062603F /* Build configuration list for PBXNativeTarget "SQLiteTests tvOS" */ = {
11041199
isa = XCConfigurationList;
@@ -1107,6 +1202,15 @@
11071202
03A65E6E1C6BB0F60062603F /* Release */,
11081203
);
11091204
defaultConfigurationIsVisible = 0;
1205+
defaultConfigurationName = Release;
1206+
};
1207+
A121AC4C1CA35C79005A31D1 /* Build configuration list for PBXNativeTarget "SQLite watchOS" */ = {
1208+
isa = XCConfigurationList;
1209+
buildConfigurations = (
1210+
A121AC4A1CA35C79005A31D1 /* Debug */,
1211+
A121AC4B1CA35C79005A31D1 /* Release */,
1212+
);
1213+
defaultConfigurationIsVisible = 0;
11101214
};
11111215
EE247ACD1C3F04ED00AE3E12 /* Build configuration list for PBXProject "SQLite" */ = {
11121216
isa = XCConfigurationList;

0 commit comments

Comments
 (0)