Restructure directory for command line build
This commit is contained in:
29
KissMeme/Package.swift
Normal file
29
KissMeme/Package.swift
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// swift-tools-version: 5.8
|
||||||
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
|
import PackageDescription
|
||||||
|
|
||||||
|
let package = Package(
|
||||||
|
name: "KissMeme",
|
||||||
|
platforms: [
|
||||||
|
.macOS(.v13), .iOS(.v14), .tvOS(.v14)
|
||||||
|
],
|
||||||
|
products: [
|
||||||
|
.library(
|
||||||
|
name: "KissMeme",
|
||||||
|
targets: ["KissMeme"]),
|
||||||
|
],
|
||||||
|
dependencies: [
|
||||||
|
.package(name: "kissdb", path: "../kissdb"),
|
||||||
|
],
|
||||||
|
targets: [
|
||||||
|
.target(
|
||||||
|
name: "KissMeme",
|
||||||
|
dependencies: ["kissdb"],
|
||||||
|
path: "Sources"),
|
||||||
|
.testTarget(
|
||||||
|
name: "KissMemeTests",
|
||||||
|
dependencies: ["KissMeme"],
|
||||||
|
path: "Tests"),
|
||||||
|
]
|
||||||
|
)
|
||||||
@@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if !XCODE_BUILD
|
||||||
|
import kissdb
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
public enum KissDBError: Error {
|
public enum KissDBError: Error {
|
||||||
@@ -15,4 +15,4 @@ FOUNDATION_EXPORT const unsigned char KissMemeVersionString[];
|
|||||||
|
|
||||||
// In this header, you should import all the public headers of your framework using statements like #import <KissMeme/PublicHeader.h>
|
// In this header, you should import all the public headers of your framework using statements like #import <KissMeme/PublicHeader.h>
|
||||||
|
|
||||||
#import <KissMeme/kiss-db.h>
|
#import <KissMeme/kissdb.h>
|
||||||
33
kissdb/Package.swift
Normal file
33
kissdb/Package.swift
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
// swift-tools-version: 5.8
|
||||||
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
|
import PackageDescription
|
||||||
|
|
||||||
|
let package = Package(
|
||||||
|
name: "kissdb",
|
||||||
|
platforms: [
|
||||||
|
.macOS(.v13), .iOS(.v14), .tvOS(.v14)
|
||||||
|
],
|
||||||
|
products: [
|
||||||
|
.library(
|
||||||
|
name: "kissdb",
|
||||||
|
type: .static,
|
||||||
|
targets: ["kissdb"]),
|
||||||
|
],
|
||||||
|
dependencies: [
|
||||||
|
],
|
||||||
|
targets: [
|
||||||
|
.target(
|
||||||
|
name: "kissdb",
|
||||||
|
path: "Sources",
|
||||||
|
sources: [
|
||||||
|
"kissdb/kissdb.c",
|
||||||
|
"liblmdb/midl.c",
|
||||||
|
"liblmdb/mdb.c",
|
||||||
|
],
|
||||||
|
publicHeadersPath: "kissdb",
|
||||||
|
cSettings: [
|
||||||
|
.headerSearchPath("liblmdb")
|
||||||
|
]),
|
||||||
|
]
|
||||||
|
)
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// kiss-db.c
|
// kissdb.c
|
||||||
// kiss-lmdb
|
// kissdb
|
||||||
//
|
//
|
||||||
// Created by ened-book-m1 on 2023/05/27.
|
// Created by ened-book-m1 on 2023/05/27.
|
||||||
//
|
//
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
//#include <fcntl.h>
|
//#include <fcntl.h>
|
||||||
|
|
||||||
#include "kiss-db.h"
|
#include "kissdb.h"
|
||||||
#include "lmdb.h"
|
#include "lmdb.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// kiss-db.h
|
// kissdb.h
|
||||||
// kiss-lmdb
|
// kissdb
|
||||||
//
|
//
|
||||||
// Created by ened-book-m1 on 2023/05/27.
|
// Created by ened-book-m1 on 2023/05/27.
|
||||||
//
|
//
|
||||||
@@ -9,23 +9,16 @@
|
|||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
348168262A2E478F00A50BD3 /* KissMeme.swift in Sources */ = {isa = PBXBuildFile; fileRef = 348168252A2E478F00A50BD3 /* KissMeme.swift */; };
|
348168262A2E478F00A50BD3 /* KissMeme.swift in Sources */ = {isa = PBXBuildFile; fileRef = 348168252A2E478F00A50BD3 /* KissMeme.swift */; };
|
||||||
348168282A2E4B7700A50BD3 /* KissDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = 348168272A2E4B7700A50BD3 /* KissDB.swift */; };
|
348168282A2E4B7700A50BD3 /* KissDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = 348168272A2E4B7700A50BD3 /* KissDB.swift */; };
|
||||||
348168322A2EC2A200A50BD3 /* kiss-db.h in Headers */ = {isa = PBXBuildFile; fileRef = 348168312A2EC2A200A50BD3 /* kiss-db.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
||||||
348168332A2EC3AC00A50BD3 /* libkiss-db.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 348168302A2EC26F00A50BD3 /* libkiss-db.a */; };
|
|
||||||
348168412A2EE0C600A50BD3 /* KissMemeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 348168402A2EE0C600A50BD3 /* KissMemeTests.swift */; };
|
348168412A2EE0C600A50BD3 /* KissMemeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 348168402A2EE0C600A50BD3 /* KissMemeTests.swift */; };
|
||||||
348168422A2EE0C600A50BD3 /* KissMeme.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 349942482A217D85009457A4 /* KissMeme.framework */; };
|
348168422A2EE0C600A50BD3 /* KissMeme.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 349942482A217D85009457A4 /* KissMeme.framework */; };
|
||||||
3481684B2A2F961500A50BD3 /* CString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3481684A2A2F961500A50BD3 /* CString.swift */; };
|
3481684B2A2F961500A50BD3 /* CString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3481684A2A2F961500A50BD3 /* CString.swift */; };
|
||||||
3499424D2A217D85009457A4 /* KissMeme.docc in Sources */ = {isa = PBXBuildFile; fileRef = 3499424C2A217D85009457A4 /* KissMeme.docc */; };
|
3499424D2A217D85009457A4 /* KissMeme.docc in Sources */ = {isa = PBXBuildFile; fileRef = 3499424C2A217D85009457A4 /* KissMeme.docc */; };
|
||||||
349942592A217D85009457A4 /* KissMeme.h in Headers */ = {isa = PBXBuildFile; fileRef = 3499424B2A217D85009457A4 /* KissMeme.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
34F82A8C2CD3FC3C00CD1688 /* KissMeme.h in Headers */ = {isa = PBXBuildFile; fileRef = 34F82A882CD3FC3C00CD1688 /* KissMeme.h */; settings = {ATTRIBUTES = (Private, ); }; };
|
||||||
|
34F82A8E2CD3FC6D00CD1688 /* kissdb.h in Headers */ = {isa = PBXBuildFile; fileRef = 34F82A8D2CD3FC6D00CD1688 /* kissdb.h */; settings = {ATTRIBUTES = (Private, ); }; };
|
||||||
|
34F82A912CD3FCA500CD1688 /* libkissdb.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 34F82A872CD3FC0200CD1688 /* libkissdb.a */; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
/* Begin PBXContainerItemProxy section */
|
/* Begin PBXContainerItemProxy section */
|
||||||
3481682F2A2EC26F00A50BD3 /* PBXContainerItemProxy */ = {
|
|
||||||
isa = PBXContainerItemProxy;
|
|
||||||
containerPortal = 3481682B2A2EC26F00A50BD3 /* kiss-db.xcodeproj */;
|
|
||||||
proxyType = 2;
|
|
||||||
remoteGlobalIDString = 3499426B2A217DBE009457A4;
|
|
||||||
remoteInfo = "kiss-db";
|
|
||||||
};
|
|
||||||
348168432A2EE0C600A50BD3 /* PBXContainerItemProxy */ = {
|
348168432A2EE0C600A50BD3 /* PBXContainerItemProxy */ = {
|
||||||
isa = PBXContainerItemProxy;
|
isa = PBXContainerItemProxy;
|
||||||
containerPortal = 3499423F2A217D85009457A4 /* Project object */;
|
containerPortal = 3499423F2A217D85009457A4 /* Project object */;
|
||||||
@@ -33,19 +26,33 @@
|
|||||||
remoteGlobalIDString = 349942472A217D85009457A4;
|
remoteGlobalIDString = 349942472A217D85009457A4;
|
||||||
remoteInfo = KissMeme;
|
remoteInfo = KissMeme;
|
||||||
};
|
};
|
||||||
|
34F82A862CD3FC0200CD1688 /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 34AEFC2D2CD14D5600696E0E /* kissdb.xcodeproj */;
|
||||||
|
proxyType = 2;
|
||||||
|
remoteGlobalIDString = 3499426B2A217DBE009457A4;
|
||||||
|
remoteInfo = kissdb;
|
||||||
|
};
|
||||||
|
34F82A8F2CD3FC9C00CD1688 /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 34AEFC2D2CD14D5600696E0E /* kissdb.xcodeproj */;
|
||||||
|
proxyType = 1;
|
||||||
|
remoteGlobalIDString = 3499426A2A217DBE009457A4;
|
||||||
|
remoteInfo = kissdb;
|
||||||
|
};
|
||||||
/* End PBXContainerItemProxy section */
|
/* End PBXContainerItemProxy section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
348168252A2E478F00A50BD3 /* KissMeme.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KissMeme.swift; sourceTree = "<group>"; };
|
348168252A2E478F00A50BD3 /* KissMeme.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KissMeme.swift; sourceTree = "<group>"; };
|
||||||
348168272A2E4B7700A50BD3 /* KissDB.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KissDB.swift; sourceTree = "<group>"; };
|
348168272A2E4B7700A50BD3 /* KissDB.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KissDB.swift; sourceTree = "<group>"; };
|
||||||
3481682B2A2EC26F00A50BD3 /* kiss-db.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "kiss-db.xcodeproj"; path = "kiss-db/kiss-db.xcodeproj"; sourceTree = "<group>"; };
|
|
||||||
348168312A2EC2A200A50BD3 /* kiss-db.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "kiss-db.h"; path = "kiss-db/kiss-db/kiss-db.h"; sourceTree = SOURCE_ROOT; };
|
|
||||||
3481683E2A2EE0C600A50BD3 /* KissMemeTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KissMemeTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
3481683E2A2EE0C600A50BD3 /* KissMemeTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KissMemeTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
348168402A2EE0C600A50BD3 /* KissMemeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KissMemeTests.swift; sourceTree = "<group>"; };
|
348168402A2EE0C600A50BD3 /* KissMemeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KissMemeTests.swift; sourceTree = "<group>"; };
|
||||||
3481684A2A2F961500A50BD3 /* CString.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CString.swift; sourceTree = "<group>"; };
|
3481684A2A2F961500A50BD3 /* CString.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CString.swift; sourceTree = "<group>"; };
|
||||||
349942482A217D85009457A4 /* KissMeme.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = KissMeme.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
349942482A217D85009457A4 /* KissMeme.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = KissMeme.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
3499424B2A217D85009457A4 /* KissMeme.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KissMeme.h; sourceTree = "<group>"; };
|
|
||||||
3499424C2A217D85009457A4 /* KissMeme.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = KissMeme.docc; sourceTree = "<group>"; };
|
3499424C2A217D85009457A4 /* KissMeme.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = KissMeme.docc; sourceTree = "<group>"; };
|
||||||
|
34AEFC2D2CD14D5600696E0E /* kissdb.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = kissdb.xcodeproj; sourceTree = "<group>"; };
|
||||||
|
34F82A882CD3FC3C00CD1688 /* KissMeme.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KissMeme.h; sourceTree = "<group>"; };
|
||||||
|
34F82A8D2CD3FC6D00CD1688 /* kissdb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = kissdb.h; path = /Users/ened/Kiss/KissMeme/kissdb/Sources/kissdb/kissdb.h; sourceTree = "<absolute>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
@@ -61,33 +68,26 @@
|
|||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
348168332A2EC3AC00A50BD3 /* libkiss-db.a in Frameworks */,
|
34F82A912CD3FCA500CD1688 /* libkissdb.a in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
/* End PBXFrameworksBuildPhase section */
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
3481682C2A2EC26F00A50BD3 /* Products */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
348168302A2EC26F00A50BD3 /* libkiss-db.a */,
|
|
||||||
);
|
|
||||||
name = Products;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
3481683F2A2EE0C600A50BD3 /* KissMemeTests */ = {
|
3481683F2A2EE0C600A50BD3 /* KissMemeTests */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
348168402A2EE0C600A50BD3 /* KissMemeTests.swift */,
|
348168402A2EE0C600A50BD3 /* KissMemeTests.swift */,
|
||||||
);
|
);
|
||||||
path = KissMemeTests;
|
name = KissMemeTests;
|
||||||
|
path = ../../KissMeme/Tests;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
3499423E2A217D85009457A4 = {
|
3499423E2A217D85009457A4 = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
3481682B2A2EC26F00A50BD3 /* kiss-db.xcodeproj */,
|
34AEFC2D2CD14D5600696E0E /* kissdb.xcodeproj */,
|
||||||
3499424A2A217D85009457A4 /* KissMeme */,
|
3499424A2A217D85009457A4 /* KissMeme */,
|
||||||
3481683F2A2EE0C600A50BD3 /* KissMemeTests */,
|
3481683F2A2EE0C600A50BD3 /* KissMemeTests */,
|
||||||
349942492A217D85009457A4 /* Products */,
|
349942492A217D85009457A4 /* Products */,
|
||||||
@@ -107,14 +107,14 @@
|
|||||||
3499424A2A217D85009457A4 /* KissMeme */ = {
|
3499424A2A217D85009457A4 /* KissMeme */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
348168312A2EC2A200A50BD3 /* kiss-db.h */,
|
34F82A8A2CD3FC3C00CD1688 /* include */,
|
||||||
3499424B2A217D85009457A4 /* KissMeme.h */,
|
|
||||||
3499424C2A217D85009457A4 /* KissMeme.docc */,
|
3499424C2A217D85009457A4 /* KissMeme.docc */,
|
||||||
348168252A2E478F00A50BD3 /* KissMeme.swift */,
|
348168252A2E478F00A50BD3 /* KissMeme.swift */,
|
||||||
348168272A2E4B7700A50BD3 /* KissDB.swift */,
|
348168272A2E4B7700A50BD3 /* KissDB.swift */,
|
||||||
3481684A2A2F961500A50BD3 /* CString.swift */,
|
3481684A2A2F961500A50BD3 /* CString.swift */,
|
||||||
);
|
);
|
||||||
path = KissMeme;
|
name = KissMeme;
|
||||||
|
path = ../../KissMeme/Sources;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
349942D82A218329009457A4 /* Frameworks */ = {
|
349942D82A218329009457A4 /* Frameworks */ = {
|
||||||
@@ -124,6 +124,23 @@
|
|||||||
name = Frameworks;
|
name = Frameworks;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
|
34F82A832CD3FC0200CD1688 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
34F82A872CD3FC0200CD1688 /* libkissdb.a */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
34F82A8A2CD3FC3C00CD1688 /* include */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
34F82A8D2CD3FC6D00CD1688 /* kissdb.h */,
|
||||||
|
34F82A882CD3FC3C00CD1688 /* KissMeme.h */,
|
||||||
|
);
|
||||||
|
path = include;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
/* End PBXGroup section */
|
/* End PBXGroup section */
|
||||||
|
|
||||||
/* Begin PBXHeadersBuildPhase section */
|
/* Begin PBXHeadersBuildPhase section */
|
||||||
@@ -131,8 +148,8 @@
|
|||||||
isa = PBXHeadersBuildPhase;
|
isa = PBXHeadersBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
348168322A2EC2A200A50BD3 /* kiss-db.h in Headers */,
|
34F82A8E2CD3FC6D00CD1688 /* kissdb.h in Headers */,
|
||||||
349942592A217D85009457A4 /* KissMeme.h in Headers */,
|
34F82A8C2CD3FC3C00CD1688 /* KissMeme.h in Headers */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
@@ -169,6 +186,7 @@
|
|||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
|
34F82A902CD3FC9C00CD1688 /* PBXTargetDependency */,
|
||||||
);
|
);
|
||||||
name = KissMeme;
|
name = KissMeme;
|
||||||
productName = KissMeme;
|
productName = KissMeme;
|
||||||
@@ -207,8 +225,8 @@
|
|||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
projectReferences = (
|
projectReferences = (
|
||||||
{
|
{
|
||||||
ProductGroup = 3481682C2A2EC26F00A50BD3 /* Products */;
|
ProductGroup = 34F82A832CD3FC0200CD1688 /* Products */;
|
||||||
ProjectRef = 3481682B2A2EC26F00A50BD3 /* kiss-db.xcodeproj */;
|
ProjectRef = 34AEFC2D2CD14D5600696E0E /* kissdb.xcodeproj */;
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
projectRoot = "";
|
projectRoot = "";
|
||||||
@@ -220,11 +238,11 @@
|
|||||||
/* End PBXProject section */
|
/* End PBXProject section */
|
||||||
|
|
||||||
/* Begin PBXReferenceProxy section */
|
/* Begin PBXReferenceProxy section */
|
||||||
348168302A2EC26F00A50BD3 /* libkiss-db.a */ = {
|
34F82A872CD3FC0200CD1688 /* libkissdb.a */ = {
|
||||||
isa = PBXReferenceProxy;
|
isa = PBXReferenceProxy;
|
||||||
fileType = archive.ar;
|
fileType = archive.ar;
|
||||||
path = "libkiss-db.a";
|
path = libkissdb.a;
|
||||||
remoteRef = 3481682F2A2EC26F00A50BD3 /* PBXContainerItemProxy */;
|
remoteRef = 34F82A862CD3FC0200CD1688 /* PBXContainerItemProxy */;
|
||||||
sourceTree = BUILT_PRODUCTS_DIR;
|
sourceTree = BUILT_PRODUCTS_DIR;
|
||||||
};
|
};
|
||||||
/* End PBXReferenceProxy section */
|
/* End PBXReferenceProxy section */
|
||||||
@@ -274,6 +292,11 @@
|
|||||||
target = 349942472A217D85009457A4 /* KissMeme */;
|
target = 349942472A217D85009457A4 /* KissMeme */;
|
||||||
targetProxy = 348168432A2EE0C600A50BD3 /* PBXContainerItemProxy */;
|
targetProxy = 348168432A2EE0C600A50BD3 /* PBXContainerItemProxy */;
|
||||||
};
|
};
|
||||||
|
34F82A902CD3FC9C00CD1688 /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
name = kissdb;
|
||||||
|
targetProxy = 34F82A8F2CD3FC9C00CD1688 /* PBXContainerItemProxy */;
|
||||||
|
};
|
||||||
/* End PBXTargetDependency section */
|
/* End PBXTargetDependency section */
|
||||||
|
|
||||||
/* Begin XCBuildConfiguration section */
|
/* Begin XCBuildConfiguration section */
|
||||||
@@ -454,6 +477,7 @@
|
|||||||
MARKETING_VERSION = 1.0;
|
MARKETING_VERSION = 1.0;
|
||||||
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
|
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
|
||||||
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20";
|
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20";
|
||||||
|
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.ened.KissMeme;
|
PRODUCT_BUNDLE_IDENTIFIER = com.ened.KissMeme;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
|
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
@@ -461,7 +485,7 @@
|
|||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TVOS_DEPLOYMENT_TARGET = 13.0;
|
TVOS_DEPLOYMENT_TARGET = 13.0;
|
||||||
USER_HEADER_SEARCH_PATHS = "${SRCROOT}/../kiss-db/kiss-db";
|
USER_HEADER_SEARCH_PATHS = "${SRCROOT}/../kissdb/kissdb";
|
||||||
WATCHOS_DEPLOYMENT_TARGET = 8.0;
|
WATCHOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
@@ -492,13 +516,14 @@
|
|||||||
MARKETING_VERSION = 1.0;
|
MARKETING_VERSION = 1.0;
|
||||||
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
|
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
|
||||||
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20";
|
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20";
|
||||||
|
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.ened.KissMeme;
|
PRODUCT_BUNDLE_IDENTIFIER = com.ened.KissMeme;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
|
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TVOS_DEPLOYMENT_TARGET = 13.0;
|
TVOS_DEPLOYMENT_TARGET = 13.0;
|
||||||
USER_HEADER_SEARCH_PATHS = "${SRCROOT}/../kiss-db/kiss-db";
|
USER_HEADER_SEARCH_PATHS = "${SRCROOT}/../kissdb/kissdb";
|
||||||
WATCHOS_DEPLOYMENT_TARGET = 8.0;
|
WATCHOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
@@ -11,12 +11,12 @@
|
|||||||
349942B52A218045009457A4 /* mdb.c in Sources */ = {isa = PBXBuildFile; fileRef = 349942A02A218045009457A4 /* mdb.c */; };
|
349942B52A218045009457A4 /* mdb.c in Sources */ = {isa = PBXBuildFile; fileRef = 349942A02A218045009457A4 /* mdb.c */; };
|
||||||
349942B72A218045009457A4 /* lmdb.h in Headers */ = {isa = PBXBuildFile; fileRef = 349942A72A218045009457A4 /* lmdb.h */; };
|
349942B72A218045009457A4 /* lmdb.h in Headers */ = {isa = PBXBuildFile; fileRef = 349942A72A218045009457A4 /* lmdb.h */; };
|
||||||
349942B82A218045009457A4 /* midl.h in Headers */ = {isa = PBXBuildFile; fileRef = 349942A82A218045009457A4 /* midl.h */; };
|
349942B82A218045009457A4 /* midl.h in Headers */ = {isa = PBXBuildFile; fileRef = 349942A82A218045009457A4 /* midl.h */; };
|
||||||
349942DD2A218572009457A4 /* kiss-db.h in Headers */ = {isa = PBXBuildFile; fileRef = 349942DB2A218572009457A4 /* kiss-db.h */; };
|
34AEFC282CD1498C00696E0E /* kissdb.h in Headers */ = {isa = PBXBuildFile; fileRef = 34AEFC262CD1498C00696E0E /* kissdb.h */; };
|
||||||
349942DE2A218572009457A4 /* kiss-db.c in Sources */ = {isa = PBXBuildFile; fileRef = 349942DC2A218572009457A4 /* kiss-db.c */; };
|
34AEFC292CD1498C00696E0E /* kissdb.c in Sources */ = {isa = PBXBuildFile; fileRef = 34AEFC272CD1498C00696E0E /* kissdb.c */; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
3499426B2A217DBE009457A4 /* libkiss-db.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libkiss-db.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
3499426B2A217DBE009457A4 /* libkissdb.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libkissdb.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
349942992A218045009457A4 /* midl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = midl.c; sourceTree = "<group>"; };
|
349942992A218045009457A4 /* midl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = midl.c; sourceTree = "<group>"; };
|
||||||
349942A02A218045009457A4 /* mdb.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mdb.c; sourceTree = "<group>"; };
|
349942A02A218045009457A4 /* mdb.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mdb.c; sourceTree = "<group>"; };
|
||||||
349942A72A218045009457A4 /* lmdb.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lmdb.h; sourceTree = "<group>"; };
|
349942A72A218045009457A4 /* lmdb.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lmdb.h; sourceTree = "<group>"; };
|
||||||
@@ -32,8 +32,8 @@
|
|||||||
349942CE2A21823F009457A4 /* mdb_dump.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mdb_dump.c; sourceTree = "<group>"; };
|
349942CE2A21823F009457A4 /* mdb_dump.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mdb_dump.c; sourceTree = "<group>"; };
|
||||||
349942CF2A21823F009457A4 /* mdb_copy.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mdb_copy.c; sourceTree = "<group>"; };
|
349942CF2A21823F009457A4 /* mdb_copy.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mdb_copy.c; sourceTree = "<group>"; };
|
||||||
349942D02A21823F009457A4 /* mdb_load.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mdb_load.c; sourceTree = "<group>"; };
|
349942D02A21823F009457A4 /* mdb_load.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mdb_load.c; sourceTree = "<group>"; };
|
||||||
349942DB2A218572009457A4 /* kiss-db.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "kiss-db.h"; sourceTree = "<group>"; };
|
34AEFC262CD1498C00696E0E /* kissdb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = kissdb.h; sourceTree = "<group>"; };
|
||||||
349942DC2A218572009457A4 /* kiss-db.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = "kiss-db.c"; sourceTree = "<group>"; };
|
34AEFC272CD1498C00696E0E /* kissdb.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = kissdb.c; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
349942622A217DBE009457A4 = {
|
349942622A217DBE009457A4 = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
349942DA2A218339009457A4 /* kiss-db */,
|
349942DA2A218339009457A4 /* kissdb */,
|
||||||
3499428C2A218045009457A4 /* liblmdb */,
|
3499428C2A218045009457A4 /* liblmdb */,
|
||||||
3499426C2A217DBE009457A4 /* Products */,
|
3499426C2A217DBE009457A4 /* Products */,
|
||||||
);
|
);
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
3499426C2A217DBE009457A4 /* Products */ = {
|
3499426C2A217DBE009457A4 /* Products */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
3499426B2A217DBE009457A4 /* libkiss-db.a */,
|
3499426B2A217DBE009457A4 /* libkissdb.a */,
|
||||||
);
|
);
|
||||||
name = Products;
|
name = Products;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -74,7 +74,8 @@
|
|||||||
349942A72A218045009457A4 /* lmdb.h */,
|
349942A72A218045009457A4 /* lmdb.h */,
|
||||||
349942A82A218045009457A4 /* midl.h */,
|
349942A82A218045009457A4 /* midl.h */,
|
||||||
);
|
);
|
||||||
path = liblmdb;
|
name = liblmdb;
|
||||||
|
path = ../../kissdb/Sources/liblmdb;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
349942BE2A2181E2009457A4 /* example */ = {
|
349942BE2A2181E2009457A4 /* example */ = {
|
||||||
@@ -102,13 +103,14 @@
|
|||||||
name = tools;
|
name = tools;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
349942DA2A218339009457A4 /* kiss-db */ = {
|
349942DA2A218339009457A4 /* kissdb */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
349942DC2A218572009457A4 /* kiss-db.c */,
|
34AEFC262CD1498C00696E0E /* kissdb.h */,
|
||||||
349942DB2A218572009457A4 /* kiss-db.h */,
|
34AEFC272CD1498C00696E0E /* kissdb.c */,
|
||||||
);
|
);
|
||||||
path = "kiss-db";
|
name = kissdb;
|
||||||
|
path = ../../kissdb/Sources/kissdb;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
/* End PBXGroup section */
|
/* End PBXGroup section */
|
||||||
@@ -119,7 +121,7 @@
|
|||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
349942B72A218045009457A4 /* lmdb.h in Headers */,
|
349942B72A218045009457A4 /* lmdb.h in Headers */,
|
||||||
349942DD2A218572009457A4 /* kiss-db.h in Headers */,
|
34AEFC282CD1498C00696E0E /* kissdb.h in Headers */,
|
||||||
349942B82A218045009457A4 /* midl.h in Headers */,
|
349942B82A218045009457A4 /* midl.h in Headers */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
@@ -127,9 +129,9 @@
|
|||||||
/* End PBXHeadersBuildPhase section */
|
/* End PBXHeadersBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
/* Begin PBXNativeTarget section */
|
||||||
3499426A2A217DBE009457A4 /* kiss-db */ = {
|
3499426A2A217DBE009457A4 /* kissdb */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = 3499426F2A217DBE009457A4 /* Build configuration list for PBXNativeTarget "kiss-db" */;
|
buildConfigurationList = 3499426F2A217DBE009457A4 /* Build configuration list for PBXNativeTarget "kissdb" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
349942672A217DBE009457A4 /* Headers */,
|
349942672A217DBE009457A4 /* Headers */,
|
||||||
349942682A217DBE009457A4 /* Sources */,
|
349942682A217DBE009457A4 /* Sources */,
|
||||||
@@ -139,9 +141,9 @@
|
|||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
);
|
);
|
||||||
name = "kiss-db";
|
name = kissdb;
|
||||||
productName = "kiss-lmdb";
|
productName = "kiss-lmdb";
|
||||||
productReference = 3499426B2A217DBE009457A4 /* libkiss-db.a */;
|
productReference = 3499426B2A217DBE009457A4 /* libkissdb.a */;
|
||||||
productType = "com.apple.product-type.library.static";
|
productType = "com.apple.product-type.library.static";
|
||||||
};
|
};
|
||||||
/* End PBXNativeTarget section */
|
/* End PBXNativeTarget section */
|
||||||
@@ -158,7 +160,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
buildConfigurationList = 349942662A217DBE009457A4 /* Build configuration list for PBXProject "kiss-db" */;
|
buildConfigurationList = 349942662A217DBE009457A4 /* Build configuration list for PBXProject "kissdb" */;
|
||||||
compatibilityVersion = "Xcode 14.0";
|
compatibilityVersion = "Xcode 14.0";
|
||||||
developmentRegion = en;
|
developmentRegion = en;
|
||||||
hasScannedForEncodings = 0;
|
hasScannedForEncodings = 0;
|
||||||
@@ -171,7 +173,7 @@
|
|||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
projectRoot = "";
|
projectRoot = "";
|
||||||
targets = (
|
targets = (
|
||||||
3499426A2A217DBE009457A4 /* kiss-db */,
|
3499426A2A217DBE009457A4 /* kissdb */,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/* End PBXProject section */
|
/* End PBXProject section */
|
||||||
@@ -182,7 +184,7 @@
|
|||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
349942B52A218045009457A4 /* mdb.c in Sources */,
|
349942B52A218045009457A4 /* mdb.c in Sources */,
|
||||||
349942DE2A218572009457A4 /* kiss-db.c in Sources */,
|
34AEFC292CD1498C00696E0E /* kissdb.c in Sources */,
|
||||||
349942B02A218045009457A4 /* midl.c in Sources */,
|
349942B02A218045009457A4 /* midl.c in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
@@ -324,7 +326,7 @@
|
|||||||
/* End XCBuildConfiguration section */
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
/* Begin XCConfigurationList section */
|
/* Begin XCConfigurationList section */
|
||||||
349942662A217DBE009457A4 /* Build configuration list for PBXProject "kiss-db" */ = {
|
349942662A217DBE009457A4 /* Build configuration list for PBXProject "kissdb" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
3499426D2A217DBE009457A4 /* Debug */,
|
3499426D2A217DBE009457A4 /* Debug */,
|
||||||
@@ -333,7 +335,7 @@
|
|||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
3499426F2A217DBE009457A4 /* Build configuration list for PBXNativeTarget "kiss-db" */ = {
|
3499426F2A217DBE009457A4 /* Build configuration list for PBXNativeTarget "kissdb" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
349942702A217DBE009457A4 /* Debug */,
|
349942702A217DBE009457A4 /* Debug */,
|
||||||
13
scripts/build.sh
Executable file
13
scripts/build.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Run this build script at root
|
||||||
|
## Ex)
|
||||||
|
## $ ./scripts/build.sh
|
||||||
|
##
|
||||||
|
|
||||||
|
THIS_PATH=`dirname "$0"`
|
||||||
|
|
||||||
|
mkdir -p bin
|
||||||
|
|
||||||
|
${THIS_PATH}/build_any.sh KissMeme
|
||||||
|
|
||||||
26
scripts/build_any.sh
Executable file
26
scripts/build_any.sh
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Run this build script at root
|
||||||
|
## Ex)
|
||||||
|
## $ ./scripts/build.sh
|
||||||
|
##
|
||||||
|
|
||||||
|
CONSOLE_APP=$1
|
||||||
|
CERT_NAME="Developer ID Application: Chung Min Ahn (NYU8YAYHF8)"
|
||||||
|
|
||||||
|
echo "build console bin/${CONSOLE_APP}"
|
||||||
|
|
||||||
|
cd ${CONSOLE_APP}
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf .build
|
||||||
|
|
||||||
|
swift build -c release --enable-dead-strip
|
||||||
|
|
||||||
|
#codesign --sign "${CERT_NAME}" .build/release/${CONSOLE_APP}
|
||||||
|
codesign --sign "${CERT_NAME}" .build/release/Modules/${CONSOLE_APP}.swiftmodule
|
||||||
|
|
||||||
|
#cp .build/release/${CONSOLE_APP} ../bin
|
||||||
|
cp .build/release/Modules/${CONSOLE_APP}.swiftmodule ../bin
|
||||||
|
|
||||||
Reference in New Issue
Block a user