GithubHelp home page GithubHelp logo

preflight's Introduction

Preflight

A simple set of Python scripts to automate building static libraries for iOS. This script uses 'flightplans' as configuration items for building a library.

Usage

python preflight.py build <flightplan name>

Where <flightplan name> is the filename of any python script in the flightplans sub-directory without the '.py' extension. For example:

python preflight.py build libspatialite

Output currently goes to ~/iOS_libs and is not yet configurable. The library does not create a fat binary for you but it is easy to do:

lipo -create <path to armv7 lib> <path to armv7s lib> <path to i386 lib> -output myFatBinary.a

Obviously, if you build for other architectures than those above, you can add them as well.

Creating a Flightplan

Copy one of the existing ones and use it as a template. The flightplan.py script should also be used as reference since it contains the super class for all flightplans. Each flightplan is just a python script so it should be easily configurable.

More flightplans welcome!

Misc

The build directory is preflight/Flightbag. This directory is conveniently ignored by .gitignore.

TODO

  • The flightplans are currently configured for what I need at my place of work (ForeFlight). Work needs to be done to allow custom configurations with ease.
  • Create fat binaries automatically
  • Configurable output location
  • Package lib + necessary header files

License

Copyright (c) 2013 Raymond A. Farnham

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

preflight's People

Contributors

aaron-foreflight avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

preflight's Issues

Cannot build gdal 1.10.1 on Maverick Xcode 5.0.2

Hi,
I'm working hard on compiling gdal for iOS and I ran into your python scripts (wonderful work btw) but I'm stuck with a weird issue.
let me explain the situation:
1- gdal 1.10.0 won't be compiled because of some known issues with OSX/iOS on gdal side discussed here and here
2- After changing gdal.py to reflect the need to download 1.10.1 instead of 1.10.0, when I run

python preflight.py build gdal

certain errors come up that when I investigate, I can see that the linker is trying to link standard libraries from OSX SDK (in /usr/include/sys) instead of iOS SDK (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/sys)! this leads to errors like _Unsupported Architecture_ in cdef.h and all.

P.S.: proj4 gets compiled for all architectures and is present in ~/iOS_libs output directory, gdal compiles for i386 & x86_64 only.
P.P.S: I have limited my Archs to armv7 for the sake of speed. I had to remove arm64 because it wouldn't pass for proj4.
same error goes for 1.10.0,1.10.1, 1.9.2

How can I overcome this issue?

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.