separate Swift and C++/Objective-C++ code into separate libraries

This commit is contained in:
Alex Rozanski 2023-03-16 00:24:12 +01:00
parent b44026b8db
commit 5f4905a256
20 changed files with 201 additions and 1126 deletions

View File

@ -0,0 +1,10 @@
//
// Llama-Bridging-Header.h
// llama
//
// Created by Alex Rozanski on 15/03/2023.
//
#import <llamaObjCxx/LlamaRunnerBridge.h>
#import <llamaObjCxx/LlamaRunnerBridgeConfig.h>
#import <llamaObjCxx/LlamaEvent.h>

File diff suppressed because it is too large Load Diff

View File

@ -7,25 +7,25 @@
objects = {
/* Begin PBXBuildFile section */
82293E3D29BDC4ED00C67BD9 /* llama.h in Headers */ = {isa = PBXBuildFile; fileRef = 82293E3C29BDC4ED00C67BD9 /* llama.h */; settings = {ATTRIBUTES = (Public, ); }; };
82293E5229BDC5DE00C67BD9 /* LlamaRunnerBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 82293E5029BDC5DE00C67BD9 /* LlamaRunnerBridge.h */; settings = {ATTRIBUTES = (Public, ); }; };
82293E5329BDC5DE00C67BD9 /* LlamaRunnerBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 82293E5129BDC5DE00C67BD9 /* LlamaRunnerBridge.mm */; };
82293E5B29BDC71700C67BD9 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82293E5A29BDC71700C67BD9 /* main.swift */; };
82293E6229BDC73100C67BD9 /* llama.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82293E3929BDC4ED00C67BD9 /* llama.framework */; };
82293E6529BDC7E200C67BD9 /* LlamaRunner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82293E6429BDC7E200C67BD9 /* LlamaRunner.swift */; };
82819F8329BF2BFC00399B7E /* ggml.c in Sources */ = {isa = PBXBuildFile; fileRef = 82819F7D29BF2BFC00399B7E /* ggml.c */; };
82819F8429BF2BFC00399B7E /* quantize.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 82819F7E29BF2BFC00399B7E /* quantize.cpp */; };
82819F8629BF2BFC00399B7E /* ggml.h in Headers */ = {isa = PBXBuildFile; fileRef = 82819F8029BF2BFC00399B7E /* ggml.h */; };
82819F8729BF2BFC00399B7E /* utils.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 82819F8129BF2BFC00399B7E /* utils.cpp */; };
82819F8829BF2BFC00399B7E /* utils.h in Headers */ = {isa = PBXBuildFile; fileRef = 82819F8229BF2BFC00399B7E /* utils.h */; };
82819F8D29BF2F5800399B7E /* LlamaRunnerBridgeConfig.h in Headers */ = {isa = PBXBuildFile; fileRef = 82819F8B29BF2F5800399B7E /* LlamaRunnerBridgeConfig.h */; settings = {ATTRIBUTES = (Public, ); }; };
82819F8E29BF2F5800399B7E /* LlamaRunnerBridgeConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = 82819F8C29BF2F5800399B7E /* LlamaRunnerBridgeConfig.m */; };
82819F9129BF387400399B7E /* LlamaPredictOperation.hh in Headers */ = {isa = PBXBuildFile; fileRef = 82819F8F29BF387400399B7E /* LlamaPredictOperation.hh */; settings = {ATTRIBUTES = (Private, ); }; };
82819F9229BF387400399B7E /* LlamaPredictOperation.mm in Sources */ = {isa = PBXBuildFile; fileRef = 82819F9029BF387400399B7E /* LlamaPredictOperation.mm */; };
82819F9529C0526100399B7E /* LlamaEvent.mm in Sources */ = {isa = PBXBuildFile; fileRef = 82819F9329C0526100399B7E /* LlamaEvent.mm */; };
82819F9629C0526100399B7E /* LlamaEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 82819F9429C0526100399B7E /* LlamaEvent.h */; settings = {ATTRIBUTES = (Public, ); }; };
82819F9929C07BC900399B7E /* LlamaError.h in Headers */ = {isa = PBXBuildFile; fileRef = 82819F9729C07BC900399B7E /* LlamaError.h */; };
82819F9A29C07BC900399B7E /* LlamaError.m in Sources */ = {isa = PBXBuildFile; fileRef = 82819F9829C07BC900399B7E /* LlamaError.m */; };
82819FB229C1DB5400399B7E /* LlamaError.m in Sources */ = {isa = PBXBuildFile; fileRef = 82819F9829C07BC900399B7E /* LlamaError.m */; };
82819FB329C1DB5800399B7E /* LlamaEvent.mm in Sources */ = {isa = PBXBuildFile; fileRef = 82819F9329C0526100399B7E /* LlamaEvent.mm */; };
82819FB429C1DB5800399B7E /* LlamaRunnerBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 82293E5129BDC5DE00C67BD9 /* LlamaRunnerBridge.mm */; };
82819FB529C1DB5800399B7E /* LlamaRunnerBridgeConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = 82819F8C29BF2F5800399B7E /* LlamaRunnerBridgeConfig.m */; };
82819FB629C1DB5800399B7E /* LlamaPredictOperation.mm in Sources */ = {isa = PBXBuildFile; fileRef = 82819F9029BF387400399B7E /* LlamaPredictOperation.mm */; };
82819FB729C1DB5800399B7E /* LlamaPredictOperation.hh in Headers */ = {isa = PBXBuildFile; fileRef = 82819F8F29BF387400399B7E /* LlamaPredictOperation.hh */; settings = {ATTRIBUTES = (Private, ); }; };
82819FB829C1DB5E00399B7E /* quantize.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 82819F7E29BF2BFC00399B7E /* quantize.cpp */; };
82819FB929C1DB5E00399B7E /* ggml.c in Sources */ = {isa = PBXBuildFile; fileRef = 82819F7D29BF2BFC00399B7E /* ggml.c */; };
82819FBA29C1DB5E00399B7E /* utils.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 82819F8129BF2BFC00399B7E /* utils.cpp */; };
82819FBB29C1DB6900399B7E /* LlamaError.h in Headers */ = {isa = PBXBuildFile; fileRef = 82819F9729C07BC900399B7E /* LlamaError.h */; settings = {ATTRIBUTES = (Public, ); }; };
82819FBC29C1DB6E00399B7E /* LlamaEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 82819F9429C0526100399B7E /* LlamaEvent.h */; settings = {ATTRIBUTES = (Public, ); }; };
82819FBD29C1DB7100399B7E /* LlamaRunnerBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 82293E5029BDC5DE00C67BD9 /* LlamaRunnerBridge.h */; settings = {ATTRIBUTES = (Public, ); }; };
82819FBE29C1DB7500399B7E /* LlamaRunnerBridgeConfig.h in Headers */ = {isa = PBXBuildFile; fileRef = 82819F8B29BF2F5800399B7E /* LlamaRunnerBridgeConfig.h */; settings = {ATTRIBUTES = (Public, ); }; };
82819FBF29C1DB7A00399B7E /* ggml.h in Headers */ = {isa = PBXBuildFile; fileRef = 82819FA029C1D72400399B7E /* ggml.h */; settings = {ATTRIBUTES = (Private, ); }; };
82819FC029C1DB7D00399B7E /* utils.h in Headers */ = {isa = PBXBuildFile; fileRef = 82819FA129C1D72400399B7E /* utils.h */; settings = {ATTRIBUTES = (Private, ); }; };
82819FC529C2585700399B7E /* libllamaObjCxx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 82819FA929C1DB2900399B7E /* libllamaObjCxx.a */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -36,6 +36,13 @@
remoteGlobalIDString = 82293E3829BDC4ED00C67BD9;
remoteInfo = llama;
};
82819FC129C1DB8B00399B7E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 82293E3029BDC4ED00C67BD9 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 82819FA829C1DB2900399B7E;
remoteInfo = llamaObjCxx;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
@ -52,7 +59,6 @@
/* Begin PBXFileReference section */
82293E3929BDC4ED00C67BD9 /* llama.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = llama.framework; sourceTree = BUILT_PRODUCTS_DIR; };
82293E3C29BDC4ED00C67BD9 /* llama.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = llama.h; sourceTree = "<group>"; };
82293E5029BDC5DE00C67BD9 /* LlamaRunnerBridge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LlamaRunnerBridge.h; sourceTree = "<group>"; };
82293E5129BDC5DE00C67BD9 /* LlamaRunnerBridge.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = LlamaRunnerBridge.mm; sourceTree = "<group>"; };
82293E5829BDC71700C67BD9 /* llamaTest */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = llamaTest; sourceTree = BUILT_PRODUCTS_DIR; };
@ -60,11 +66,9 @@
82293E6429BDC7E200C67BD9 /* LlamaRunner.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LlamaRunner.swift; sourceTree = "<group>"; };
82819F7B29BDF61E00399B7E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
82819F7C29BDF7CB00399B7E /* LlamaTest.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = LlamaTest.xcconfig; sourceTree = "<group>"; };
82819F7D29BF2BFC00399B7E /* ggml.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ggml.c; path = cpp/ggml.c; sourceTree = SOURCE_ROOT; };
82819F7E29BF2BFC00399B7E /* quantize.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = quantize.cpp; path = cpp/quantize.cpp; sourceTree = SOURCE_ROOT; };
82819F8029BF2BFC00399B7E /* ggml.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ggml.h; path = cpp/ggml.h; sourceTree = SOURCE_ROOT; };
82819F8129BF2BFC00399B7E /* utils.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = utils.cpp; path = cpp/utils.cpp; sourceTree = SOURCE_ROOT; };
82819F8229BF2BFC00399B7E /* utils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = utils.h; path = cpp/utils.h; sourceTree = SOURCE_ROOT; };
82819F7D29BF2BFC00399B7E /* ggml.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ggml.c; path = Sources/llamaObjCxx/cpp/ggml.c; sourceTree = SOURCE_ROOT; };
82819F7E29BF2BFC00399B7E /* quantize.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = quantize.cpp; path = Sources/llamaObjCxx/cpp/quantize.cpp; sourceTree = SOURCE_ROOT; };
82819F8129BF2BFC00399B7E /* utils.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = utils.cpp; path = Sources/llamaObjCxx/cpp/utils.cpp; sourceTree = SOURCE_ROOT; };
82819F8B29BF2F5800399B7E /* LlamaRunnerBridgeConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LlamaRunnerBridgeConfig.h; sourceTree = "<group>"; };
82819F8C29BF2F5800399B7E /* LlamaRunnerBridgeConfig.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LlamaRunnerBridgeConfig.m; sourceTree = "<group>"; };
82819F8F29BF387400399B7E /* LlamaPredictOperation.hh */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = LlamaPredictOperation.hh; sourceTree = "<group>"; };
@ -75,6 +79,11 @@
82819F9829C07BC900399B7E /* LlamaError.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LlamaError.m; sourceTree = "<group>"; };
82819F9B29C0881800399B7E /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
82819F9C29C0897900399B7E /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
82819F9D29C1CCA300399B7E /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
82819FA029C1D72400399B7E /* ggml.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ggml.h; sourceTree = "<group>"; };
82819FA129C1D72400399B7E /* utils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utils.h; sourceTree = "<group>"; };
82819FA929C1DB2900399B7E /* libllamaObjCxx.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libllamaObjCxx.a; sourceTree = BUILT_PRODUCTS_DIR; };
82819FC429C1DEE700399B7E /* llama-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "llama-Bridging-Header.h"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -82,6 +91,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
82819FC529C2585700399B7E /* libllamaObjCxx.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -93,6 +103,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
82819FA729C1DB2900399B7E /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@ -101,7 +118,8 @@
children = (
82819F9B29C0881800399B7E /* README.md */,
82819F9C29C0897900399B7E /* LICENSE */,
82293E3B29BDC4ED00C67BD9 /* llama */,
82819F9D29C1CCA300399B7E /* Package.swift */,
82819FC629C289B400399B7E /* Sources */,
82293E5929BDC71700C67BD9 /* llamaTest */,
82293E3A29BDC4ED00C67BD9 /* Products */,
82293E6129BDC73100C67BD9 /* Frameworks */,
@ -113,6 +131,7 @@
children = (
82293E3929BDC4ED00C67BD9 /* llama.framework */,
82293E5829BDC71700C67BD9 /* llamaTest */,
82819FA929C1DB2900399B7E /* libllamaObjCxx.a */,
);
name = Products;
sourceTree = "<group>";
@ -120,12 +139,8 @@
82293E3B29BDC4ED00C67BD9 /* llama */ = {
isa = PBXGroup;
children = (
82293E6329BDC75F00C67BD9 /* bridge */,
82293E4329BDC51A00C67BD9 /* cpp */,
82293E3C29BDC4ED00C67BD9 /* llama.h */,
82819F9729C07BC900399B7E /* LlamaError.h */,
82819F9829C07BC900399B7E /* LlamaError.m */,
82293E6429BDC7E200C67BD9 /* LlamaRunner.swift */,
82819FC429C1DEE700399B7E /* llama-Bridging-Header.h */,
);
path = llama;
sourceTree = "<group>";
@ -134,10 +149,8 @@
isa = PBXGroup;
children = (
82819F7D29BF2BFC00399B7E /* ggml.c */,
82819F8029BF2BFC00399B7E /* ggml.h */,
82819F7E29BF2BFC00399B7E /* quantize.cpp */,
82819F8129BF2BFC00399B7E /* utils.cpp */,
82819F8229BF2BFC00399B7E /* utils.h */,
);
path = cpp;
sourceTree = "<group>";
@ -162,11 +175,8 @@
82293E6329BDC75F00C67BD9 /* bridge */ = {
isa = PBXGroup;
children = (
82819F9429C0526100399B7E /* LlamaEvent.h */,
82819F9329C0526100399B7E /* LlamaEvent.mm */,
82293E5029BDC5DE00C67BD9 /* LlamaRunnerBridge.h */,
82293E5129BDC5DE00C67BD9 /* LlamaRunnerBridge.mm */,
82819F8B29BF2F5800399B7E /* LlamaRunnerBridgeConfig.h */,
82819F8C29BF2F5800399B7E /* LlamaRunnerBridgeConfig.m */,
82819F8F29BF387400399B7E /* LlamaPredictOperation.hh */,
82819F9029BF387400399B7E /* LlamaPredictOperation.mm */,
@ -174,6 +184,55 @@
path = bridge;
sourceTree = "<group>";
};
82819F9E29C1CE2000399B7E /* llamaObjCxx */ = {
isa = PBXGroup;
children = (
82819F9829C07BC900399B7E /* LlamaError.m */,
82293E6329BDC75F00C67BD9 /* bridge */,
82293E4329BDC51A00C67BD9 /* cpp */,
82819FA429C1DAD800399B7E /* include */,
);
path = llamaObjCxx;
sourceTree = "<group>";
};
82819F9F29C1CFAA00399B7E /* public */ = {
isa = PBXGroup;
children = (
82819F9729C07BC900399B7E /* LlamaError.h */,
82819F9429C0526100399B7E /* LlamaEvent.h */,
82293E5029BDC5DE00C67BD9 /* LlamaRunnerBridge.h */,
82819F8B29BF2F5800399B7E /* LlamaRunnerBridgeConfig.h */,
);
path = public;
sourceTree = "<group>";
};
82819FA329C1D9BF00399B7E /* private */ = {
isa = PBXGroup;
children = (
82819FA029C1D72400399B7E /* ggml.h */,
82819FA129C1D72400399B7E /* utils.h */,
);
path = private;
sourceTree = "<group>";
};
82819FA429C1DAD800399B7E /* include */ = {
isa = PBXGroup;
children = (
82819FA329C1D9BF00399B7E /* private */,
82819F9F29C1CFAA00399B7E /* public */,
);
path = include;
sourceTree = "<group>";
};
82819FC629C289B400399B7E /* Sources */ = {
isa = PBXGroup;
children = (
82293E3B29BDC4ED00C67BD9 /* llama */,
82819F9E29C1CE2000399B7E /* llamaObjCxx */,
);
path = Sources;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
@ -181,14 +240,20 @@
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
82819F9629C0526100399B7E /* LlamaEvent.h in Headers */,
82819F8629BF2BFC00399B7E /* ggml.h in Headers */,
82293E5229BDC5DE00C67BD9 /* LlamaRunnerBridge.h in Headers */,
82819F9929C07BC900399B7E /* LlamaError.h in Headers */,
82819F8829BF2BFC00399B7E /* utils.h in Headers */,
82819F8D29BF2F5800399B7E /* LlamaRunnerBridgeConfig.h in Headers */,
82819F9129BF387400399B7E /* LlamaPredictOperation.hh in Headers */,
82293E3D29BDC4ED00C67BD9 /* llama.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
82819FA529C1DB2900399B7E /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
82819FBC29C1DB6E00399B7E /* LlamaEvent.h in Headers */,
82819FB729C1DB5800399B7E /* LlamaPredictOperation.hh in Headers */,
82819FC029C1DB7D00399B7E /* utils.h in Headers */,
82819FBB29C1DB6900399B7E /* LlamaError.h in Headers */,
82819FBF29C1DB7A00399B7E /* ggml.h in Headers */,
82819FBE29C1DB7500399B7E /* LlamaRunnerBridgeConfig.h in Headers */,
82819FBD29C1DB7100399B7E /* LlamaRunnerBridge.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -207,6 +272,7 @@
buildRules = (
);
dependencies = (
82819FC229C1DB8B00399B7E /* PBXTargetDependency */,
);
name = llama;
productName = llama;
@ -231,6 +297,23 @@
productReference = 82293E5829BDC71700C67BD9 /* llamaTest */;
productType = "com.apple.product-type.tool";
};
82819FA829C1DB2900399B7E /* llamaObjCxx */ = {
isa = PBXNativeTarget;
buildConfigurationList = 82819FAF29C1DB2900399B7E /* Build configuration list for PBXNativeTarget "llamaObjCxx" */;
buildPhases = (
82819FA529C1DB2900399B7E /* Headers */,
82819FA629C1DB2900399B7E /* Sources */,
82819FA729C1DB2900399B7E /* Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = llamaObjCxx;
productName = llamaObjCxx;
productReference = 82819FA929C1DB2900399B7E /* libllamaObjCxx.a */;
productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
@ -249,6 +332,9 @@
CreatedOnToolsVersion = 14.1;
LastSwiftMigration = 1410;
};
82819FA829C1DB2900399B7E = {
CreatedOnToolsVersion = 14.1;
};
};
};
buildConfigurationList = 82293E3329BDC4ED00C67BD9 /* Build configuration list for PBXProject "llama" */;
@ -265,6 +351,7 @@
projectRoot = "";
targets = (
82293E3829BDC4ED00C67BD9 /* llama */,
82819FA829C1DB2900399B7E /* llamaObjCxx */,
82293E5729BDC71700C67BD9 /* llamaTest */,
);
};
@ -285,15 +372,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
82819F9529C0526100399B7E /* LlamaEvent.mm in Sources */,
82293E5329BDC5DE00C67BD9 /* LlamaRunnerBridge.mm in Sources */,
82293E6529BDC7E200C67BD9 /* LlamaRunner.swift in Sources */,
82819F8E29BF2F5800399B7E /* LlamaRunnerBridgeConfig.m in Sources */,
82819F9A29C07BC900399B7E /* LlamaError.m in Sources */,
82819F8429BF2BFC00399B7E /* quantize.cpp in Sources */,
82819F8729BF2BFC00399B7E /* utils.cpp in Sources */,
82819F8329BF2BFC00399B7E /* ggml.c in Sources */,
82819F9229BF387400399B7E /* LlamaPredictOperation.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -305,6 +384,21 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
82819FA629C1DB2900399B7E /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
82819FB829C1DB5E00399B7E /* quantize.cpp in Sources */,
82819FB629C1DB5800399B7E /* LlamaPredictOperation.mm in Sources */,
82819FB529C1DB5800399B7E /* LlamaRunnerBridgeConfig.m in Sources */,
82819FBA29C1DB5E00399B7E /* utils.cpp in Sources */,
82819FB429C1DB5800399B7E /* LlamaRunnerBridge.mm in Sources */,
82819FB329C1DB5800399B7E /* LlamaEvent.mm in Sources */,
82819FB929C1DB5E00399B7E /* ggml.c in Sources */,
82819FB229C1DB5400399B7E /* LlamaError.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
@ -313,6 +407,11 @@
target = 82293E3829BDC4ED00C67BD9 /* llama */;
targetProxy = 82293E5F29BDC72B00C67BD9 /* PBXContainerItemProxy */;
};
82819FC229C1DB8B00399B7E /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 82819FA829C1DB2900399B7E /* llamaObjCxx */;
targetProxy = 82819FC129C1DB8B00399B7E /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
@ -456,10 +555,16 @@
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.0;
OTHER_LDFLAGS = (
"-all_load",
"-lc++",
);
PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO;
PRODUCT_BUNDLE_IDENTIFIER = com.alexrozanski.llama;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Sources/llama/llama-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
};
@ -486,10 +591,16 @@
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.0;
OTHER_LDFLAGS = (
"-all_load",
"-lc++",
);
PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO;
PRODUCT_BUNDLE_IDENTIFIER = com.alexrozanski.llama;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Sources/llama/llama-Bridging-Header.h";
SWIFT_VERSION = 5.0;
};
name = Release;
@ -541,6 +652,28 @@
};
name = Release;
};
82819FB029C1DB2900399B7E /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 44847G58BM;
EXECUTABLE_PREFIX = lib;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Debug;
};
82819FB129C1DB2900399B7E /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 44847G58BM;
EXECUTABLE_PREFIX = lib;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@ -571,6 +704,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
82819FAF29C1DB2900399B7E /* Build configuration list for PBXNativeTarget "llamaObjCxx" */ = {
isa = XCConfigurationList;
buildConfigurations = (
82819FB029C1DB2900399B7E /* Debug */,
82819FB129C1DB2900399B7E /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 82293E3029BDC4ED00C67BD9 /* Project object */;

View File

@ -1,21 +0,0 @@
//
// llama.h
// llama
//
// Created by Alex Rozanski on 12/03/2023.
//
#import <Foundation/Foundation.h>
//! Project version number for llama.
FOUNDATION_EXPORT double llamaVersionNumber;
//! Project version string for llama.
FOUNDATION_EXPORT const unsigned char llamaVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <llama/PublicHeader.h>
#import <llama/LlamaEvent.h>
#import <llama/LlamaRunnerBridge.h>
#import <llama/LlamaRunnerBridgeConfig.h>