Giter Club home page Giter Club logo

Comments (4)

ruslo avatar ruslo commented on May 23, 2024

This seems headed for an explosion of *.cmake toolchains in the ${POLLY_ROOT} directory

For now I think about it as "add what you use". So it's limited by common sense. I guess nobody use 25000 toolchains produces by (21 versions of NDK) x (10 ABI) x (15 API) x (8 STL).

I'm wondering if it would make sense to extend to build.py command line options to provide dynamic toolchain configurations

Probably we can automatically generate top *.cmake files from python code: https://github.com/ruslo/polly/blob/master/bin/detail/toolchain_table.py

I'm fairly sure you've already thought through this at some level

Some thoughts I have:

  • autocomplete feature: #15 so users can press <TAB> and see what variants they have:
> build.py --toolchain android-ndk-<TAB>
r10e
r9d
r8e
  • some toolchain variants can be managed by Hunter. As you can see we already can set API level in custom config. Also I'm planning to add stl switching - i.e. you can control stlport/gnustl both version and static/shared.

from polly.

ruslo avatar ruslo commented on May 23, 2024

Probably we can automatically generate top *.cmake files from python code

#31

from polly.

xpol avatar xpol commented on May 23, 2024

Yes, Its really needed.
generate the top *.cmake files base on some templates and a list of tool chain names.

from polly.

ruslo avatar ruslo commented on May 23, 2024

Just for the record the goal doesn't changed but I think about another implementation approach:

For now I think about it as "add what you use". So it's limited by common sense. I guess nobody use 25000 toolchains produces by (21 versions of NDK) x (10 ABI) x (15 API) x (8 STL).

One of the criterion - toolchains used in AppVeyor/Travis CI testing. There can't be 25000 rows in testing matrix hence there will not be 25000 toolchains in Polly. Of course user can generate by himself any number of extra toolchains he needed.

Probably we can automatically generate top *.cmake files from python code

I'm planning to try it in CMake experimental fork. Will think about integration with aliasing feature, plus GUI widget. Just to clarify: user will able to generate toolchains and add it to regular CMake by -DCMAKE_TOOLCHAIN_FILE, for exterimental CMake there will be some sort of builtin toolchains like -DCMAKE_BUILTIN_TOOLCHAIN_FILE=android-ndk-r10e-api-19-armeabi-v7a-neon or with alias cmake -a android.

autocomplete feature

Goes to "aliasing feature" autocompletion.

from polly.

Related Issues (20)

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.