Skip to content

Commit

Permalink
ios: static framework
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Oct 30, 2021
1 parent 7c7be21 commit 6c7841b
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 58 deletions.
2 changes: 1 addition & 1 deletion xcode/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source 'https://github.com/cppfw/cocoapods-repo.git'

project 'agg/agg.xcodeproj'

platform :ios, '8.0'
platform :ios, '11.0'

target "agg" do
end
162 changes: 106 additions & 56 deletions xcode/agg/agg.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,13 @@
objectVersion = 50;
objects = {

/* Begin PBXCopyFilesBuildPhase section */
2C571F262535174700A7E6B9 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "include/$(PRODUCT_NAME)";
dstSubfolderSpec = 16;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
2C571F282535174700A7E6B9 /* libagg.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libagg.a; sourceTree = BUILT_PRODUCTS_DIR; };
2C64DD75272D5A2B0020404C /* agg.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = agg.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2C64DD79272D5A2C0020404C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
2C571F252535174700A7E6B9 /* Frameworks */ = {
2C64DD72272D5A2B0020404C /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -33,75 +22,104 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
2C571F1F2535174700A7E6B9 = {
2C64DD6B272D5A2B0020404C = {
isa = PBXGroup;
children = (
2C571F292535174700A7E6B9 /* Products */,
2C64DD77272D5A2B0020404C /* agg */,
2C64DD76272D5A2B0020404C /* Products */,
);
sourceTree = "<group>";
};
2C571F292535174700A7E6B9 /* Products */ = {
2C64DD76272D5A2B0020404C /* Products */ = {
isa = PBXGroup;
children = (
2C571F282535174700A7E6B9 /* libagg.a */,
2C64DD75272D5A2B0020404C /* agg.framework */,
);
name = Products;
sourceTree = "<group>";
};
2C64DD77272D5A2B0020404C /* agg */ = {
isa = PBXGroup;
children = (
2C64DD79272D5A2C0020404C /* Info.plist */,
);
path = agg;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
2C64DD70272D5A2B0020404C /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
2C571F272535174700A7E6B9 /* agg */ = {
2C64DD74272D5A2B0020404C /* agg */ = {
isa = PBXNativeTarget;
buildConfigurationList = 2C571F312535174700A7E6B9 /* Build configuration list for PBXNativeTarget "agg" */;
buildConfigurationList = 2C64DD7D272D5A2C0020404C /* Build configuration list for PBXNativeTarget "agg" */;
buildPhases = (
2C571F242535174700A7E6B9 /* Sources */,
2C571F252535174700A7E6B9 /* Frameworks */,
2C571F262535174700A7E6B9 /* CopyFiles */,
2C64DD70272D5A2B0020404C /* Headers */,
2C64DD71272D5A2B0020404C /* Sources */,
2C64DD72272D5A2B0020404C /* Frameworks */,
2C64DD73272D5A2B0020404C /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = agg;
productName = agg;
productReference = 2C571F282535174700A7E6B9 /* libagg.a */;
productType = "com.apple.product-type.library.static";
productReference = 2C64DD75272D5A2B0020404C /* agg.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
2C571F202535174700A7E6B9 /* Project object */ = {
2C64DD6C272D5A2B0020404C /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1150;
ORGANIZATIONNAME = cppfw;
LastUpgradeCheck = 1240;
TargetAttributes = {
2C571F272535174700A7E6B9 = {
CreatedOnToolsVersion = 11.5;
2C64DD74272D5A2B0020404C = {
CreatedOnToolsVersion = 12.4;
};
};
};
buildConfigurationList = 2C571F232535174700A7E6B9 /* Build configuration list for PBXProject "agg" */;
buildConfigurationList = 2C64DD6F272D5A2B0020404C /* Build configuration list for PBXProject "agg" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 2C571F1F2535174700A7E6B9;
productRefGroup = 2C571F292535174700A7E6B9 /* Products */;
mainGroup = 2C64DD6B272D5A2B0020404C;
productRefGroup = 2C64DD76272D5A2B0020404C /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
2C571F272535174700A7E6B9 /* agg */,
2C64DD74272D5A2B0020404C /* agg */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
2C64DD73272D5A2B0020404C /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
2C571F242535174700A7E6B9 /* Sources */ = {
2C64DD71272D5A2B0020404C /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -111,7 +129,7 @@
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
2C571F2F2535174700A7E6B9 /* Debug */ = {
2C64DD7B272D5A2C0020404C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
Expand All @@ -137,13 +155,15 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand All @@ -161,15 +181,17 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.5;
IPHONEOS_DEPLOYMENT_TARGET = 14.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
2C571F302535174700A7E6B9 /* Release */ = {
2C64DD7C272D5A2C0020404C /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
Expand All @@ -195,13 +217,15 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -213,64 +237,90 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.5;
IPHONEOS_DEPLOYMENT_TARGET = 14.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
2C571F322535174700A7E6B9 /* Debug */ = {
2C64DD7E272D5A2C0020404C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
HEADER_SEARCH_PATHS = ../../src/agg/include;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = agg/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_BUNDLE_IDENTIFIER = cppfw.github.io.agg;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = NO;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
2C571F332535174700A7E6B9 /* Release */ = {
2C64DD7F272D5A2C0020404C /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
HEADER_SEARCH_PATHS = ../../src/agg/include;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = agg/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_BUNDLE_IDENTIFIER = cppfw.github.io.agg;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = NO;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
2C571F232535174700A7E6B9 /* Build configuration list for PBXProject "agg" */ = {
2C64DD6F272D5A2B0020404C /* Build configuration list for PBXProject "agg" */ = {
isa = XCConfigurationList;
buildConfigurations = (
2C571F2F2535174700A7E6B9 /* Debug */,
2C571F302535174700A7E6B9 /* Release */,
2C64DD7B272D5A2C0020404C /* Debug */,
2C64DD7C272D5A2C0020404C /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
2C571F312535174700A7E6B9 /* Build configuration list for PBXNativeTarget "agg" */ = {
2C64DD7D272D5A2C0020404C /* Build configuration list for PBXNativeTarget "agg" */ = {
isa = XCConfigurationList;
buildConfigurations = (
2C571F322535174700A7E6B9 /* Debug */,
2C571F332535174700A7E6B9 /* Release */,
2C64DD7E272D5A2C0020404C /* Debug */,
2C64DD7F272D5A2C0020404C /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 2C571F202535174700A7E6B9 /* Project object */;
rootObject = 2C64DD6C272D5A2B0020404C /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
22 changes: 22 additions & 0 deletions xcode/agg/agg/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
</plist>

0 comments on commit 6c7841b

Please sign in to comment.