Support a configurable build directory (#5601)

This change adds a top-level getBuildDirectory func and funcs for
android, aot, asset, ios build products.

Developers may now add a "build-dir" mapping to their
~/.flutter_settings (JSON format) config file. Output directory is
relative to the main flutter application directory.

This change also changes the default build directory for iOS builds to a
subdirectory of the configured build directory, 'build/ios' by default.
This commit is contained in:
Chris Bracken
2016-08-25 16:38:19 -07:00
committed by GitHub
parent 852a00a17b
commit b5f763b45e
17 changed files with 106 additions and 44 deletions

View File

@@ -65,7 +65,7 @@ BuildApp() {
AssertExists ${target_path}
local build_dir=${SYMROOT:-build}
local build_dir=${FLUTTER_BUILD_DIR:-build}
local local_engine_flag=""
if [[ -n "$LOCAL_ENGINE" ]]; then
local_engine_flag="--local-engine=$LOCAL_ENGINE"