Skip to content

Commit 5302cf8

Browse files
authored
Merge pull request flutter#1 from flutter/master
Merge pull request from flutter/engine
2 parents 62cd86c + 90ad1e1 commit 5302cf8

File tree

915 files changed

+52175
-13494
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

915 files changed

+52175
-13494
lines changed

.cirrus.yml

Lines changed: 44 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ gke_container:
1111
task:
1212
env:
1313
CIRRUS_WORKING_DIR: "/tmp/github_repo"
14-
15-
replace_engine_script: |
14+
ENGINE_PATH: "/tmp/clean_engine"
15+
DEPOT_TOOLS: "/tmp/depot_tools"
16+
PATH: "$DEPOT_TOOLS:$PATH"
17+
depot_tools_script:
18+
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git $DEPOT_TOOLS
19+
gclient_sync_script: |
20+
mkdir -p $ENGINE_PATH/src
21+
echo 'solutions = [{"managed": False,"name": "src/flutter","url": "[email protected]:flutter/engine.git","deps_file": "DEPS", "custom_vars": {"download_android_deps" : False, "download_windows_deps" : False,},},]' > $ENGINE_PATH/.gclient
1622
cd $ENGINE_PATH/src
17-
rm -r flutter
23+
rm -rf flutter
24+
rm -rf out
1825
mv $CIRRUS_WORKING_DIR flutter
1926
gclient sync
2027
@@ -24,25 +31,53 @@ task:
2431
cd $ENGINE_PATH/src
2532
./flutter/tools/gn --unoptimized
2633
ninja -C out/host_debug_unopt
27-
test_host_script: cd $ENGINE_PATH/src && ./flutter/testing/run_tests.sh
34+
test_host_script: cd $ENGINE_PATH/src && ./flutter/testing/run_tests.sh host_debug_unopt
35+
- name: build_and_test_host_profile
36+
compile_host_script: |
37+
cd $ENGINE_PATH/src
38+
./flutter/tools/gn --runtime-mode profile --no-lto
39+
ninja -C out/host_profile
40+
test_host_script: cd $ENGINE_PATH/src && ./flutter/testing/run_tests.sh host_profile
41+
- name: build_and_test_host_release
42+
compile_host_script: |
43+
cd $ENGINE_PATH/src
44+
./flutter/tools/gn --runtime-mode release --no-lto
45+
ninja -C out/host_release
46+
test_host_script: cd $ENGINE_PATH/src && ./flutter/testing/run_tests.sh host_release
2847
- name: build_android
48+
get_android_sdk_script: |
49+
echo 'solutions = [{"managed": False,"name": "src/flutter","url": "[email protected]:flutter/engine.git","deps_file": "DEPS", "custom_vars": {"download_windows_deps" : False,},},]' > $ENGINE_PATH/.gclient
50+
cd $ENGINE_PATH/src
51+
gclient sync
52+
lint_host_script: |
53+
cd $ENGINE_PATH/src/flutter/tools/android_lint
54+
$ENGINE_PATH/src/third_party/dart/tools/sdks/dart-sdk/bin/pub get
55+
$ENGINE_PATH/src/third_party/dart/tools/sdks/dart-sdk/bin/dart bin/main.dart
2956
compile_host_script: |
3057
cd $ENGINE_PATH/src
3158
./flutter/tools/gn --android --unoptimized
3259
ninja -C out/android_debug_unopt
60+
mkdir javadoc_tmp
61+
./flutter/tools/gen_javadoc.py --out-dir javadoc_tmp
3362
3463
format_and_dart_test_task:
3564
container:
3665
image: gcr.io/flutter-cirrus/build-engine-image:latest
3766

3867
env:
3968
CIRRUS_WORKING_DIR: "/tmp/github_repo"
40-
41-
replace_engine_script: |
69+
DEPOT_TOOLS: "/tmp/depot_tools"
70+
ENGINE_PATH: "/tmp/clean_engine"
71+
PATH: "$DEPOT_TOOLS:$PATH"
72+
depot_tools_script:
73+
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git $DEPOT_TOOLS
74+
gclient_sync_script: |
75+
mkdir -p $ENGINE_PATH/src
76+
echo 'solutions = [{"managed": False,"name": "src/flutter","url": "[email protected]:flutter/engine.git","deps_file": "DEPS", "custom_vars": {"download_android_deps" : False, "download_windows_deps" : False,},},]' > $ENGINE_PATH/.gclient
4277
cd $ENGINE_PATH/src
43-
rm -r flutter
44-
cp $CIRRUS_WORKING_DIR -r ./flutter
78+
rm -rf flutter
79+
rm -rf out
80+
mv $CIRRUS_WORKING_DIR flutter
4581
gclient sync
46-
4782
format_script: cd $ENGINE_PATH/src/flutter && ./ci/format.sh
4883
build_script: cd $ENGINE_PATH/src/flutter && ./ci/build.sh

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ tags
2020
Thumbs.db
2121
.idea
2222
pubspec.lock
23+
.vscode/

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Name/Organization <email address>
55

66
Google Inc.
7+
The Chromium Authors
8+
The Fuchsia Authors
79
Jim Simon <[email protected]>
810
Ali Bitek <[email protected]>
911
Jacob Greenfield <[email protected]>

BUILD.gn

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
# Copyright 2014 The Chromium Authors. All rights reserved.
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

55
import("$flutter_root/common/config.gni")
66

7+
# Whether to build the dartdevc sdk, libraries, and source files
8+
# required for the flutter web sdk.
9+
declare_args() {
10+
full_dart_sdk = false
11+
}
12+
713
group("flutter") {
814
testonly = true
915

@@ -24,6 +30,12 @@ group("flutter") {
2430
"$flutter_root/frontend_server",
2531
"//third_party/dart:create_sdk",
2632
]
33+
34+
if (full_dart_sdk) {
35+
public_deps += [
36+
"$flutter_root/web_sdk",
37+
]
38+
}
2739
}
2840
}
2941

@@ -40,6 +52,7 @@ group("flutter") {
4052
"$flutter_root/runtime:runtime_unittests",
4153
"$flutter_root/shell/common:shell_unittests",
4254
"$flutter_root/shell/platform/embedder:embedder_unittests",
55+
"$flutter_root/shell/platform/embedder:embedder_a11y_unittests", # TODO(cbracken) build these into a different kernel blob in the embedder tests and load that in a test in embedder_unittests
4356
"$flutter_root/synchronization:synchronization_unittests",
4457
"$flutter_root/third_party/txt:txt_unittests",
4558
]

0 commit comments

Comments
 (0)