epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 1 | # Copyright 2012 The Android Open Source Project |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | { |
| 7 | # Get ready for the ugly... |
| 8 | # |
| 9 | # - We have to nest our variables dictionaries multiple levels deep, so that |
| 10 | # this and other gyp files can rely on previously-set variable values in |
| 11 | # their 'variables': { 'conditions': [] } clauses. |
| 12 | # |
| 13 | # Example 1: |
| 14 | # Within this file, we use the value of variable 'skia_os' to set the |
| 15 | # value of variable 'os_posix', so 'skia_os' must be defined within a |
| 16 | # "more inner" (enclosed) scope than 'os_posix'. |
| 17 | # |
| 18 | # Example 2: |
| 19 | # http://src.chromium.org/viewvc/chrome/trunk/src/third_party/libjpeg/libjpeg.gyp?revision=102306 , |
| 20 | # which we currently import into our build, uses the value of 'os_posix' |
| 21 | # within the 'conditions' list in its 'variables' dict. |
| 22 | # In order for that to work, it needs the value of 'os_posix' to have been |
| 23 | # set within a "more inner" (enclosed) scope than its own 'variables' dict. |
| 24 | # |
| 25 | # - On the other hand, key/value pairs of a given 'variable' dict are only |
| 26 | # inherited by: |
| 27 | # 1. directly enclosing 'variable' dicts, and |
| 28 | # 2. "sibling" 'variable' dicts (which, I guess, are combined into a single |
| 29 | # 'variable' dict during gyp processing) |
| 30 | # and NOT inherited by "uncles" (siblings of directly enclosing 'variable' |
| 31 | # dicts), so we have to re-define every variable at every enclosure level |
| 32 | # within our ridiculous matryoshka doll of 'variable' dicts. That's why |
| 33 | # we have variable definitions like this: 'skia_os%': '<(skia_os)', |
| 34 | # |
| 35 | # See http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi?revision=127004 , |
| 36 | # which deals with these same constraints in a similar manner. |
| 37 | # |
| 38 | 'variables': { # level 1 |
hendrikw | 10b371c | 2015-07-21 14:50:07 -0700 | [diff] [blame] | 39 | 'angle_path%': '../', |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 40 | 'variables': { # level 2 |
| 41 | |
| 42 | # Variables needed by conditions list within the level-2 variables dict. |
| 43 | 'variables': { # level 3 |
scroggo | df1c337 | 2015-02-12 10:48:25 -0800 | [diff] [blame] | 44 | 'variables': { # level 4 |
| 45 | # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow |
| 46 | # for cross-compilation (e.g. building for either MacOS or iOS on Mac). |
| 47 | # We set it automatically based on 'OS' (the host OS), but allow the |
| 48 | # user to override it via GYP_DEFINES if they like. |
| 49 | 'skia_os%': '<(OS)', |
| 50 | }, |
| 51 | 'skia_os%': '<(skia_os)', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 52 | |
| 53 | 'skia_android_framework%': 0, |
scroggo | df1c337 | 2015-02-12 10:48:25 -0800 | [diff] [blame] | 54 | 'conditions' : [ |
| 55 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"]', { |
| 56 | 'skia_arch_type%': 'x86_64', |
| 57 | }, { |
| 58 | 'skia_arch_type%': 'x86', |
| 59 | }], |
| 60 | ], |
djsollen@google.com | 6ee7a09 | 2014-05-29 17:00:28 +0000 | [diff] [blame] | 61 | 'arm_version%': 0, |
| 62 | 'arm_neon%': 0, |
derekf | 29dda80 | 2014-10-01 10:52:52 -0700 | [diff] [blame] | 63 | 'skia_egl%': 0, |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 64 | }, |
| 65 | |
| 66 | # Re-define all variables defined within the level-3 'variables' dict, |
| 67 | # so that siblings of the level-2 'variables' dict can see them. |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 68 | # (skia_os will depend on skia_android_framework.) |
| 69 | 'skia_android_framework%': '<(skia_android_framework)', |
commit-bot@chromium.org | 6f2d4d4 | 2014-04-02 15:03:56 +0000 | [diff] [blame] | 70 | 'skia_arch_type%': '<(skia_arch_type)', |
djsollen@google.com | 6ee7a09 | 2014-05-29 17:00:28 +0000 | [diff] [blame] | 71 | 'arm_version%': '<(arm_version)', |
| 72 | 'arm_neon%': '<(arm_neon)', |
derekf | 29dda80 | 2014-10-01 10:52:52 -0700 | [diff] [blame] | 73 | 'skia_egl%': '<(skia_egl)', |
caryclark@google.com | 976298e | 2012-09-24 19:41:43 +0000 | [diff] [blame] | 74 | |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 75 | 'conditions': [ |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 76 | [ 'skia_android_framework == 1', { |
| 77 | 'skia_os%': 'android', |
commit-bot@chromium.org | 93f5e51 | 2014-02-17 15:22:26 +0000 | [diff] [blame] | 78 | 'skia_chrome_utils%': 0, |
borenet | 243406e | 2015-07-22 13:29:25 -0700 | [diff] [blame] | 79 | 'skia_use_android_framework_defines%': 1, |
scroggo | f01a6c3 | 2014-06-18 10:31:40 -0700 | [diff] [blame] | 80 | 'skia_use_system_json%': 1, |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 81 | }, { |
| 82 | 'skia_os%': '<(skia_os)', |
commit-bot@chromium.org | 93f5e51 | 2014-02-17 15:22:26 +0000 | [diff] [blame] | 83 | 'skia_chrome_utils%': 1, |
borenet | 243406e | 2015-07-22 13:29:25 -0700 | [diff] [blame] | 84 | 'skia_use_android_framework_defines%': 0, |
scroggo | f01a6c3 | 2014-06-18 10:31:40 -0700 | [diff] [blame] | 85 | 'skia_use_system_json%': 0, |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 86 | }], |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 87 | [ 'skia_os == "win"', { |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 88 | 'os_posix%': 0, |
| 89 | }, { |
| 90 | 'os_posix%': 1, |
| 91 | }], |
hendrikw | 6f0fdac | 2015-09-23 11:35:55 -0700 | [diff] [blame] | 92 | [ 'skia_os == "linux"', { |
| 93 | # ANGLE on linux require these two variable be defined. |
| 94 | 'chromeos%': 0, |
| 95 | 'use_x11%': 1, |
| 96 | }], |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 97 | [ 'skia_os == "android"', { |
borenet@google.com | c2dd3d4 | 2012-09-11 21:37:28 +0000 | [diff] [blame] | 98 | 'skia_static_initializers%': 0, |
derekf | 29dda80 | 2014-10-01 10:52:52 -0700 | [diff] [blame] | 99 | 'skia_egl%': 1, |
borenet@google.com | c2dd3d4 | 2012-09-11 21:37:28 +0000 | [diff] [blame] | 100 | }, { |
| 101 | 'skia_static_initializers%': 1, |
| 102 | }], |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 103 | [ 'skia_os == "ios"', { |
| 104 | 'skia_arch_type%': 'arm', |
djsollen@google.com | f7542ba | 2013-07-31 12:57:27 +0000 | [diff] [blame] | 105 | 'arm_version%': 7, |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 106 | 'arm_neon%': 0, # neon asm files known not to work with the ios build |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 107 | }], |
borenet | 4808757 | 2015-04-02 12:16:36 -0700 | [diff] [blame] | 108 | [ 'skia_os == "android" and not skia_android_framework', |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 109 | # skia_freetype_static - on OS variants that normally would |
| 110 | # dynamically link the system FreeType library, don't do |
| 111 | # that; instead statically link to the version in |
| 112 | # third_party/freetype and third_party/externals/freetype. |
| 113 | { |
| 114 | 'skia_freetype_static%': '1', |
| 115 | }, { |
| 116 | 'skia_freetype_static%': '0', |
| 117 | } |
| 118 | ], |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 119 | ], |
| 120 | |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 121 | # skia_no_fontconfig - On POSIX systems that would normally use the |
| 122 | # SkFontHost_fontconfig interface; use the SkFontHost_linux |
| 123 | # version instead. |
| 124 | 'skia_no_fontconfig%': '0', |
bungeman | 5c9fa28 | 2015-03-30 12:53:48 -0700 | [diff] [blame] | 125 | 'skia_embedded_fonts%': '0', |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 126 | |
mtklein@google.com | 9f3b0e4 | 2013-10-08 15:16:36 +0000 | [diff] [blame] | 127 | 'skia_sanitizer%': '', |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 128 | 'skia_scalar%': 'float', |
| 129 | 'skia_mesa%': 0, |
egdaniel | 86e31a1 | 2015-03-09 09:40:42 -0700 | [diff] [blame] | 130 | 'skia_gpu_extra_dependency_path%': '', |
egdaniel | 4b5472b | 2015-08-12 06:51:08 -0700 | [diff] [blame] | 131 | 'skia_gpu_extra_tests_path%': '', |
sugoi@google.com | e3453cb | 2013-01-07 14:26:40 +0000 | [diff] [blame] | 132 | 'skia_stroke_path_rendering%': 0, |
jvanverth@google.com | 74dda90 | 2013-01-09 21:04:52 +0000 | [diff] [blame] | 133 | 'skia_android_path_rendering%': 0, |
robertphillips@google.com | 4e5559a | 2013-10-30 17:04:16 +0000 | [diff] [blame] | 134 | 'skia_resource_cache_mb_limit%': 0, |
| 135 | 'skia_resource_cache_count_limit%': 0, |
mtklein | ee2a3ea | 2015-02-25 08:16:19 -0800 | [diff] [blame] | 136 | 'skia_angle%': 0, |
hendrikw | 885bf09 | 2015-08-27 10:38:39 -0700 | [diff] [blame] | 137 | 'skia_command_buffer%': 0, |
Mike Klein | 9358706 | 2014-07-16 13:06:04 -0400 | [diff] [blame] | 138 | 'skia_gdi%': 0, |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 139 | 'skia_gpu%': 1, |
senorblanco@chromium.org | 29f351a | 2014-01-20 16:14:02 +0000 | [diff] [blame] | 140 | 'skia_osx_deployment_target%': '', |
halcanary | 8ee06f2 | 2015-08-11 10:30:12 -0700 | [diff] [blame] | 141 | 'skia_pdf%': 1, |
djsollen@google.com | 5afbbc4 | 2012-11-29 15:09:58 +0000 | [diff] [blame] | 142 | 'skia_profile_enabled%': 0, |
jvanverth | 65bd7ae | 2015-08-12 12:58:13 -0700 | [diff] [blame] | 143 | 'skia_vulkan%': 0, |
borenet@google.com | 663a979 | 2013-03-08 22:22:44 +0000 | [diff] [blame] | 144 | 'skia_win_debuggers_path%': '', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 145 | 'skia_shared_lib%': 0, |
zachr@google.com | d658568 | 2013-07-17 19:29:19 +0000 | [diff] [blame] | 146 | 'skia_opencl%': 0, |
jvanverth | 4736e14 | 2014-11-07 07:12:46 -0800 | [diff] [blame] | 147 | 'skia_force_distance_field_text%': 0, |
commit-bot@chromium.org | 06b3864 | 2013-06-20 20:28:54 +0000 | [diff] [blame] | 148 | |
| 149 | # These variables determine the default optimization level for different |
| 150 | # compilers. |
| 151 | 'skia_default_vs_optimization_level': 3, # full (/Ox) |
| 152 | 'skia_default_gcc_optimization_level': 3, # -O3 |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 153 | }, |
| 154 | |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 155 | 'conditions': [ |
mtklein | f19ec51 | 2014-12-15 10:38:42 -0800 | [diff] [blame] | 156 | [ 'skia_os in ["mac", "linux", "freebsd", "openbsd", "solaris", "android", "win"] ' |
| 157 | 'and skia_android_framework == 0', { |
mtklein | 161b6de | 2014-12-15 09:45:00 -0800 | [diff] [blame] | 158 | 'skia_warnings_as_errors%': 1, |
mtklein | 616e451 | 2014-12-15 09:49:12 -0800 | [diff] [blame] | 159 | }, { |
| 160 | 'skia_warnings_as_errors%': 0, |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 161 | }], |
commit-bot@chromium.org | 06b3864 | 2013-06-20 20:28:54 +0000 | [diff] [blame] | 162 | |
| 163 | # This variable allows the user to customize the optimization level used |
| 164 | # by the compiler. The user should be aware that this has different |
| 165 | # meanings for different compilers and should exercise caution when |
| 166 | # overriding it. |
| 167 | [ 'skia_os == "win"', { |
| 168 | 'skia_release_optimization_level%': '<(skia_default_vs_optimization_level)', |
| 169 | }, { |
| 170 | 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_level)', |
| 171 | }], |
hendrikw | 6f0fdac | 2015-09-23 11:35:55 -0700 | [diff] [blame] | 172 | [ 'skia_os == "linux"', { |
| 173 | # ANGLE on linux require these two variable be defined. |
| 174 | 'chromeos%': 0, |
| 175 | 'use_x11%': 1, |
| 176 | }], |
mtklein@google.com | 9f3b0e4 | 2013-10-08 15:16:36 +0000 | [diff] [blame] | 177 | [ 'skia_sanitizer', { |
borenet@google.com | 47ae4b0 | 2013-08-21 18:02:50 +0000 | [diff] [blame] | 178 | 'skia_clang_build': 1, |
commit-bot@chromium.org | 5003bde | 2013-10-25 18:14:54 +0000 | [diff] [blame] | 179 | 'skia_keep_frame_pointer': 1, |
borenet@google.com | 47ae4b0 | 2013-08-21 18:02:50 +0000 | [diff] [blame] | 180 | }, { |
| 181 | 'skia_clang_build%': 0, |
commit-bot@chromium.org | 5003bde | 2013-10-25 18:14:54 +0000 | [diff] [blame] | 182 | 'skia_keep_frame_pointer%': 0, |
borenet@google.com | 47ae4b0 | 2013-08-21 18:02:50 +0000 | [diff] [blame] | 183 | }], |
hendrikw | b1ac52f | 2015-10-01 18:29:34 -0700 | [diff] [blame] | 184 | [ 'skia_shared_lib or skia_sanitizer or skia_os == "android" or (skia_os == "linux" and (skia_angle == 1 or skia_command_buffer == 1))', { |
scroggo | c0bc913 | 2014-07-22 12:09:30 -0700 | [diff] [blame] | 185 | 'skia_pic%' : 1, |
| 186 | }, { |
| 187 | 'skia_pic%' : 0, |
| 188 | } |
| 189 | ], |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 190 | ], |
| 191 | |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 192 | # Re-define all variables defined within the level-2 'variables' dict, |
| 193 | # so that siblings of the level-1 'variables' dict can see them. |
djsollen@google.com | f7542ba | 2013-07-31 12:57:27 +0000 | [diff] [blame] | 194 | 'arm_version%': '<(arm_version)', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 195 | 'arm_neon%': '<(arm_neon)', |
djsollen@google.com | f7542ba | 2013-07-31 12:57:27 +0000 | [diff] [blame] | 196 | 'arm_neon_optional%': 0, |
djordje.pesut | aaf1df6 | 2014-06-06 14:09:12 -0700 | [diff] [blame] | 197 | 'mips_arch_variant%': 'mips32', |
| 198 | 'mips_dsp%': 0, |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 199 | 'skia_os%': '<(skia_os)', |
| 200 | 'os_posix%': '<(os_posix)', |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 201 | |
| 202 | 'skia_freetype_static%': '<(skia_freetype_static)', |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 203 | 'skia_no_fontconfig%': '<(skia_no_fontconfig)', |
bungeman | 5c9fa28 | 2015-03-30 12:53:48 -0700 | [diff] [blame] | 204 | 'skia_embedded_fonts%': '<(skia_embedded_fonts)', |
mtklein@google.com | 9f3b0e4 | 2013-10-08 15:16:36 +0000 | [diff] [blame] | 205 | 'skia_sanitizer%': '<(skia_sanitizer)', |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 206 | 'skia_scalar%': '<(skia_scalar)', |
| 207 | 'skia_mesa%': '<(skia_mesa)', |
egdaniel | 86e31a1 | 2015-03-09 09:40:42 -0700 | [diff] [blame] | 208 | 'skia_gpu_extra_dependency_path%': '<(skia_gpu_extra_dependency_path)', |
egdaniel | 4b5472b | 2015-08-12 06:51:08 -0700 | [diff] [blame] | 209 | 'skia_gpu_extra_tests_path%': '<(skia_gpu_extra_tests_path)', |
sugoi@google.com | e3453cb | 2013-01-07 14:26:40 +0000 | [diff] [blame] | 210 | 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 211 | 'skia_android_framework%': '<(skia_android_framework)', |
borenet | 243406e | 2015-07-22 13:29:25 -0700 | [diff] [blame] | 212 | 'skia_use_android_framework_defines%': '<(skia_use_android_framework_defines)', |
scroggo | f01a6c3 | 2014-06-18 10:31:40 -0700 | [diff] [blame] | 213 | 'skia_use_system_json%': '<(skia_use_system_json)', |
jvanverth@google.com | 74dda90 | 2013-01-09 21:04:52 +0000 | [diff] [blame] | 214 | 'skia_android_path_rendering%': '<(skia_android_path_rendering)', |
robertphillips@google.com | 4e5559a | 2013-10-30 17:04:16 +0000 | [diff] [blame] | 215 | 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)', |
| 216 | 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', |
robertphillips@google.com | 021bce9 | 2012-04-02 20:42:26 +0000 | [diff] [blame] | 217 | 'skia_angle%': '<(skia_angle)', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 218 | 'skia_arch_type%': '<(skia_arch_type)', |
robertphillips@google.com | 42cc237 | 2013-12-10 15:19:32 +0000 | [diff] [blame] | 219 | 'skia_chrome_utils%': '<(skia_chrome_utils)', |
hendrikw | 885bf09 | 2015-08-27 10:38:39 -0700 | [diff] [blame] | 220 | 'skia_command_buffer%': '<(skia_command_buffer)', |
Mike Klein | 720c66b | 2014-07-16 13:26:19 -0400 | [diff] [blame] | 221 | 'skia_gdi%': '<(skia_gdi)', |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 222 | 'skia_gpu%': '<(skia_gpu)', |
jvanverth | 65bd7ae | 2015-08-12 12:58:13 -0700 | [diff] [blame] | 223 | 'skia_vulkan%': '<(skia_vulkan)', |
commit-bot@chromium.org | 5a6c2d8 | 2013-06-14 17:10:09 +0000 | [diff] [blame] | 224 | 'skia_win_exceptions%': 0, |
bsalomon | da07a08 | 2014-06-26 12:56:28 -0700 | [diff] [blame] | 225 | 'skia_win_ltcg%': 1, |
senorblanco@chromium.org | 29f351a | 2014-01-20 16:14:02 +0000 | [diff] [blame] | 226 | 'skia_osx_deployment_target%': '<(skia_osx_deployment_target)', |
halcanary | 8ee06f2 | 2015-08-11 10:30:12 -0700 | [diff] [blame] | 227 | 'skia_pdf%': '<(skia_pdf)', |
djsollen@google.com | 5afbbc4 | 2012-11-29 15:09:58 +0000 | [diff] [blame] | 228 | 'skia_profile_enabled%': '<(skia_profile_enabled)', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 229 | 'skia_shared_lib%': '<(skia_shared_lib)', |
zachr@google.com | d658568 | 2013-07-17 19:29:19 +0000 | [diff] [blame] | 230 | 'skia_opencl%': '<(skia_opencl)', |
jvanverth | 4736e14 | 2014-11-07 07:12:46 -0800 | [diff] [blame] | 231 | 'skia_force_distance_field_text%': '<(skia_force_distance_field_text)', |
chudy@google.com | bbad34d | 2012-08-13 14:26:36 +0000 | [diff] [blame] | 232 | 'skia_static_initializers%': '<(skia_static_initializers)', |
bsalomon@google.com | 4663822 | 2012-10-04 12:52:03 +0000 | [diff] [blame] | 233 | 'ios_sdk_version%': '6.0', |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 234 | 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
commit-bot@chromium.org | 35d4872 | 2014-02-13 18:36:36 +0000 | [diff] [blame] | 235 | 'skia_disable_inlining%': 0, |
commit-bot@chromium.org | 199cf69 | 2014-05-08 15:29:57 +0000 | [diff] [blame] | 236 | 'skia_moz2d%': 0, |
mtklein | a7e930f | 2014-08-06 10:08:42 -0700 | [diff] [blame] | 237 | 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEADLESS\', 0)")', |
derekf | 29dda80 | 2014-10-01 10:52:52 -0700 | [diff] [blame] | 238 | 'skia_egl%': '<(skia_egl)', |
mtklein | dee3df9 | 2015-03-26 05:30:44 -0700 | [diff] [blame] | 239 | 'skia_fast%': 0, |
| 240 | 'skia_fast_flags': [ |
| 241 | '-O3', # Even for Debug builds. |
| 242 | '-march=native', # Use all features of and optimize for THIS machine. |
| 243 | '-fomit-frame-pointer', # Sometimes an extra register is nice, and cuts a push/pop. |
| 244 | '-ffast-math', # Optimize float math even when it breaks IEEE compliance. |
| 245 | #'-flto' # Enable link-time optimization. |
| 246 | ], |
chudy@google.com | bbad34d | 2012-08-13 14:26:36 +0000 | [diff] [blame] | 247 | |
reed@google.com | baa5d94 | 2012-08-08 20:39:17 +0000 | [diff] [blame] | 248 | # These are referenced by our .gypi files that list files (e.g. core.gypi) |
| 249 | # |
| 250 | 'skia_src_path%': '../src', |
| 251 | 'skia_include_path%': '../include', |
epoger@google.com | 573e8ba | 2012-03-16 18:28:24 +0000 | [diff] [blame] | 252 | }, |
| 253 | } |