8000 GitHub - forexample/cmake-osx-framework: Example of building/adding OS X/iOS framework with CMake and build.py
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

forexample/cmake-osx-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example of building/adding Mac OS X/iOS framework with CMake and build.py.

OS X

Build framework foo:

> rm -rf _* # remove _builds/_install/_framework
> build.py --toolchain libcxx --verbose --config Release --framework --home Foo
...
Framework created: /.../_framework/libcxx/foo.framework
...

You can check framework manually:

> ls _framework/libcxx/foo.framework/Headers/foo.hpp
_framework/libcxx/foo.framework/Headers/foo.hpp
> ls _framework/libcxx/foo.framework/Versions/A/foo
_framework/libcxx/foo.framework/Versions/A/foo

Use framework:

> rm -rf _builds _install
> build.py --toolchain libcxx --verbose --config Release --test --home Boo
...
1: Hello from foo
...

iOS

Build framework foo:

> rm -rf _* # remove _builds/_install/_framework
> build.py --toolchain ios-8-2 --verbose --config Release --framework --home Foo
...
Framework created: /.../_framework/ios-8-2/foo.framework
...

You can check framework manually:

> ls _framework/ios-8-2/foo.framework/Headers/foo.hpp
_framework/ios-8-2/foo.framework/Headers/foo.hpp
> ls _framework/ios-8-2/foo.framework/Versions/A/foo
_framework/ios-8-2/foo.framework/Versions/A/foo

Use framework:

> rm -rf _builds _install
> build.py --toolchain ios-8-2 --verbose --config Release --open --home Boo
> # Run application on device/simulator using Xcode

About

Example of building/adding OS X/iOS framework with CMake and build.py

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0