GithubHelp home page GithubHelp logo

templeblock / ios-cmake-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhoufusong/ios-cmake

0.0 2.0 0.0 23 KB

A CMake toolchain file for iOS development (this is a fork of a similar project found on code.google.com)

License: BSD 3-Clause "New" or "Revised" License

Shell 1.10% Objective-C 18.51% C++ 1.38% CMake 77.92% Objective-C++ 1.11%

ios-cmake-1's Introduction

A CMake tool file for iOS

ios-cmake

Tested with the following combinations:

  • XCode 8.2.x, iOS SDK 10.2
  • XCode 8.3.2, iOS SDK 10.3

Example usage

**NOTE: Change the -DIOS_PLATFORM to applicable value if targeting other platform. **

cmake .. -DCMAKE_TOOLCHAIN_FILE=../../ios.toolchain.cmake -DIOS_PLATFORM=SIMULATOR64 -DCMAKE_BUILD_TYPE=Release
cmake --build .

Options

  • Set -DIOS_PLATFORM to "SIMULATOR" (example above) to build for iOS simulator 32 bit (i386)
  • Set -DIOS_PLATFORM to "SIMULATOR64" to build for iOS simulator 64 bit (x86_64)
  • Set -DIOS_PLATFORM to "OS" to build for Device (armv7, armv7s, arm64)

* To combine all platforms into the same, use the LIPO tool. lipo -create ".a path" -output ".a name"; also you can use lipo -info to analysis it.*

ios-cmake-1's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.