Skip to content

Commit

Permalink
statically link SDL2
Browse files Browse the repository at this point in the history
  • Loading branch information
leetcode-mafia committed Apr 26, 2023
1 parent e973efe commit 58c407d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Cheetah.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
37AE7ACA29A70CE900C45FF6 /* whisper.h in Headers */ = {isa = PBXBuildFile; fileRef = 37AE7AB129A5AAD400C45FF6 /* whisper.h */; };
37B2997D29F9756F00971690 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = 37B2997C29F9756F00971690 /* Sparkle */; };
37B2997F29F9757700971690 /* Sparkle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37B2997E29F9757700971690 /* Sparkle.swift */; };
37B2998729F97C5D00971690 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 37B2998429F97C1000971690 /* libSDL2.a */; };
37B3A50629CE15AC0029821F /* OpenAIEndpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37B3A4FD29CE15AC0029821F /* OpenAIEndpoint.swift */; };
37B3A50729CE15AC0029821F /* OpenAISwift.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37B3A4FE29CE15AC0029821F /* OpenAISwift.swift */; };
37B3A51C29CE16330029821F /* ImageGeneration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37B3A51629CE16330029821F /* ImageGeneration.swift */; };
Expand Down Expand Up @@ -169,6 +170,7 @@
37AE7AC529A6E9C400C45FF6 /* stream.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = stream.cpp; sourceTree = "<group>"; };
37AE7AC729A6EC2F00C45FF6 /* stream.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = stream.h; sourceTree = "<group>"; };
37B2997E29F9757700971690 /* Sparkle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Sparkle.swift; sourceTree = "<group>"; };
37B2998429F97C1000971690 /* libSDL2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libSDL2.a; path = /opt/homebrew/lib/libSDL2.a; sourceTree = "<absolute>"; };
37B3A4FD29CE15AC0029821F /* OpenAIEndpoint.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OpenAIEndpoint.swift; sourceTree = "<group>"; };
37B3A4FE29CE15AC0029821F /* OpenAISwift.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OpenAISwift.swift; sourceTree = "<group>"; };
37B3A51629CE16330029821F /* ImageGeneration.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageGeneration.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -211,6 +213,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
37B2998729F97C5D00971690 /* libSDL2.a in Frameworks */,
376437AE29A75B2C00297AC6 /* Accelerate.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -228,6 +231,7 @@
376437AC29A75B2C00297AC6 /* Frameworks */ = {
isa = PBXGroup;
children = (
37B2998429F97C1000971690 /* libSDL2.a */,
376437AD29A75B2C00297AC6 /* Accelerate.framework */,
);
name = Frameworks;
Expand Down Expand Up @@ -858,23 +862,20 @@
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GENERATE_INFOPLIST_FILE = YES;
HEADER_SEARCH_PATHS = /opt/homebrew/include/SDL2;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = /opt/homebrew/lib;
MARKETING_VERSION = 1.0;
OTHER_CFLAGS = (
"-I/opt/homebrew/include/SDL2",
"-D_THREAD_SAFE",
"-DGGML_USE_ACCELERATE",
);
OTHER_LDFLAGS = (
"-L/opt/homebrew/lib",
"-lSDL2",
);
PRODUCT_BUNDLE_IDENTIFIER = org.phrack.LibWhisper;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand All @@ -899,23 +900,20 @@
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GENERATE_INFOPLIST_FILE = YES;
HEADER_SEARCH_PATHS = /opt/homebrew/include/SDL2;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = /opt/homebrew/lib;
MARKETING_VERSION = 1.0;
OTHER_CFLAGS = (
"-I/opt/homebrew/include/SDL2",
"-D_THREAD_SAFE",
"-DGGML_USE_ACCELERATE",
);
OTHER_LDFLAGS = (
"-L/opt/homebrew/lib",
"-lSDL2",
);
PRODUCT_BUNDLE_IDENTIFIER = org.phrack.LibWhisper;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down

0 comments on commit 58c407d

Please sign in to comment.