ruslo / polly

:wrench: Collection of CMake toolchain files and scripts for cross-platform build and CI testing (GCC, Visual Studio, iOS, Android, Clang analyzer, sanitizers etc.)
BSD 2-Clause "Simplified" License
858 stars 191 forks source link

Add .polly #49

Open ruslo opened 8 years ago

ruslo commented 8 years ago

Use ~/.polly and local .polly (do we need local?) to add some default user's arguments like --jobs N or --fwd HUNTER_CONFIGURATION_TYPES=Release. .polly can be ini-like file. E.g. say we have several devices:

~/.polly can contain:

[global] # reserved type
  jobs = N
  fwd = HUNTER_CONFIGURATION_TYPES=Release # is it correct syntax?
  verbose = True
[ipad]
  toolchain = ios-9-0-armv7
[iphone]
  toolchain = ios-9-1-armv7
[htc]
  toolchain = android-ndk-r10e-api-21-arm64-v8a
[prest]
  toolchain = android-ndk-r10e-api-19-armeabi-v7a-neon

Usage: build.py --type htc or build.py --class htc

ruslo commented 8 years ago

Probably extending CMake is a better idea: