103 Commits

Author SHA1 Message Date
Chinmay Garde
81f1819213
Remove ability to override mac_sdk_path in flutter/tools/gn (#11013)
This was only required to use an older i386 enabled Mac SDK with a newer version of Xcode for gen_snapshot. This limitation has been patched already.
2019-08-15 16:33:12 -07:00
James Clarke
ff484d4f69 [Windows] Alternative Windows shell platform implementation (#9835)
Start work on flutter/flutter#30726 by adding an alternative win32 shell platform implementation for Windows that is not based on GLFW and that uses LIBANGLE for rendering and native win32 windowing and input. This change does not replace the GLFW implementation but rather runs side by side with it producing a secondary flutter_windows_win32.dll artifact. The following items must be added to attain parity with the GLFW implementation:
- Custom task scheduling
- Support for keyboard modifier keys
- Async texture uploads
- Correct high DPI handling on Windows versions < 1703
and will be added in subsequent changes.
2019-08-14 15:52:52 -07:00
sjindel-google
1c3022372d
Don't use DBC for hot-reload on iOS. (#10645) 2019-08-06 01:17:06 +02:00
Liam Appelbe
9fca3c7449
Use simarm_x64 when targeting arm (#10010)
* GN changes for simarm_x64

* GN changes for simarm_x64

* Cleanup a bit

* Guard simarm_x64 behind a flag

* Remove flag

* Remove Mac specificity
2019-08-01 10:58:12 -07:00
Kaushik Iska
a6a7c85473
[fuchsia] Add arm64 builds for flutter and dart runner (#10260) 2019-07-30 11:43:09 -07:00
Kaushik Iska
268533e86a
[fuchsia] Use GatherArtifacts to create the requisite dir structure (#10004)
* [fuchsia] Create command to gather fuchsia artifacts

- We will use this gathered artifacts to create the
  directory tree that we will package to a far.

- Currently this is not used anywhere, we will use it
  as such:
  	1. Build all the fuchsia artifacts
	2. Gather the artifacts to a directory
	3. Use `pm` to package up the directory into a far.

* reformat files

* commit chromium style

* [fuchsia] Use the directory format that fuchsia expects

* Farify the artifacts

* Create far archives and have tmp artifact dir
2019-07-22 13:59:46 -07:00
Kaushik Iska
ad5ae0f2d5
Update Buildroot Version (#9927)
This will upload the fuchsia artifacts to CIPD
2019-07-18 14:50:27 -07:00
Dan Field
f348270047
Simplify buildtools (#9875)
Move GN, only get clang
2019-07-17 11:35:58 -07:00
Dan Field
9c54621fdd
bitcode (#9823) 2019-07-15 12:28:10 -07:00
Jason Simmons
2cd650d269
Minimal integration with the Skia text shaper module (#9556)
This converts the libtxt Paragraph and ParagraphBuilder classes into
interfaces with Minikin and SkShaper/SkParagraph based implementations.

Use the --enable-skshaper GN flag to select the Skia shaper implementation
at build time.
2019-07-10 14:13:55 -07:00
Jason Simmons
f775f5e4d6
Re-enable the Wuffs GIF decoder (#9466)
Fixes https://github.com/flutter/flutter/issues/23838
2019-07-10 14:07:54 -07:00
Chinmay Garde
8ac7cbddac
Fix warning about settings unavailable GN arg build_glfw_shell (#9642)
This is only available on Darwin & Linux host targets. On Android target builds, the logic amounted to says “Don’t build GLFW on Android targets”. Since GLFW on Android does not make sense and the target does not exist, GN was generating a warning.
2019-07-01 16:58:00 -07:00
Chinmay Garde
4e344e6cd2
Wire up custom event loop interop for the GLFW embedder. (#9089) 2019-06-29 19:35:22 -07:00
Chinmay Garde
ece4f59377
Update Metal backend to account for Skia updates. (#9383)
Also makes it so that folks don't have to patch the buildroot manually when
building for Metal.
2019-06-19 15:24:26 -07:00
Chinmay Garde
7bb5b9aea5
Wire up Swiftshader based OpenGL ES unit-tests on hosts. (#9264)
Currently, all our host unit-tests that have rendering concerns use the software backend because of OpenGL ES availability and stability issues on the various platforms where we run host tests. Unfortunately, entire subsystems are disabled (and not tested) when rendering with the software backend. This patch pulls in SwiftShader and via pending patches in the buildroot, configures the host unit-tests to optionally use OpenGL ES in a stable manner without relying on the OpenGL drivers being present (and functional).

I have wired up the embedder test fixture in this patch to use the SwiftShader based OpenGL ES driver. I will update the shell and runtime unittests in a subsequent patch as well. The on and offscreen surfaces are configured as 1x1 pbuffer surface because we should be able to write pixel tests using OpenGL directly wihout having to deal with surfaces.
2019-06-12 12:32:09 -07:00
Chinmay Garde
e8ee6acf8d
[engine] Fix builds targeting Android from a Windows host gen_snapshot (#9190) 2019-06-07 22:46:29 -07:00
KyleWong
867120c0c7 Better help message. (#9097) 2019-05-28 12:33:30 -07:00
Chinmay Garde
e27c6e890a
Forward custom IDE flags to GN. (#9023) 2019-05-28 12:21:58 -07:00
Chris Bracken
0f1ff3bdb3
Correct typos, adopt US spellings (#9081)
Corects a bnuch of typeos throughout teh engien codebsae. Also makes
a couple minor Commonwealth -> US spelling adjustments for consistency
with the rest of Flutter's codebase.

Made use of `misspell` tool:
https://github.com/client9/misspell
2019-05-25 13:14:46 -07:00
Jason Simmons
424940f171
Add support for the Fontconfig-based Skia font manager (#8977) 2019-05-16 15:22:22 -07:00
Chinmay Garde
5526884e78
Wire up the Skia Metal backend on iOS. (#8936) 2019-05-11 15:21:26 -07:00
Chinmay Garde
f6e6d39860
Wire up Fuchsia SDK related updated for shell dependencies. #8869
This does not actually import the runners into the engine. It only sets up the targets so they need no modifications are necessary when the migration is done. The engine has been verified to build in both buildroots.
2019-05-06 18:01:59 -07:00
Chinmay Garde
7e37080ec0
Allow specifying the Mac SDK path as an environment variable to //flutter/tools/gn (#8643)
As long as the Mac SDK is i386 ready, engine developers should be able to use the latest version of Xcode to build all artifacts. This issue goes away when gen_snapshot migrates to x64.
2019-04-19 10:01:44 -07:00
Chinmay Garde
324b8403e8
Remove the flutter_aot GN argument. (#8581)
This argument has been defunct for a while. It was originally added as a
means of testing the AOT machinery in debug modes.
2019-04-15 12:57:45 -07:00
Chinmay Garde
b68f7e72aa
Allow specifying an alternate Mac host SDK. (#8249) 2019-03-21 15:46:29 -07:00
Jason Simmons
e28fc3c810
Define the dart_platform_sdk GN variable only on host targets (#8206)
dart_platform_sdk is not available in Android builds
2019-03-19 09:43:17 -07:00
Jonah Williams
048d70bc09
Support dartdevc, dart2js with shared source files, dartdevc sdk (#8105) 2019-03-18 11:58:35 -07:00
Chris Bracken
d9fda1c208
Add --no-full-dart-sdk option to GN (#8196)
Allows enabling/disabling building trained snapshots for dart2js and
dartdevc.
2019-03-17 15:52:41 -07:00
Jonah Williams
d92f937301
Add flag to allow only building full sdk on release to speed up bots (#8080) 2019-03-15 13:13:44 -07:00
Chinmay Garde
906d684a77
Reland ""Add support for trace counters with variable arguments and instrument the raster cache." (#8145)
This reverts commit bc901324faf5a24f9220cc7ecbcf5b97b96ae09f and fixes the
discovered on Windows builds.
2019-03-13 13:53:22 -07:00
Chinmay Garde
3c93817839
Add “full-dart-debug” that disabled optimizations in the Dart VM. (#8147) 2019-03-13 12:54:57 -07:00
Jason Simmons
d71bfe58dd
Only build a full Dart SDK when building for the host system (#8071) 2019-03-07 11:44:00 -08:00
Chris Bracken
70a18b5153
Add clang static analysis support to gn wrapper (#8047)
Adds --clang-static-analysis option to GN to enable/disable compiling
with clang static analysis enabled.
2019-03-05 17:35:43 -08:00
Jonah Williams
e32531f0ee
Switch flutter's dart sdk to full and add dartdevc libraries (#7968) 2019-02-26 14:49:09 -08:00
Michael Klimushyn
28bafe6903
Don't use Wuffs (#7785)
This code path isn't stable yet.

Fixes flutter/flutter#27718
Reopens flutter/flutter#23838
2019-02-11 11:09:45 -08:00
Dan Field
f9252e72f8
allow specifying out directory root (#7753) 2019-02-08 15:15:47 -08:00
liyuqian
3c118b6c3b
Disable wuff on Windows (#7713)
MSVC won't compile wuff...
2019-02-06 11:52:25 -08:00
Jason Simmons
351f5a35f3
Use the Wuffs GIF decoder (#7658)
Fixes https://github.com/flutter/flutter/issues/23838
2019-02-05 14:09:18 -08:00
liyuqian
09a3735ea7
Respect default goma path on Windows (#7643) 2019-01-30 13:00:34 -08:00
Chinmay Garde
1dc01adfa6
Allow generating coverage reports for all unit-tests in the engine. (#7576) 2019-01-24 14:03:15 -08:00
Vyacheslav Egorov
8a71c73d4b
Pass operator_new_alignment value through gn script into GN args. (#7031)
Background:

Some allocators (tcmalloc) don't provide alignment guarantees that
match clang's default expectations, which causes crashes when using
clang compiled binary with such allocators.

For example clang can produce movaps instructions to initialize newly
allocated object - which would crash if result of ::operator new() is
not 16 bytes aligned.
2019-01-15 16:09:46 +01:00
Chinmay Garde
93f75f283a
Don't provide system vulkan header paths to Skia. (#7003)
Skia privately brings in its own copy. https://skia-review.googlesource.com/c/skia/+/172147
2018-11-28 15:31:16 -08:00
Michael Goderbauer
70a1106b50
Unify copyright lines (#6757) 2018-11-07 12:24:35 -08:00
Chinmay Garde
08272ee6aa
Allow specifying custom toolchains and sysroots for host builds. (#6548)
Updates buildroot to https://github.com/flutter/buildroot/pull/180.
2018-10-15 14:18:02 -07:00
Michael Goderbauer
763627fff5
Do not export libdart symbols (#6337) 2018-09-27 18:19:22 +02:00
Chinmay Garde
5b799381f4
Dont make any binaries specify an X11 dependency. (#6353) 2018-09-26 18:15:30 -07:00
Michael Goderbauer
58a1894a1c
Update to latest clang (#6174)
* Roll buildroot to be483cb1cd3a9c4313b2e534034d23a05c3d849e
* Rolls buildtools to c1408453246f0475547b6fe634c2f3dad71c6457
2018-09-06 15:29:04 -07:00
Chinmay Garde
c822ab26cf
Allow building the embedder API for the target toolchains. (#6069) 2018-08-22 16:42:47 -07:00
Jason Simmons
4b271b2e02
Add a Flutter build flag that enables dart_debug checks (#6059) 2018-08-21 08:42:13 -07:00
Stanislav Baranov
0c0034323d
Make 'gn --debug' and 'gn --debug --dynamic' identical. (#5999) 2018-08-10 15:34:41 -07:00