Commit c2ec05f9 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

Add an xcode project

parent 5bdd211d
Pipeline #97409 passed with stages
in 14 minutes and 23 seconds
......@@ -57,7 +57,7 @@ style-check:
extends: .debian-amd64-common
stage: style
script:
- git grep -I -n -P "\t|\r| $" -- . ':(exclude)*/compat/*' && echo "Trailing whitespace" && exit 1
- git grep -I -n -P "\t|\r| $" -- . ':(exclude)*/compat/*' ':(exclude)*.xcodeproj/*' ':(exclude)*/*.plist' && echo "Trailing whitespace" && exit 1
- git grep -I -n -i -e 'david' --and --not -e 'copyright' -- . ':(exclude)THANKS.md' ':(exclude).gitlab-ci.yml' && echo "Misspelled dav1d" && exit 1
- git grep -I -l -z "" -- . ':(exclude)*/compat/*' | while IFS= read -r -d '' i; do
if [ -n "$(tail -c 1 "$i")" ]; then
......
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
5BF0320221BDBCF900516082 /* bench.c in Sources */ = {isa = PBXBuildFile; fileRef = 5BF0320121BDBCF900516082 /* bench.c */; };
5BF0320421BDBD9000516082 /* Chimera-AV1-8bit-1920x1080-6736kbps.ivf in Resources */ = {isa = PBXBuildFile; fileRef = 5BF0320321BDBD9000516082 /* Chimera-AV1-8bit-1920x1080-6736kbps.ivf */; };
5BF0320A21BE56AC00516082 /* libdav1d_cli.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5BF0320921BE56AC00516082 /* libdav1d_cli.a */; };
5BF0320C21BE56B600516082 /* libdav1d.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5BF0320B21BE56B600516082 /* libdav1d.a */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
5BF030D421BDB28E00516082 /* dav1d.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = dav1d.app; sourceTree = BUILT_PRODUCTS_DIR; };
5BF030E521BDB28F00516082 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5BF0320121BDBCF900516082 /* bench.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = bench.c; path = tools/bench.c; sourceTree = "<group>"; };
5BF0320321BDBD9000516082 /* Chimera-AV1-8bit-1920x1080-6736kbps.ivf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Chimera-AV1-8bit-1920x1080-6736kbps.ivf"; sourceTree = "<group>"; };
5BF0320921BE56AC00516082 /* libdav1d_cli.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libdav1d_cli.a; path = "build-ios-arm64/tools/libdav1d_cli.a"; sourceTree = "<group>"; };
5BF0320B21BE56B600516082 /* libdav1d.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libdav1d.a; path = "build-ios-arm64/src/libdav1d.a"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
5BF030D121BDB28E00516082 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
5BF0320C21BE56B600516082 /* libdav1d.a in Frameworks */,
5BF0320A21BE56AC00516082 /* libdav1d_cli.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
5BF030CB21BDB28E00516082 = {
isa = PBXGroup;
children = (
5BF0320121BDBCF900516082 /* bench.c */,
5BF0320B21BE56B600516082 /* libdav1d.a */,
5BF0320921BE56AC00516082 /* libdav1d_cli.a */,
5BF030D621BDB28E00516082 /* dav1d */,
5BF030D521BDB28E00516082 /* Products */,
);
sourceTree = "<group>";
};
5BF030D521BDB28E00516082 /* Products */ = {
isa = PBXGroup;
children = (
5BF030D421BDB28E00516082 /* dav1d.app */,
);
name = Products;
sourceTree = "<group>";
};
5BF030D621BDB28E00516082 /* dav1d */ = {
isa = PBXGroup;
children = (
5BF0320321BDBD9000516082 /* Chimera-AV1-8bit-1920x1080-6736kbps.ivf */,
5BF030E521BDB28F00516082 /* Info.plist */,
);
path = dav1d;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
5BF030D321BDB28E00516082 /* dav1d */ = {
isa = PBXNativeTarget;
buildConfigurationList = 5BF030EA21BDB28F00516082 /* Build configuration list for PBXNativeTarget "dav1d" */;
buildPhases = (
5BF030D021BDB28E00516082 /* Sources */,
5BF030D121BDB28E00516082 /* Frameworks */,
5BF030D221BDB28E00516082 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = dav1d;
productName = dav1d;
productReference = 5BF030D421BDB28E00516082 /* dav1d.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
5BF030CC21BDB28E00516082 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1010;
ORGANIZATIONNAME = VideoLAN;
TargetAttributes = {
5BF030D321BDB28E00516082 = {
CreatedOnToolsVersion = 10.1;
};
};
};
buildConfigurationList = 5BF030CF21BDB28E00516082 /* Build configuration list for PBXProject "dav1d" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 5BF030CB21BDB28E00516082;
productRefGroup = 5BF030D521BDB28E00516082 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
5BF030D321BDB28E00516082 /* dav1d */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
5BF030D221BDB28E00516082 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5BF0320421BDBD9000516082 /* Chimera-AV1-8bit-1920x1080-6736kbps.ivf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
5BF030D021BDB28E00516082 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5BF0320221BDBCF900516082 /* bench.c in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
5BF030E821BDB28F00516082 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
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;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
APPBUNDLE,
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
name = Debug;
};
5BF030E921BDB28F00516082 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
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;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = APPBUNDLE;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
5BF030EB21BDB28F00516082 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = dav1d/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/build-ios-arm64/tools",
"$(PROJECT_DIR)/build-ios-arm64/src",
);
PRODUCT_BUNDLE_IDENTIFIER = org.videolan.dav1d;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
USER_HEADER_SEARCH_PATHS = (
"$(SRCROOT)",
"$(SRCROOT)/tools",
"$(SRCROOT)/include",
"$(SRCROOT)/include/dav1d",
);
};
name = Debug;
};
5BF030EC21BDB28F00516082 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = dav1d/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/build-ios-arm64/tools",
"$(PROJECT_DIR)/build-ios-arm64/src",
);
PRODUCT_BUNDLE_IDENTIFIER = org.videolan.dav1d;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
USER_HEADER_SEARCH_PATHS = (
"$(SRCROOT)",
"$(SRCROOT)/tools",
"$(SRCROOT)/include",
"$(SRCROOT)/include/dav1d",
);
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
5BF030CF21BDB28E00516082 /* Build configuration list for PBXProject "dav1d" */ = {
isa = XCConfigurationList;
buildConfigurations = (
5BF030E821BDB28F00516082 /* Debug */,
5BF030E921BDB28F00516082 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
5BF030EA21BDB28F00516082 /* Build configuration list for PBXNativeTarget "dav1d" */ = {
isa = XCConfigurationList;
buildConfigurations = (
5BF030EB21BDB28F00516082 /* Debug */,
5BF030EC21BDB28F00516082 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 5BF030CC21BDB28E00516082 /* Project object */;
}
<?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>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
......@@ -314,7 +314,7 @@ else
dav1d_soversion = dav1d_api_version_major
endif
libdav1d = library('dav1d',
libdav1d = static_library('dav1d',
libdav1d_sources,
libdav1d_asm_objs,
libdav1d_rc_obj,
......
......@@ -137,3 +137,14 @@ dav1d_bench = executable('dav1d_bench',
],
install : true,
)
dav1d_cli = static_library('dav1d_cli',
dav1d_sources + dav1d_input_sources + dav1d_output_sources,
rev_target,
c_args : ['-DWRAP_MAIN'],
link_with : libdav1d,
include_directories : [dav1d_inc_dirs],
dependencies : [getopt_dependency, thread_dependency],
install : true,
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment