2012-03-16 18:28:24 +00:00
|
|
|
# Copyright 2012 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
{
|
|
|
|
# Get ready for the ugly...
|
|
|
|
#
|
|
|
|
# - We have to nest our variables dictionaries multiple levels deep, so that
|
|
|
|
# this and other gyp files can rely on previously-set variable values in
|
|
|
|
# their 'variables': { 'conditions': [] } clauses.
|
|
|
|
#
|
|
|
|
# Example 1:
|
|
|
|
# Within this file, we use the value of variable 'skia_os' to set the
|
|
|
|
# value of variable 'os_posix', so 'skia_os' must be defined within a
|
|
|
|
# "more inner" (enclosed) scope than 'os_posix'.
|
|
|
|
#
|
|
|
|
# Example 2:
|
|
|
|
# http://src.chromium.org/viewvc/chrome/trunk/src/third_party/libjpeg/libjpeg.gyp?revision=102306 ,
|
|
|
|
# which we currently import into our build, uses the value of 'os_posix'
|
|
|
|
# within the 'conditions' list in its 'variables' dict.
|
|
|
|
# In order for that to work, it needs the value of 'os_posix' to have been
|
|
|
|
# set within a "more inner" (enclosed) scope than its own 'variables' dict.
|
|
|
|
#
|
|
|
|
# - On the other hand, key/value pairs of a given 'variable' dict are only
|
|
|
|
# inherited by:
|
|
|
|
# 1. directly enclosing 'variable' dicts, and
|
|
|
|
# 2. "sibling" 'variable' dicts (which, I guess, are combined into a single
|
|
|
|
# 'variable' dict during gyp processing)
|
|
|
|
# and NOT inherited by "uncles" (siblings of directly enclosing 'variable'
|
|
|
|
# dicts), so we have to re-define every variable at every enclosure level
|
|
|
|
# within our ridiculous matryoshka doll of 'variable' dicts. That's why
|
|
|
|
# we have variable definitions like this: 'skia_os%': '<(skia_os)',
|
|
|
|
#
|
|
|
|
# See http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi?revision=127004 ,
|
|
|
|
# which deals with these same constraints in a similar manner.
|
|
|
|
#
|
|
|
|
'variables': { # level 1
|
2015-07-21 21:50:07 +00:00
|
|
|
'angle_path%': '../',
|
2012-03-16 18:28:24 +00:00
|
|
|
'variables': { # level 2
|
|
|
|
|
|
|
|
# Variables needed by conditions list within the level-2 variables dict.
|
|
|
|
'variables': { # level 3
|
2015-02-12 18:48:25 +00:00
|
|
|
'variables': { # level 4
|
|
|
|
# We use 'skia_os' instead of 'OS' throughout our gyp files, to allow
|
|
|
|
# for cross-compilation (e.g. building for either MacOS or iOS on Mac).
|
|
|
|
# We set it automatically based on 'OS' (the host OS), but allow the
|
|
|
|
# user to override it via GYP_DEFINES if they like.
|
|
|
|
'skia_os%': '<(OS)',
|
|
|
|
},
|
|
|
|
'skia_os%': '<(skia_os)',
|
2014-02-05 16:35:12 +00:00
|
|
|
|
|
|
|
'skia_android_framework%': 0,
|
2015-02-12 18:48:25 +00:00
|
|
|
'conditions' : [
|
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"]', {
|
|
|
|
'skia_arch_type%': 'x86_64',
|
|
|
|
}, {
|
|
|
|
'skia_arch_type%': 'x86',
|
|
|
|
}],
|
|
|
|
],
|
2014-05-29 17:00:28 +00:00
|
|
|
'arm_version%': 0,
|
|
|
|
'arm_neon%': 0,
|
2014-10-01 17:52:52 +00:00
|
|
|
'skia_egl%': 0,
|
2012-03-16 18:28:24 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
# Re-define all variables defined within the level-3 'variables' dict,
|
|
|
|
# so that siblings of the level-2 'variables' dict can see them.
|
2014-02-05 16:35:12 +00:00
|
|
|
# (skia_os will depend on skia_android_framework.)
|
|
|
|
'skia_android_framework%': '<(skia_android_framework)',
|
2014-04-02 15:03:56 +00:00
|
|
|
'skia_arch_type%': '<(skia_arch_type)',
|
2014-05-29 17:00:28 +00:00
|
|
|
'arm_version%': '<(arm_version)',
|
|
|
|
'arm_neon%': '<(arm_neon)',
|
2014-10-01 17:52:52 +00:00
|
|
|
'skia_egl%': '<(skia_egl)',
|
2012-09-24 19:41:43 +00:00
|
|
|
|
2012-03-16 18:28:24 +00:00
|
|
|
'conditions': [
|
2014-02-05 16:35:12 +00:00
|
|
|
[ 'skia_android_framework == 1', {
|
|
|
|
'skia_os%': 'android',
|
2014-02-17 15:22:26 +00:00
|
|
|
'skia_chrome_utils%': 0,
|
2015-07-22 20:29:25 +00:00
|
|
|
'skia_use_android_framework_defines%': 1,
|
2014-06-18 17:31:40 +00:00
|
|
|
'skia_use_system_json%': 1,
|
2014-02-05 16:35:12 +00:00
|
|
|
}, {
|
|
|
|
'skia_os%': '<(skia_os)',
|
2014-02-17 15:22:26 +00:00
|
|
|
'skia_chrome_utils%': 1,
|
2015-07-22 20:29:25 +00:00
|
|
|
'skia_use_android_framework_defines%': 0,
|
2014-06-18 17:31:40 +00:00
|
|
|
'skia_use_system_json%': 0,
|
2014-02-05 16:35:12 +00:00
|
|
|
}],
|
2012-10-10 19:45:51 +00:00
|
|
|
[ 'skia_os == "win"', {
|
2012-03-16 18:28:24 +00:00
|
|
|
'os_posix%': 0,
|
|
|
|
}, {
|
|
|
|
'os_posix%': 1,
|
|
|
|
}],
|
2015-09-23 18:35:55 +00:00
|
|
|
[ 'skia_os == "linux"', {
|
|
|
|
# ANGLE on linux require these two variable be defined.
|
|
|
|
'chromeos%': 0,
|
|
|
|
'use_x11%': 1,
|
|
|
|
}],
|
2012-10-10 19:45:51 +00:00
|
|
|
[ 'skia_os == "android"', {
|
2012-09-11 21:37:28 +00:00
|
|
|
'skia_static_initializers%': 0,
|
2014-10-01 17:52:52 +00:00
|
|
|
'skia_egl%': 1,
|
2012-09-11 21:37:28 +00:00
|
|
|
}, {
|
|
|
|
'skia_static_initializers%': 1,
|
|
|
|
}],
|
2012-10-10 19:45:51 +00:00
|
|
|
[ 'skia_os == "ios"', {
|
|
|
|
'skia_arch_type%': 'arm',
|
2013-07-31 12:57:27 +00:00
|
|
|
'arm_version%': 7,
|
2012-10-10 19:45:51 +00:00
|
|
|
'arm_neon%': 0, # neon asm files known not to work with the ios build
|
|
|
|
}],
|
2015-04-02 19:16:36 +00:00
|
|
|
[ 'skia_os == "android" and not skia_android_framework',
|
Build Skia for a bare-bones embedded Linux system.
Motivation:
I have downloaded a barebones Linux system built for 64-bit ARM
from linaro.org and a ARMv8 Foundation Model from arm.com to run
it on. This will let us build and test Skia on ARM64 before we
aquire hardware to allow that. This CL introduces the changes to
the build files necessary to build Skia on a barebones embedded
Linux system. I tested it with the aarch64 GCC compiler provided
by linaro.org.
Changes:
Add a "barelinux" target_os for the DEPS file. Add an optional
git download of zlib.
Changes to gyp files: these changes abstract out libpng, libz, and
giflib so that images.gyp doesn't know whether they are static or
dynamically linked. I also add the variables skia_giflib_static,
skia_libpng_static, skia_zlib_static, and skia_freetype_static,
all of which default to false but when set to true will override
the behavior of the giflib, libpng, zlib, and freetype build
targets to require them to build statically. Also, the
skia_no_fontconfig variable turns off use of the fontconfig service.
Scripts in platform_tools/barelinux/bin:
arm64_download - this script downloads the Linaro's ARMv8 Aarch64
toolchain and minimal embedded Linux system as well as ARM's
foundation model. The required files are mirrored on Google
Cloud. The script then starts a emulated Arm64 Linux system in
the background. After the boot is complete, you can SSH into the
system at port 8022 via user@localhost. The SSH key will be
downloaded into the working directery as well.
download_deps - Uses gclient to download Skia's dependencies for a
bare Linux system (the normal dependecies plus giflib, libpng, and
zlib.)
barelinux_make - this script builds a version of skia that does
not depend on external libraries, perfect for putting in an
embedded system running Linux. Assumes you have run download_deps
first.
To test:
To build a barelinux target, use the barelinux_make script.
To build for a armv8 system: skia_arch_type=arm arm_neon=0 armv7=1
armv8=1 arm_thumb=0 skia_arch_width=64 and set the CC and CXX
variables to point at the cross-compiler downloaded by
arm64_download.
R=djsollen@google.com, scroggo@google.com, borenet@google.com
Author: halcanary@google.com
Review URL: https://codereview.chromium.org/152513007
git-svn-id: http://skia.googlecode.com/svn/trunk@13570 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-02-24 20:22:34 +00:00
|
|
|
# skia_freetype_static - on OS variants that normally would
|
|
|
|
# dynamically link the system FreeType library, don't do
|
|
|
|
# that; instead statically link to the version in
|
|
|
|
# third_party/freetype and third_party/externals/freetype.
|
|
|
|
{
|
|
|
|
'skia_freetype_static%': '1',
|
|
|
|
}, {
|
|
|
|
'skia_freetype_static%': '0',
|
|
|
|
}
|
|
|
|
],
|
2012-03-16 18:28:24 +00:00
|
|
|
],
|
|
|
|
|
Build Skia for a bare-bones embedded Linux system.
Motivation:
I have downloaded a barebones Linux system built for 64-bit ARM
from linaro.org and a ARMv8 Foundation Model from arm.com to run
it on. This will let us build and test Skia on ARM64 before we
aquire hardware to allow that. This CL introduces the changes to
the build files necessary to build Skia on a barebones embedded
Linux system. I tested it with the aarch64 GCC compiler provided
by linaro.org.
Changes:
Add a "barelinux" target_os for the DEPS file. Add an optional
git download of zlib.
Changes to gyp files: these changes abstract out libpng, libz, and
giflib so that images.gyp doesn't know whether they are static or
dynamically linked. I also add the variables skia_giflib_static,
skia_libpng_static, skia_zlib_static, and skia_freetype_static,
all of which default to false but when set to true will override
the behavior of the giflib, libpng, zlib, and freetype build
targets to require them to build statically. Also, the
skia_no_fontconfig variable turns off use of the fontconfig service.
Scripts in platform_tools/barelinux/bin:
arm64_download - this script downloads the Linaro's ARMv8 Aarch64
toolchain and minimal embedded Linux system as well as ARM's
foundation model. The required files are mirrored on Google
Cloud. The script then starts a emulated Arm64 Linux system in
the background. After the boot is complete, you can SSH into the
system at port 8022 via user@localhost. The SSH key will be
downloaded into the working directery as well.
download_deps - Uses gclient to download Skia's dependencies for a
bare Linux system (the normal dependecies plus giflib, libpng, and
zlib.)
barelinux_make - this script builds a version of skia that does
not depend on external libraries, perfect for putting in an
embedded system running Linux. Assumes you have run download_deps
first.
To test:
To build a barelinux target, use the barelinux_make script.
To build for a armv8 system: skia_arch_type=arm arm_neon=0 armv7=1
armv8=1 arm_thumb=0 skia_arch_width=64 and set the CC and CXX
variables to point at the cross-compiler downloaded by
arm64_download.
R=djsollen@google.com, scroggo@google.com, borenet@google.com
Author: halcanary@google.com
Review URL: https://codereview.chromium.org/152513007
git-svn-id: http://skia.googlecode.com/svn/trunk@13570 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-02-24 20:22:34 +00:00
|
|
|
# skia_no_fontconfig - On POSIX systems that would normally use the
|
|
|
|
# SkFontHost_fontconfig interface; use the SkFontHost_linux
|
|
|
|
# version instead.
|
|
|
|
'skia_no_fontconfig%': '0',
|
2015-03-30 19:53:48 +00:00
|
|
|
'skia_embedded_fonts%': '0',
|
Build Skia for a bare-bones embedded Linux system.
Motivation:
I have downloaded a barebones Linux system built for 64-bit ARM
from linaro.org and a ARMv8 Foundation Model from arm.com to run
it on. This will let us build and test Skia on ARM64 before we
aquire hardware to allow that. This CL introduces the changes to
the build files necessary to build Skia on a barebones embedded
Linux system. I tested it with the aarch64 GCC compiler provided
by linaro.org.
Changes:
Add a "barelinux" target_os for the DEPS file. Add an optional
git download of zlib.
Changes to gyp files: these changes abstract out libpng, libz, and
giflib so that images.gyp doesn't know whether they are static or
dynamically linked. I also add the variables skia_giflib_static,
skia_libpng_static, skia_zlib_static, and skia_freetype_static,
all of which default to false but when set to true will override
the behavior of the giflib, libpng, zlib, and freetype build
targets to require them to build statically. Also, the
skia_no_fontconfig variable turns off use of the fontconfig service.
Scripts in platform_tools/barelinux/bin:
arm64_download - this script downloads the Linaro's ARMv8 Aarch64
toolchain and minimal embedded Linux system as well as ARM's
foundation model. The required files are mirrored on Google
Cloud. The script then starts a emulated Arm64 Linux system in
the background. After the boot is complete, you can SSH into the
system at port 8022 via user@localhost. The SSH key will be
downloaded into the working directery as well.
download_deps - Uses gclient to download Skia's dependencies for a
bare Linux system (the normal dependecies plus giflib, libpng, and
zlib.)
barelinux_make - this script builds a version of skia that does
not depend on external libraries, perfect for putting in an
embedded system running Linux. Assumes you have run download_deps
first.
To test:
To build a barelinux target, use the barelinux_make script.
To build for a armv8 system: skia_arch_type=arm arm_neon=0 armv7=1
armv8=1 arm_thumb=0 skia_arch_width=64 and set the CC and CXX
variables to point at the cross-compiler downloaded by
arm64_download.
R=djsollen@google.com, scroggo@google.com, borenet@google.com
Author: halcanary@google.com
Review URL: https://codereview.chromium.org/152513007
git-svn-id: http://skia.googlecode.com/svn/trunk@13570 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-02-24 20:22:34 +00:00
|
|
|
|
2013-10-08 15:16:36 +00:00
|
|
|
'skia_sanitizer%': '',
|
2012-03-16 18:28:24 +00:00
|
|
|
'skia_scalar%': 'float',
|
|
|
|
'skia_mesa%': 0,
|
2015-03-09 16:40:42 +00:00
|
|
|
'skia_gpu_extra_dependency_path%': '',
|
2015-08-12 13:51:08 +00:00
|
|
|
'skia_gpu_extra_tests_path%': '',
|
2013-01-07 14:26:40 +00:00
|
|
|
'skia_stroke_path_rendering%': 0,
|
2013-01-09 21:04:52 +00:00
|
|
|
'skia_android_path_rendering%': 0,
|
2013-10-30 17:04:16 +00:00
|
|
|
'skia_resource_cache_mb_limit%': 0,
|
|
|
|
'skia_resource_cache_count_limit%': 0,
|
2015-02-25 16:16:19 +00:00
|
|
|
'skia_angle%': 0,
|
2015-08-27 17:38:39 +00:00
|
|
|
'skia_command_buffer%': 0,
|
2014-07-16 17:06:04 +00:00
|
|
|
'skia_gdi%': 0,
|
2012-08-02 14:03:32 +00:00
|
|
|
'skia_gpu%': 1,
|
2014-01-20 16:14:02 +00:00
|
|
|
'skia_osx_deployment_target%': '',
|
2015-08-11 17:30:12 +00:00
|
|
|
'skia_pdf%': 1,
|
2012-11-29 15:09:58 +00:00
|
|
|
'skia_profile_enabled%': 0,
|
2015-08-12 19:58:13 +00:00
|
|
|
'skia_vulkan%': 0,
|
2013-03-08 22:22:44 +00:00
|
|
|
'skia_win_debuggers_path%': '',
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_shared_lib%': 0,
|
2013-07-17 19:29:19 +00:00
|
|
|
'skia_opencl%': 0,
|
2014-11-07 15:12:46 +00:00
|
|
|
'skia_force_distance_field_text%': 0,
|
2013-06-20 20:28:54 +00:00
|
|
|
|
|
|
|
# These variables determine the default optimization level for different
|
|
|
|
# compilers.
|
|
|
|
'skia_default_vs_optimization_level': 3, # full (/Ox)
|
|
|
|
'skia_default_gcc_optimization_level': 3, # -O3
|
2012-03-16 18:28:24 +00:00
|
|
|
},
|
|
|
|
|
2013-03-22 13:16:06 +00:00
|
|
|
'conditions': [
|
2014-12-15 18:38:42 +00:00
|
|
|
[ 'skia_os in ["mac", "linux", "freebsd", "openbsd", "solaris", "android", "win"] '
|
|
|
|
'and skia_android_framework == 0', {
|
2014-12-15 17:45:00 +00:00
|
|
|
'skia_warnings_as_errors%': 1,
|
2014-12-15 17:49:12 +00:00
|
|
|
}, {
|
|
|
|
'skia_warnings_as_errors%': 0,
|
2013-03-22 13:16:06 +00:00
|
|
|
}],
|
2013-06-20 20:28:54 +00:00
|
|
|
|
|
|
|
# This variable allows the user to customize the optimization level used
|
|
|
|
# by the compiler. The user should be aware that this has different
|
|
|
|
# meanings for different compilers and should exercise caution when
|
|
|
|
# overriding it.
|
|
|
|
[ 'skia_os == "win"', {
|
|
|
|
'skia_release_optimization_level%': '<(skia_default_vs_optimization_level)',
|
|
|
|
}, {
|
|
|
|
'skia_release_optimization_level%': '<(skia_default_gcc_optimization_level)',
|
|
|
|
}],
|
2015-09-23 18:35:55 +00:00
|
|
|
[ 'skia_os == "linux"', {
|
|
|
|
# ANGLE on linux require these two variable be defined.
|
|
|
|
'chromeos%': 0,
|
|
|
|
'use_x11%': 1,
|
|
|
|
}],
|
2013-10-08 15:16:36 +00:00
|
|
|
[ 'skia_sanitizer', {
|
2013-08-21 18:02:50 +00:00
|
|
|
'skia_clang_build': 1,
|
2013-10-25 18:14:54 +00:00
|
|
|
'skia_keep_frame_pointer': 1,
|
2013-08-21 18:02:50 +00:00
|
|
|
}, {
|
|
|
|
'skia_clang_build%': 0,
|
2013-10-25 18:14:54 +00:00
|
|
|
'skia_keep_frame_pointer%': 0,
|
2013-08-21 18:02:50 +00:00
|
|
|
}],
|
2015-10-02 01:29:34 +00:00
|
|
|
[ 'skia_shared_lib or skia_sanitizer or skia_os == "android" or (skia_os == "linux" and (skia_angle == 1 or skia_command_buffer == 1))', {
|
2014-07-22 19:09:30 +00:00
|
|
|
'skia_pic%' : 1,
|
|
|
|
}, {
|
|
|
|
'skia_pic%' : 0,
|
|
|
|
}
|
|
|
|
],
|
2013-03-22 13:16:06 +00:00
|
|
|
],
|
|
|
|
|
2012-03-16 18:28:24 +00:00
|
|
|
# Re-define all variables defined within the level-2 'variables' dict,
|
|
|
|
# so that siblings of the level-1 'variables' dict can see them.
|
2013-07-31 12:57:27 +00:00
|
|
|
'arm_version%': '<(arm_version)',
|
2012-10-10 19:45:51 +00:00
|
|
|
'arm_neon%': '<(arm_neon)',
|
2013-07-31 12:57:27 +00:00
|
|
|
'arm_neon_optional%': 0,
|
2014-06-06 21:09:12 +00:00
|
|
|
'mips_arch_variant%': 'mips32',
|
|
|
|
'mips_dsp%': 0,
|
2012-03-16 18:28:24 +00:00
|
|
|
'skia_os%': '<(skia_os)',
|
|
|
|
'os_posix%': '<(os_posix)',
|
Build Skia for a bare-bones embedded Linux system.
Motivation:
I have downloaded a barebones Linux system built for 64-bit ARM
from linaro.org and a ARMv8 Foundation Model from arm.com to run
it on. This will let us build and test Skia on ARM64 before we
aquire hardware to allow that. This CL introduces the changes to
the build files necessary to build Skia on a barebones embedded
Linux system. I tested it with the aarch64 GCC compiler provided
by linaro.org.
Changes:
Add a "barelinux" target_os for the DEPS file. Add an optional
git download of zlib.
Changes to gyp files: these changes abstract out libpng, libz, and
giflib so that images.gyp doesn't know whether they are static or
dynamically linked. I also add the variables skia_giflib_static,
skia_libpng_static, skia_zlib_static, and skia_freetype_static,
all of which default to false but when set to true will override
the behavior of the giflib, libpng, zlib, and freetype build
targets to require them to build statically. Also, the
skia_no_fontconfig variable turns off use of the fontconfig service.
Scripts in platform_tools/barelinux/bin:
arm64_download - this script downloads the Linaro's ARMv8 Aarch64
toolchain and minimal embedded Linux system as well as ARM's
foundation model. The required files are mirrored on Google
Cloud. The script then starts a emulated Arm64 Linux system in
the background. After the boot is complete, you can SSH into the
system at port 8022 via user@localhost. The SSH key will be
downloaded into the working directery as well.
download_deps - Uses gclient to download Skia's dependencies for a
bare Linux system (the normal dependecies plus giflib, libpng, and
zlib.)
barelinux_make - this script builds a version of skia that does
not depend on external libraries, perfect for putting in an
embedded system running Linux. Assumes you have run download_deps
first.
To test:
To build a barelinux target, use the barelinux_make script.
To build for a armv8 system: skia_arch_type=arm arm_neon=0 armv7=1
armv8=1 arm_thumb=0 skia_arch_width=64 and set the CC and CXX
variables to point at the cross-compiler downloaded by
arm64_download.
R=djsollen@google.com, scroggo@google.com, borenet@google.com
Author: halcanary@google.com
Review URL: https://codereview.chromium.org/152513007
git-svn-id: http://skia.googlecode.com/svn/trunk@13570 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-02-24 20:22:34 +00:00
|
|
|
|
|
|
|
'skia_freetype_static%': '<(skia_freetype_static)',
|
|
|
|
'skia_no_fontconfig%': '<(skia_no_fontconfig)',
|
2015-03-30 19:53:48 +00:00
|
|
|
'skia_embedded_fonts%': '<(skia_embedded_fonts)',
|
2013-10-08 15:16:36 +00:00
|
|
|
'skia_sanitizer%': '<(skia_sanitizer)',
|
2012-03-16 18:28:24 +00:00
|
|
|
'skia_scalar%': '<(skia_scalar)',
|
|
|
|
'skia_mesa%': '<(skia_mesa)',
|
2015-03-09 16:40:42 +00:00
|
|
|
'skia_gpu_extra_dependency_path%': '<(skia_gpu_extra_dependency_path)',
|
2015-08-12 13:51:08 +00:00
|
|
|
'skia_gpu_extra_tests_path%': '<(skia_gpu_extra_tests_path)',
|
2013-01-07 14:26:40 +00:00
|
|
|
'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)',
|
2014-02-05 16:35:12 +00:00
|
|
|
'skia_android_framework%': '<(skia_android_framework)',
|
2015-07-22 20:29:25 +00:00
|
|
|
'skia_use_android_framework_defines%': '<(skia_use_android_framework_defines)',
|
2014-06-18 17:31:40 +00:00
|
|
|
'skia_use_system_json%': '<(skia_use_system_json)',
|
2013-01-09 21:04:52 +00:00
|
|
|
'skia_android_path_rendering%': '<(skia_android_path_rendering)',
|
2013-10-30 17:04:16 +00:00
|
|
|
'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)',
|
|
|
|
'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)',
|
2012-04-02 20:42:26 +00:00
|
|
|
'skia_angle%': '<(skia_angle)',
|
2012-10-10 19:45:51 +00:00
|
|
|
'skia_arch_type%': '<(skia_arch_type)',
|
2013-12-10 15:19:32 +00:00
|
|
|
'skia_chrome_utils%': '<(skia_chrome_utils)',
|
2015-08-27 17:38:39 +00:00
|
|
|
'skia_command_buffer%': '<(skia_command_buffer)',
|
2014-07-16 17:26:19 +00:00
|
|
|
'skia_gdi%': '<(skia_gdi)',
|
2012-08-02 14:03:32 +00:00
|
|
|
'skia_gpu%': '<(skia_gpu)',
|
2015-08-12 19:58:13 +00:00
|
|
|
'skia_vulkan%': '<(skia_vulkan)',
|
2013-06-14 17:10:09 +00:00
|
|
|
'skia_win_exceptions%': 0,
|
2014-06-26 19:56:28 +00:00
|
|
|
'skia_win_ltcg%': 1,
|
2014-01-20 16:14:02 +00:00
|
|
|
'skia_osx_deployment_target%': '<(skia_osx_deployment_target)',
|
2015-08-11 17:30:12 +00:00
|
|
|
'skia_pdf%': '<(skia_pdf)',
|
2015-10-12 17:11:18 +00:00
|
|
|
'skia_pdf_generate_pdfa%': 0, # emit larger PDF/A-2b file
|
2012-11-29 15:09:58 +00:00
|
|
|
'skia_profile_enabled%': '<(skia_profile_enabled)',
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_shared_lib%': '<(skia_shared_lib)',
|
2013-07-17 19:29:19 +00:00
|
|
|
'skia_opencl%': '<(skia_opencl)',
|
2014-11-07 15:12:46 +00:00
|
|
|
'skia_force_distance_field_text%': '<(skia_force_distance_field_text)',
|
2012-08-13 14:26:36 +00:00
|
|
|
'skia_static_initializers%': '<(skia_static_initializers)',
|
2012-10-04 12:52:03 +00:00
|
|
|
'ios_sdk_version%': '6.0',
|
2013-03-08 18:00:16 +00:00
|
|
|
'skia_win_debuggers_path%': '<(skia_win_debuggers_path)',
|
2014-02-13 18:36:36 +00:00
|
|
|
'skia_disable_inlining%': 0,
|
2014-05-08 15:29:57 +00:00
|
|
|
'skia_moz2d%': 0,
|
2014-08-06 17:08:42 +00:00
|
|
|
'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEADLESS\', 0)")',
|
2014-10-01 17:52:52 +00:00
|
|
|
'skia_egl%': '<(skia_egl)',
|
2015-03-26 12:30:44 +00:00
|
|
|
'skia_fast%': 0,
|
|
|
|
'skia_fast_flags': [
|
|
|
|
'-O3', # Even for Debug builds.
|
|
|
|
'-march=native', # Use all features of and optimize for THIS machine.
|
|
|
|
'-fomit-frame-pointer', # Sometimes an extra register is nice, and cuts a push/pop.
|
|
|
|
'-ffast-math', # Optimize float math even when it breaks IEEE compliance.
|
|
|
|
#'-flto' # Enable link-time optimization.
|
|
|
|
],
|
2012-08-13 14:26:36 +00:00
|
|
|
|
2012-08-08 20:39:17 +00:00
|
|
|
# These are referenced by our .gypi files that list files (e.g. core.gypi)
|
|
|
|
#
|
|
|
|
'skia_src_path%': '../src',
|
|
|
|
'skia_include_path%': '../include',
|
2012-03-16 18:28:24 +00:00
|
|
|
},
|
|
|
|
}
|