| OLD | NEW |
| 1 # Copyright 2012 The Android Open Source Project | 1 # Copyright 2012 The Android Open Source Project |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 { | 6 { |
| 7 # Get ready for the ugly... | 7 # Get ready for the ugly... |
| 8 # | 8 # |
| 9 # - We have to nest our variables dictionaries multiple levels deep, so that | 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 | 10 # this and other gyp files can rely on previously-set variable values in |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 'skia_mesa%': 0, | 82 'skia_mesa%': 0, |
| 83 'skia_nv_path_rendering%': 0, | 83 'skia_nv_path_rendering%': 0, |
| 84 'skia_stroke_path_rendering%': 0, | 84 'skia_stroke_path_rendering%': 0, |
| 85 'skia_android_path_rendering%': 0, | 85 'skia_android_path_rendering%': 0, |
| 86 'skia_texture_cache_mb_limit%': 0, | 86 'skia_texture_cache_mb_limit%': 0, |
| 87 'skia_angle%': 0, | 87 'skia_angle%': 0, |
| 88 'skia_directwrite%': 0, | 88 'skia_directwrite%': 0, |
| 89 'skia_gpu%': 1, | 89 'skia_gpu%': 1, |
| 90 'skia_osx_sdkroot%': '', | 90 'skia_osx_sdkroot%': '', |
| 91 'skia_profile_enabled%': 0, | 91 'skia_profile_enabled%': 0, |
| 92 # Note: This is currently only turned on for linux and android. | |
| 93 # TODO: Turn on for Win and Mac as well. | |
| 94 'skia_warnings_as_errors%': 0, | |
| 95 'skia_win_debuggers_path%': '', | 92 'skia_win_debuggers_path%': '', |
| 96 }, | 93 }, |
| 97 | 94 |
| 95 'conditions': [ |
| 96 [ 'skia_os == "win" and skia_arch_width == 32 or ' |
| 97 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] or ' |
| 98 'skia_os == "mac" and skia_arch_width == 32', { |
| 99 'skia_warnings_as_errors%': 1, |
| 100 }, { |
| 101 'skia_warnings_as_errors%': 0, |
| 102 }], |
| 103 ], |
| 104 |
| 98 # Re-define all variables defined within the level-2 'variables' dict, | 105 # Re-define all variables defined within the level-2 'variables' dict, |
| 99 # so that siblings of the level-1 'variables' dict can see them. | 106 # so that siblings of the level-1 'variables' dict can see them. |
| 100 'armv7%': '<(armv7)', | 107 'armv7%': '<(armv7)', |
| 101 'arm_neon%': '<(arm_neon)', | 108 'arm_neon%': '<(arm_neon)', |
| 102 'skia_os%': '<(skia_os)', | 109 'skia_os%': '<(skia_os)', |
| 103 'os_posix%': '<(os_posix)', | 110 'os_posix%': '<(os_posix)', |
| 104 'skia_scalar%': '<(skia_scalar)', | 111 'skia_scalar%': '<(skia_scalar)', |
| 105 'skia_mesa%': '<(skia_mesa)', | 112 'skia_mesa%': '<(skia_mesa)', |
| 106 'skia_nv_path_rendering%': '<(skia_nv_path_rendering)', | 113 'skia_nv_path_rendering%': '<(skia_nv_path_rendering)', |
| 107 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', | 114 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', |
| 108 'skia_android_path_rendering%': '<(skia_android_path_rendering)', | 115 'skia_android_path_rendering%': '<(skia_android_path_rendering)', |
| 109 'skia_texture_cache_mb_limit%': '<(skia_texture_cache_mb_limit)', | 116 'skia_texture_cache_mb_limit%': '<(skia_texture_cache_mb_limit)', |
| 110 'skia_angle%': '<(skia_angle)', | 117 'skia_angle%': '<(skia_angle)', |
| 111 'skia_arch_width%': '<(skia_arch_width)', | 118 'skia_arch_width%': '<(skia_arch_width)', |
| 112 'skia_arch_type%': '<(skia_arch_type)', | 119 'skia_arch_type%': '<(skia_arch_type)', |
| 113 'skia_directwrite%': '<(skia_directwrite)', | 120 'skia_directwrite%': '<(skia_directwrite)', |
| 114 'skia_gpu%': '<(skia_gpu)', | 121 'skia_gpu%': '<(skia_gpu)', |
| 115 'skia_osx_sdkroot%': '<(skia_osx_sdkroot)', | 122 'skia_osx_sdkroot%': '<(skia_osx_sdkroot)', |
| 116 'skia_profile_enabled%': '<(skia_profile_enabled)', | 123 'skia_profile_enabled%': '<(skia_profile_enabled)', |
| 117 'skia_warnings_as_errors%': '<(skia_warnings_as_errors)', | |
| 118 'skia_static_initializers%': '<(skia_static_initializers)', | 124 'skia_static_initializers%': '<(skia_static_initializers)', |
| 119 'ios_sdk_version%': '6.0', | 125 'ios_sdk_version%': '6.0', |
| 120 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', | 126 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
| 121 | 127 |
| 122 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 128 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
| 123 # | 129 # |
| 124 'skia_src_path%': '../src', | 130 'skia_src_path%': '../src', |
| 125 'skia_include_path%': '../include', | 131 'skia_include_path%': '../include', |
| 126 }, | 132 }, |
| 127 } | 133 } |
| 128 # Local Variables: | 134 # Local Variables: |
| 129 # tab-width:2 | 135 # tab-width:2 |
| 130 # indent-tabs-mode:nil | 136 # indent-tabs-mode:nil |
| 131 # End: | 137 # End: |
| 132 # vim: set expandtab tabstop=2 shiftwidth=2: | 138 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |