52 Commits

Author SHA1 Message Date
Chris Bracken
a2a3dc05ae
Catch divide-by-zero errors early in license tool (#4382)
If Progress is instantiated with a max of 0, throw immediately to avoid
a divide-by-zero later in toString(). This typically happens if the tool
recurses over an empty top-level component, which can happen when a
component is moved around in the repo and the developer hasn't cleaned
up old empty directories from their git client.
2017-11-21 15:42:17 -08:00
Chris Bracken
546cc39f84
Minor formatting fix in license script (#4381)
Fixes an errrant tab and unnecessary braces.
2017-11-21 15:34:13 -08:00
amirh
5afc1e2848
Enable WebP (#4359) 2017-11-15 16:49:50 -08:00
Chris Bracken
a8237ecca0
Roll garnet to b3ba6b6d6ab8ef658278cc43c9f839a8a8d1718e (#4335)
* Roll garnet to b3ba6b6d6ab8ef658278cc43c9f839a8a8d1718e

Also includes a buildroot patch to pick up new dependency:
  build/config/fuchsia/sdk.gni

This fixes a build breakage in
garnet/public/lib/fxl/strings/string_view_unittest.cc wherein a variable
'sw5' was declared but the test erroneously tested against 'sw4' from
the previous test.

* Update license script for garnet

Reflects structural changes in directories we do not depend on. This
filters out the following directories in addition to what was already
filtered:
  garnet/drivers
  garnet/packages
  garnet/public/build/
  garnet/public/rust/

* Update licenses
2017-11-08 15:25:07 -08:00
Ryan Macnak
d615678e6c
Roll tonic to da66b94839f788a0bffc34fd9bdfef3360af8c18. (#4332)
Update to moved repository.

Issue https://github.com/flutter/flutter/issues/9998
2017-11-08 14:04:29 -08:00
Chris Bracken
16f6d3f998 Eliminate dependency on chromium build tools repo (#4269)
The hermetic Xcode tooling in that repo is not yet easily usable for
Xcode 9. There are two main issues:

1. The tooling currently assumes that macOS host builds should use
   Xcode 8, whereas iOS builds should use Xcode 9. Flutter builds should
   use Xcode 9 in all cases.
2. The tooling currently includes a bail-out condition for iOS builds
   that exits non-zero immediately (Chrome hasn't yet migrated its iOS
   build to this tooling).

In the meantime, I've manually updated the bot infra with Xcode 9 and
we'll continue to use the current find_xcode.py tooling until Chrome's
new Mac/iOS tooling is ready.
2017-10-24 10:17:35 -07:00
P.Y. Laligand
6fcb45991d Move //dart to //third_party/dart. (#4245) 2017-10-19 01:20:38 -07:00
Chris Bracken
04ad2846bf Add dependency on chromium/src/build for Mac/iOS build (#4224)
* Add dependency on chromium/src/build for Mac/iOS build

Preparation for migrating to mac_toolchain.py for installing/configuring
Xcode versions on the Mac build bots.

* Exclude third_party/chromium_build from licence script

It's used only at build time to fetch and install the correct Xcode
version.
2017-10-17 11:07:54 -07:00
Jason Simmons
e31d0f4ea1 Update the license script to include the topaz root and exclude Skia's version of libpng (#4136) 2017-09-22 14:03:14 -07:00
Michael Goderbauer
3df8c88f89 More clarification about license script (#4104) 2017-09-13 15:41:03 -07:00
Michael Goderbauer
f808426ef4 Clarify licenses/README.md (#4102) 2017-09-13 14:04:34 -07:00
Michael Goderbauer
08961f8ec5 Format all c-like sources with clang-format (#4088)
* format

* license script adaptions

* updated licenses

* review comments
2017-09-12 15:36:20 -07:00
Jason Simmons
7fd7ecdcc3 Update licenses for Garnet/FXL renaming (#4093) 2017-09-12 09:51:33 -07:00
Jason Simmons
9446ff5d8f Update the license script for the Garnet tree (#4045)
See https://github.com/flutter/engine/pull/4043
2017-09-01 11:00:59 -07:00
Jason Simmons
2ada4107de Move libtxt under flutter/third_party in the license script (#4015) 2017-08-25 16:16:00 -07:00
Jason Simmons
9abc70c324 Update the license script to handle the new version of ICU (#4009) 2017-08-25 14:17:51 -07:00
Alexander Aprelev
fe0e123b12 Introduce frontend_server that flutter tools will use for compilation. (#3982)
* Introduce frontend_server that allows for interactive and batch modes.

Example of batch mode:
```
$ dart $HOME/p/f/t11/flutter/engine/src/flutter/frontend_server/bin/server.dart --sdk-root=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk --platform-kernel-dill=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk/platform.dill $HOME/p/f/t11/flutter/flutter/examples/flutter_gallery/lib/main.dart

out: result 79256789-598c-4909-a9e4-0ef36d4c26ba
out: 'State&TickerProviderStateMixin^#U0^' is exported from both 'package:flutter/src/widgets/animated_cross_fade.dart' and 'package:flutter/src/widgets/animated_list.dart'.
...
out: Superclass has no method named 'hitTest'.
out: 79256789-598c-4909-a9e4-0ef36d4c26ba $HOME/p/f/t11/flutter/flutter/examples/flutter_gallery/lib/main.dart.dill
$
```

Example of interactive mode - communication via stdin/stdout:
```
$ dart $HOME/p/f/t11/flutter/engine/src/flutter/frontend_server/bin/server.dart --sdk-root=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk --platform-kernel-dill=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk/platform.dill --incremental

out: Frontend server is ready.
in: compile abc.dart
out: result fd99c0f9-12bb-4083-818e-2521d454fdc8
out: fd99c0f9-12bb-4083-818e-2521d454fdc8 abc.dart.dill
in: accept
in: recompile kuka
in: 123.dart
in: 456.dart
in: kuka
out: result d12f8d05-6c79-44f7-a775-1d3469e1be53
in: quit
$
```

* Add test. Cleanup dependencies.

* One more test with mocks

* Remove platform-kernel option. Refactored CompilerOptions. Clean up comments.

* Update license

* Use Uri.base.resolve consistently. Ensure folder path for sdk root. Fix test.

* Fix main_dart for frontend_server build target

* Reintroduce .packages file, add README.md, revert changes to licenses_flutter

* Run analyzer on frontend-server. Update .packages deps so tests can be run too.

* Add analyzer options file

* Clean up dependencies

* Add frontend_server files to license file back

* Fix comment in analysis_options.yaml

* Run frontend_server tests in travis

* Update licenses

* Change a+x permission on travis/test.sh

* pub get before pub run test

* Fix path to when

* Clarify accept/reject instructions

* Formatting, fixed docs, style

* Update license script to skip .travis.yml, when/example. Update license file.

* Update style nits

* Fix license

* Trim license extracted text. Fix licenses

* Update licenses_third_party signature

* Few more tests

* Update dart license

* Update dart license

* Style changes. Fix return value for Future<Null>
2017-08-21 12:55:17 -07:00
Jason Simmons
c80860ad1c Skip third_party/benchmark in the license source crawl (#3986)
Also regenerate sky_engine/LICENSE to include libtxt
2017-08-16 16:35:14 -07:00
Jason Simmons
50b29514c2 Exclude lib/txt/third_party/fonts from the license source tree traversal (#3960) 2017-08-07 16:04:08 -07:00
Carlo Bernaschina
fabd500e56 Upgrade progress reporting in licenses tool (#3951)
On linux the licenses tools progress reporting was cluttering the screen with extra characters and sometimes was missing the last progress update.
2017-08-04 11:30:55 -07:00
Jason Simmons
59e44617cf Simplify a license script regex that was not completing on a Skia source file (#3929)
See https://github.com/flutter/engine/pull/3881
2017-07-27 15:28:05 -07:00
Michael Goderbauer
f02133b5f6 Rename licenses README to get nice formatting on Github (#3853) 2017-07-07 13:02:51 -07:00
Ian Hickson
ca7836108b Roll tonic to pick up my crash fixes (#3816) 2017-06-23 12:32:44 -07:00
Todd Volkert
919f0ad063 Create FlutterFragmentActivity (#3757)
This creates a `FlutterFragmentActivity` class that extends
the Android v4 Support librray's `FragmentActivity` class.
However, we intentionally do not bundle the support library
with our engine, so apps that wish to use this class are
responsible for including the support library .jar file in
their runtime deps when creating the final app.

flutter/flutter#10072
2017-06-08 16:40:37 -07:00
Chris Bracken
c9bbcbec3a Exclude ios_tools from license script (#3750)
ios_tools exists to provide find_xcode.py, which is used only on the Mac
Engine bot to select the correct version of Xcode to build with.
2017-06-07 10:01:44 -07:00
Ian Hickson
ce9251b349 Remove the Android NDK and SDK from the license file. (#3627)
As advised.
2017-04-25 17:22:25 -07:00
Ryan Macnak
a8a4a9f691 Remove dead references to //base. (#3542) 2017-03-30 08:54:47 -07:00
Ryan Macnak
4d5702b2d5 Roll Dart VM to 141b6351baacaedf23e740b5b7354970f2ac0979. (#3543) 2017-03-29 18:17:17 -07:00
Jason Simmons
da81fa47d5 Skip third_party/android_tools when computing signatures for the license roots (#3518)
android_tools contains a toolchain that is specific to each host platform

Fixes https://github.com/flutter/flutter/issues/8969
2017-03-27 16:54:59 -07:00
Jason Simmons
117137a51c Update the docs for the license script (#3525) 2017-03-27 14:27:31 -07:00
Jason Simmons
b9bdb09806 Ensure that the license script does not mix state among components (#3514)
The script keeps state in the objects representing the repository files,
and it also maintains a cache of licenses.  This state should be freshly
recreated for each component so data from previous components does not
leak through.
2017-03-24 15:28:29 -07:00
Jason Simmons
aab6f675e6 Add .DS_Store to the license script's file name filter (#3507)
Fixes https://github.com/flutter/flutter/issues/8968
2017-03-24 10:51:17 -07:00
Jason Simmons
9e1891c220 Apply the file name filter to all licensed files (not just source/text files) (#3491)
Fixes https://github.com/flutter/flutter/issues/8115
2017-03-22 14:29:27 -07:00
Michael Goderbauer
6a00eee9f3 whitespace fix (#3463) 2017-03-06 13:14:56 -08:00
Michael Goderbauer
1bd1f0e25b Roll Dart to 890dff146ac4733018c059b36bc4d67c45da3232 (#3461)
* Roll Dart to 890dff146ac4733018c059b36bc4d67c45da3232

* uddate licenses
2017-03-03 19:30:13 -08:00
Jason Simmons
4946d44925 Skip license processing for top-level source directories that are unchanged (#3437)
See https://github.com/flutter/flutter/issues/8106
2017-03-01 10:36:51 -08:00
Ryan Macnak
588d6a4798 Roll Dart VM to 9a7a04525f638b57a746706c3575df66cf02bc2d. (#3413)
Picks up changes to include inlined frames and line numbers in AOT stack traces.
2017-02-13 13:34:12 -08:00
Michael Goderbauer
0206d20dab Make gen_snapshot compile on Windows (#3355) 2017-01-23 14:12:26 -08:00
Chris Bracken
ab3fef5e7d Add MultiLicense license class (#3349)
Add MultiLicense license class
2017-01-20 16:25:04 -08:00
Chinmay Garde
94306f4103 Add a Vulkan backend for Fuchsia and Android. (#3282) 2017-01-20 14:37:10 -08:00
Chris Bracken
596b3e971c Trim off BoringSSL header boilerplate (#3347)
The first 23 lines of the BoringSSL license contain informational text
including Buganizer issue numbers that is not part of the license text
itself.
2017-01-19 14:06:00 -08:00
Chris Bracken
5406903208 Add OpenSSL as supported licence type (#3345)
* Add OpenSSL as supported licence type

Adds special handling for the OpenSSL licensed files under BoringSSL.
Specifically, some of the ARM assembly files in the latest Dart SDK are
dual-licensed with OpenSSL.

* Support blocks that ref by type with no copyright

The upcoming Dart SDK includes files (e.g., sha256-armv4.S) with a block
that specifies teh code is dual-licenced under OpenSSL, but doesn't
include a copyright date of its own.
2017-01-18 17:38:43 -08:00
Chris Bracken
81d8973caa Search full license root subtree in search by type (#3343)
Previously, search by license type only searched the contents of the
chain of direct ancestor subdirectories. This change broadens the search
to the full subtree of the current license root when no license is found
in the chain of direct ancestor directories.
2017-01-17 15:57:19 -08:00
Chris Bracken
8316841960 Add @ character to set of supported comment chars (#3341)
Used in ARM assembly in BoringSSL after Dart SDK SHA
c1f00f786a87c36374f31818e6acf86ed1065e44.
2017-01-17 14:45:11 -08:00
Chris Bracken
ea78d625ea Extract more uses of the indent regex (#3337)
In 54d1913d9, we extracted a regular expression matching licence
indentation. This patch extracts two more instances.
2017-01-13 15:31:05 -08:00
Chris Bracken
08fa6b1672 Fix exception message formatting (#3332)
Add a couple missing newlines.
2017-01-10 17:28:04 -08:00
Chris Bracken
54d1913d9e Extract common indent constant (#3331) 2017-01-10 13:52:40 -08:00
Chris Bracken
1068c6f849 Ignore VERSION_MACOSX_[SN]DK in licence aggregator (#3330)
Not shipped to clients.
2017-01-10 12:43:16 -08:00
Chris Bracken
2d9d9bcb48 Remove commented out Intel licence block (#3329) 2017-01-10 12:43:00 -08:00
Ian Hickson
99b991290d Update licenses, and test that licenses are valid (#3286)
* Test that licenses are valid.

* Move license script from flutter/buildroot to flutter/engine
2016-12-02 14:51:39 -08:00