-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate iOS framework in cmake (#722)
* import ye ole’ Info.plist from polly framework scripts https://github.com/ruslo/polly/blob/master/scripts/Info.plist * add DRISHTI_TOP_DIR reference * import framework boilerplate https://cmake.org/cmake/help/latest/prop_tgt/FRAMEWORK.html#framework * framework fixes * adapt Info.plist to Info.plist.in template and add configure_file() step to populate required variables * disable code signing to avoid issues with install stage of framework, since it isn’t needed and the install step modifications invalidate the build tree code signing * add config_file() step to generate fields in the Info.plist * set “@rpath” in target properties since the normal shared lib hooks don’t work for frameworks * fixup drishti_include_install_dir path in framework case since PUBLIC_HEADERS doesn’t include everything * add FRAMEWORK section to install targets * bump patch version for cmake updates 0.12.5 * define DRISHTI_SDK_MAX_FACES * Set FRAMEWORK DESTINATION to "." See "On systems supporting OS X Frameworks and Application Bundles...": * https://cmake.org/cmake/help/latest/command/find_package.html See also: * https://github.com/forexample/ios-dynamic-framework/blob/bde7e3f14d5dbaabf7846f29508f6a5cd955d3a3/bar/CMakeLists.txt#L127 * Remove trailing whitespaces * iOS framework: Do not install headers explicitly Headers are part of the iOS framework already, there is no need to install them explicitly * iOS: Improve INSTALL_NAME_DIR https://github.com/forexample/ios-dynamic-framework/blob/bde7e3f14d5dbaabf7846f29508f6a5cd955d3a3/bar/CMakeLists.txt#L45-L46 * Remove trailing whitespaces * FACEFILTER_CODE_SIGN -> DRISHTI_CODE_SIGN * iOS: Load dynamic framework into FaceFilter app * Update submodule * Support iOS framework in example * bin/jenkins.sh: Set CMAKE_CONFIGURATION_TYPES
- Loading branch information
1 parent
3930201
commit ee86763
Showing
8 changed files
with
167 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>@CF_BUNDLE_SHORT_VERSION_STRING@</string> | ||
<key>CFBundleVersion</key> | ||
<string>@CF_BUNDLE_VERSION@</string> | ||
<key>CFBundleName</key> | ||
<string>@CF_BUNDLE_NAME@</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>@CF_BUNDLE_IDENTIFIER@</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.