uilianries / conan-darwin-toolchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

conan-darwin-toolchain

Build Status

Toolchain required to cross build to any darwin platform.

Setup

This package REQUIRES Xcode to be installed.

In the future, it might be added as a build_requirement.

Create a profile for cross building and including this toolchain, example:

iOS

ios_profile

include(default)

[settings]
os=iOS
os.version=9.0
arch=armv7

[build_requires]
darwin-toolchain/1.3.0@ezored/stable

Go to your project and cross-build your dependency tree with this toolchain:

conan install . --profile ios_profile

Other platforms

This toolchain works with every darwin platform (macOS/iOS/tvOS/watchOS).

You only need to create a slightly different profile, example:

watchos_profile

include(default)

[settings]
os=iOS
os.version=4.0
arch=armv7

[build_requires]
darwin-toolchain/1.3.0@ezored/stable

Bitcode support

Bitcode is an option available on iOS, it is required on tvOS/watchOS.

It is set by default to True.

So you can only set it to False for iOS. Note that it is not defined for macOS.

Local development

  1. Install python packages:
    pip install conan_package_tools bincrafters_package_tools
  2. Clone the project:
    git clone https://github.com/ezored/conan-darwin-toolchain.git
  3. Enter on project folder:
    cd conan-darwin-toolchain
  4. Install:
    conan create . ezored/stable
  5. Build:
    python build.py
    or
    rm -rf test_package/build/ && python build.py
  6. Check all generated files:
    find test_package/build -name hello -exec lipo -info {} \;
  7. To install it as local package:
    conan export-pkg . darwin-toolchain/1.3.0@ezored/stable -f

About

License:MIT License


Languages

Language:Python 81.7%Language:Shell 14.3%Language:CMake 3.7%Language:C 0.3%