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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 'skia_win_debuggers_path%': '', | 92 'skia_win_debuggers_path%': '', |
93 'skia_shared_lib%': 0, | 93 'skia_shared_lib%': 0, |
| 94 |
| 95 # These variables determine the default optimization level for different |
| 96 # compilers. |
| 97 'skia_default_vs_optimization_level': 3, # full (/Ox) |
| 98 'skia_default_gcc_optimization_level': 3, # -O3 |
94 }, | 99 }, |
95 | 100 |
96 'conditions': [ | 101 'conditions': [ |
97 [ 'skia_os == "win" and skia_arch_width == 32 or ' | 102 [ 'skia_os == "win" and skia_arch_width == 32 or ' |
98 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] or ' | 103 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] or ' |
99 'skia_os == "mac" and skia_arch_width == 32', { | 104 'skia_os == "mac" and skia_arch_width == 32', { |
100 'skia_warnings_as_errors%': 1, | 105 'skia_warnings_as_errors%': 1, |
101 }, { | 106 }, { |
102 'skia_warnings_as_errors%': 0, | 107 'skia_warnings_as_errors%': 0, |
103 }], | 108 }], |
| 109 |
| 110 # This variable allows the user to customize the optimization level used |
| 111 # by the compiler. The user should be aware that this has different |
| 112 # meanings for different compilers and should exercise caution when |
| 113 # overriding it. |
| 114 [ 'skia_os == "win"', { |
| 115 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve
l)', |
| 116 }, { |
| 117 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev
el)', |
| 118 }], |
104 ], | 119 ], |
105 | 120 |
106 # Re-define all variables defined within the level-2 'variables' dict, | 121 # Re-define all variables defined within the level-2 'variables' dict, |
107 # so that siblings of the level-1 'variables' dict can see them. | 122 # so that siblings of the level-1 'variables' dict can see them. |
108 'armv7%': '<(armv7)', | 123 'armv7%': '<(armv7)', |
109 'arm_neon%': '<(arm_neon)', | 124 'arm_neon%': '<(arm_neon)', |
110 'skia_os%': '<(skia_os)', | 125 'skia_os%': '<(skia_os)', |
111 'os_posix%': '<(os_posix)', | 126 'os_posix%': '<(os_posix)', |
112 'skia_scalar%': '<(skia_scalar)', | 127 'skia_scalar%': '<(skia_scalar)', |
113 'skia_mesa%': '<(skia_mesa)', | 128 'skia_mesa%': '<(skia_mesa)', |
114 'skia_nv_path_rendering%': '<(skia_nv_path_rendering)', | 129 'skia_nv_path_rendering%': '<(skia_nv_path_rendering)', |
115 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', | 130 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', |
116 'skia_android_path_rendering%': '<(skia_android_path_rendering)', | 131 'skia_android_path_rendering%': '<(skia_android_path_rendering)', |
117 'skia_texture_cache_mb_limit%': '<(skia_texture_cache_mb_limit)', | 132 'skia_texture_cache_mb_limit%': '<(skia_texture_cache_mb_limit)', |
118 'skia_angle%': '<(skia_angle)', | 133 'skia_angle%': '<(skia_angle)', |
119 'skia_arch_width%': '<(skia_arch_width)', | 134 'skia_arch_width%': '<(skia_arch_width)', |
120 'skia_arch_type%': '<(skia_arch_type)', | 135 'skia_arch_type%': '<(skia_arch_type)', |
121 'skia_directwrite%': '<(skia_directwrite)', | 136 'skia_directwrite%': '<(skia_directwrite)', |
122 'skia_gpu%': '<(skia_gpu)', | 137 'skia_gpu%': '<(skia_gpu)', |
123 'skia_win_exceptions%': 0, | 138 'skia_win_exceptions%': 0, |
124 'skia_osx_sdkroot%': '<(skia_osx_sdkroot)', | 139 'skia_osx_sdkroot%': '<(skia_osx_sdkroot)', |
125 'skia_profile_enabled%': '<(skia_profile_enabled)', | 140 'skia_profile_enabled%': '<(skia_profile_enabled)', |
126 'skia_shared_lib%': '<(skia_shared_lib)', | 141 'skia_shared_lib%': '<(skia_shared_lib)', |
127 'skia_static_initializers%': '<(skia_static_initializers)', | 142 'skia_static_initializers%': '<(skia_static_initializers)', |
128 'ios_sdk_version%': '6.0', | 143 'ios_sdk_version%': '6.0', |
129 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', | 144 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
130 | 145 |
131 'skia_cros_target%': '', | |
132 | |
133 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 146 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
134 # | 147 # |
135 'skia_src_path%': '../src', | 148 'skia_src_path%': '../src', |
136 'skia_include_path%': '../include', | 149 'skia_include_path%': '../include', |
137 }, | 150 }, |
138 } | 151 } |
139 # Local Variables: | 152 # Local Variables: |
140 # tab-width:2 | 153 # tab-width:2 |
141 # indent-tabs-mode:nil | 154 # indent-tabs-mode:nil |
142 # End: | 155 # End: |
143 # vim: set expandtab tabstop=2 shiftwidth=2: | 156 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |