Flutter Engine
The Flutter Engine
|
Functions | |
find_ndk (volume) | |
create_asset (target_dir) | |
main () | |
download_tarball () | |
unzip_tarball () | |
create_install_dir () | |
build_valgrind () | |
copy_files (target_dir) | |
Variables | |
str | NDK_VER = "android-ndk-r26b" |
str | NDK_URL |
str | DMG = "ndk.dmg" |
str | MOUNTED_NAME_START = '/Volumes/Android NDK' |
FILE_DIR = os.path.dirname(os.path.abspath(__file__)) | |
SKIA_ROOT_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir, os.pardir, os.pardir)) | |
str | URL = 'https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-amd64' |
str | SHA256 = '61699e22abb2a26304edfa1376f65ad24191f94a4ffed68a58d42b6fee01e124' |
str | BINARY = URL.split('/')[-1] |
INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir)) | |
dict | to_copy |
str | REPO = 'https://github.com/google/bloaty' |
str | TAG = 'v1.0' |
str | VERSION = "ccache-3.7.7" |
str | CLANG_REVISION = 'llvmorg-15-init-8945-g3d7da810' |
int | CLANG_SUB_REVISION = 2 |
str | PACKAGE_VERSION = '%s-%s' % (CLANG_REVISION, CLANG_SUB_REVISION) |
tuple | GS_URL |
str | SHORT_VERSION = "1.4" |
str | BASE_URL = 'https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/%s' |
str | GCLOUD_BASE_NAME = 'google-cloud-sdk' |
str | GCLOUD_ARCHIVE = '%s-343.0.0-linux-x86_64.tar.gz' % GCLOUD_BASE_NAME |
str | GCLOUD_URL = BASE_URL % GCLOUD_ARCHIVE |
str | GO_URL = "https://go.dev/dl/go1.21.5.linux-amd64.tar.gz" |
str | DOWNLOAD_URL = 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64' |
str | SHA256_URL = 'https://dl.k8s.io/%s/bin/linux/amd64/kubectl.sha256' % VERSION |
str | SDK_VERSION = '1.3.211.0' |
tuple | SDK_URL |
str | DOCKER_IMAGE = 'gcr.io/skia-public/mesa-driver-builder:v2' |
str | BUILD_SCRIPT = '/opt/build_mesa.sh' |
str | MESA_VERSION = '18.3.3' |
str | REPO_URL = "https://github.com/vektra/mockery.git" |
str | REPO_DIR = "mockery_repo" |
str | BINARY_NAME = "mockery" |
str | NODE_URL = "https://nodejs.org/dist/v12.16.3/node-v12.16.3-linux-x64.tar.xz" |
str | NODE_EXTRACT_NAME = "node-v12.16.3-linux-x64" |
tuple | ZIP_URL |
str | ARABIC_URL = 'https://fonts.gstatic.com/s/notonaskharabic/v33/RrQ5bpV-9Dd1b1OAGA6M9PkyDuVBePeKNaxcsss0Y7bwvc5krK0z9_Mnuw.ttf' |
str | ARABIC_SHA256 = 'b957e8c71a24e50c1aad4df775c46282bbe5e62e2b2b2ca72b153d75b6a15edd' |
SVG_TOOLS = os.path.join(INFRA_BOTS_DIR, os.pardir, os.pardir, 'tools', 'svg') | |
str | SVG_GS_BUCKET = 'gs://skia-svgs' |
str | VALGRIND = 'valgrind-3.15.0' |
str | TARBALL = '%s.tar.bz2' % VALGRIND |
TEMP_DIR = os.path.join(tempfile.gettempdir(), 'skia-%s' % VALGRIND) | |
INSTALL_DIR = os.path.join(TEMP_DIR, 'valgrind_install') | |
Create the asset.
Create bazel_build task_driver. This should rarely need to change, so by putting it into CIPD, we should reduce build latency by removing the need for the BuildTaskDrivers job. That job *is* idempotent, so Swarming does eventually deduplicate it sometimes (but not after a usually unrelated change to something in //bazel), but skipping the step is faster.
Create Bloaty as a Linux executable.
Create a ccache binary for linux hosts.
Create a ccache binary for mac hosts.
Create a Clang toolchain for Linux hosts.
Create the cockroachDB asset.
Create the DWriteCore asset. DWriteCore is now part of the WindowsAppSDK which is distrubuted as a nuget package. To update, go to https://www.nuget.org/packages/Microsoft.WindowsAppSDK and pick a version. The URL below should match that of the "Download package" link. The asset this creates contains just the DWriteCore headers and dll. In particular the lib is not bundled as Skia does not link directly against DWriteCore.
Create the mesa driver. This defers to a Docker container with the build_mesa.sh script.
Create the mesa driver.
The fonts collected by this script are used by SkParagraphTests.cpp which uses measurements that are very particular to the specific font being used. Thus, we try to get the fonts from a repeatable, documented source.
create.build_valgrind | ( | ) |
Definition at line 57 of file create.py.
create.copy_files | ( | target_dir | ) |
Definition at line 66 of file create.py.
create.create_asset | ( | target_dir | ) |
Create the asset.
Compiles the task driver using bazel, which is presumed to be on PATH
Copy the fonts from two different git repos into one folder.
Definition at line 32 of file create.py.
create.create_install_dir | ( | ) |
create.download_tarball | ( | ) |
create.find_ndk | ( | volume | ) |
create.main | ( | ) |
create.unzip_tarball | ( | ) |
str create.ARABIC_SHA256 = 'b957e8c71a24e50c1aad4df775c46282bbe5e62e2b2b2ca72b153d75b6a15edd' |
str create.ARABIC_URL = 'https://fonts.gstatic.com/s/notonaskharabic/v33/RrQ5bpV-9Dd1b1OAGA6M9PkyDuVBePeKNaxcsss0Y7bwvc5krK0z9_Mnuw.ttf' |
str create.BASE_URL = 'https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/%s' |
str create.CLANG_REVISION = 'llvmorg-15-init-8945-g3d7da810' |
str create.DOCKER_IMAGE = 'gcr.io/skia-public/mesa-driver-builder:v2' |
str create.DOWNLOAD_URL = 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64' |
create.FILE_DIR = os.path.dirname(os.path.abspath(__file__)) |
str create.GCLOUD_ARCHIVE = '%s-343.0.0-linux-x86_64.tar.gz' % GCLOUD_BASE_NAME |
str create.GCLOUD_URL = BASE_URL % GCLOUD_ARCHIVE |
str create.GO_URL = "https://go.dev/dl/go1.21.5.linux-amd64.tar.gz" |
tuple create.GS_URL |
create.INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir)) |
create.INSTALL_DIR = os.path.join(TEMP_DIR, 'valgrind_install') |
str create.NDK_URL |
str create.NODE_URL = "https://nodejs.org/dist/v12.16.3/node-v12.16.3-linux-x64.tar.xz" |
str create.PACKAGE_VERSION = '%s-%s' % (CLANG_REVISION, CLANG_SUB_REVISION) |
str create.REPO_URL = "https://github.com/vektra/mockery.git" |
tuple create.SDK_URL |
str create.SHA256 = '61699e22abb2a26304edfa1376f65ad24191f94a4ffed68a58d42b6fee01e124' |
create.SKIA_ROOT_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir, os.pardir, os.pardir)) |
create.SVG_TOOLS = os.path.join(INFRA_BOTS_DIR, os.pardir, os.pardir, 'tools', 'svg') |
dict create.to_copy |
str create.URL = 'https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-amd64' |