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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow | 43 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow |
44 # for cross-compilation (e.g. building for either MacOS or iOS on Mac). | 44 # for cross-compilation (e.g. building for either MacOS or iOS on Mac). |
45 # We set it automatically based on 'OS' (the host OS), but allow the | 45 # We set it automatically based on 'OS' (the host OS), but allow the |
46 # user to override it via GYP_DEFINES if they like. | 46 # user to override it via GYP_DEFINES if they like. |
47 'skia_os%': '<(OS)', | 47 'skia_os%': '<(OS)', |
48 | 48 |
49 'skia_android_framework%': 0, | 49 'skia_android_framework%': 0, |
50 'skia_arch_type%': 'x86', | 50 'skia_arch_type%': 'x86', |
51 'arm_version%': 0, | 51 'arm_version%': 0, |
52 'arm_neon%': 0, | 52 'arm_neon%': 0, |
| 53 'skia_egl%': 0, |
53 }, | 54 }, |
54 | 55 |
55 # Re-define all variables defined within the level-3 'variables' dict, | 56 # Re-define all variables defined within the level-3 'variables' dict, |
56 # so that siblings of the level-2 'variables' dict can see them. | 57 # so that siblings of the level-2 'variables' dict can see them. |
57 # (skia_os will depend on skia_android_framework.) | 58 # (skia_os will depend on skia_android_framework.) |
58 'skia_android_framework%': '<(skia_android_framework)', | 59 'skia_android_framework%': '<(skia_android_framework)', |
59 'skia_arch_type%': '<(skia_arch_type)', | 60 'skia_arch_type%': '<(skia_arch_type)', |
60 'arm_version%': '<(arm_version)', | 61 'arm_version%': '<(arm_version)', |
61 'arm_neon%': '<(arm_neon)', | 62 'arm_neon%': '<(arm_neon)', |
| 63 'skia_egl%': '<(skia_egl)', |
62 | 64 |
63 'conditions': [ | 65 'conditions': [ |
64 [ 'skia_android_framework == 1', { | 66 [ 'skia_android_framework == 1', { |
65 'skia_os%': 'android', | 67 'skia_os%': 'android', |
66 'skia_chrome_utils%': 0, | 68 'skia_chrome_utils%': 0, |
67 'skia_use_system_json%': 1, | 69 'skia_use_system_json%': 1, |
68 }, { | 70 }, { |
69 'skia_os%': '<(skia_os)', | 71 'skia_os%': '<(skia_os)', |
70 'skia_chrome_utils%': 1, | 72 'skia_chrome_utils%': 1, |
71 'skia_use_system_json%': 0, | 73 'skia_use_system_json%': 0, |
72 }], | 74 }], |
73 [ 'skia_os == "win"', { | 75 [ 'skia_os == "win"', { |
74 'os_posix%': 0, | 76 'os_posix%': 0, |
75 }, { | 77 }, { |
76 'os_posix%': 1, | 78 'os_posix%': 1, |
77 }], | 79 }], |
78 [ 'skia_os in ["linux"]', { | 80 [ 'skia_os in ["linux"]', { |
79 'skia_poppler_enabled%': 1, | 81 'skia_poppler_enabled%': 1, |
80 }, { | 82 }, { |
81 'skia_poppler_enabled%': 0, | 83 'skia_poppler_enabled%': 0, |
82 }], | 84 }], |
83 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"] or skia_
arch_type == "arm64"', { | 85 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"] or skia_
arch_type == "arm64"', { |
84 'skia_arch_width%': 64, | 86 'skia_arch_width%': 64, |
85 }, { | 87 }, { |
86 'skia_arch_width%': 32, | 88 'skia_arch_width%': 32, |
87 }], | 89 }], |
88 [ 'skia_os == "android"', { | 90 [ 'skia_os == "android"', { |
89 'skia_static_initializers%': 0, | 91 'skia_static_initializers%': 0, |
| 92 'skia_egl%': 1, |
90 }, { | 93 }, { |
91 'skia_static_initializers%': 1, | 94 'skia_static_initializers%': 1, |
92 }], | 95 }], |
93 [ 'skia_os == "ios"', { | 96 [ 'skia_os == "ios"', { |
94 'skia_arch_type%': 'arm', | 97 'skia_arch_type%': 'arm', |
95 'arm_version%': 7, | 98 'arm_version%': 7, |
96 'arm_neon%': 0, # neon asm files known not to work with the ios build | 99 'arm_neon%': 0, # neon asm files known not to work with the ios build |
97 }], | 100 }], |
| 101 [ 'skia_os in "nacl"', { |
| 102 'skia_egl%': 1, |
| 103 }], |
98 [ 'skia_os in ["android", "nacl"] and not skia_android_framework', | 104 [ 'skia_os in ["android", "nacl"] and not skia_android_framework', |
99 # skia_freetype_static - on OS variants that normally would | 105 # skia_freetype_static - on OS variants that normally would |
100 # dynamically link the system FreeType library, don't do | 106 # dynamically link the system FreeType library, don't do |
101 # that; instead statically link to the version in | 107 # that; instead statically link to the version in |
102 # third_party/freetype and third_party/externals/freetype. | 108 # third_party/freetype and third_party/externals/freetype. |
103 { | 109 { |
104 'skia_freetype_static%': '1', | 110 'skia_freetype_static%': '1', |
105 }, { | 111 }, { |
106 'skia_freetype_static%': '0', | 112 'skia_freetype_static%': '0', |
107 } | 113 } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 'skia_shared_lib%': '<(skia_shared_lib)', | 232 'skia_shared_lib%': '<(skia_shared_lib)', |
227 'skia_opencl%': '<(skia_opencl)', | 233 'skia_opencl%': '<(skia_opencl)', |
228 'skia_force_distancefield_fonts%': '<(skia_force_distancefield_fonts)', | 234 'skia_force_distancefield_fonts%': '<(skia_force_distancefield_fonts)', |
229 'skia_static_initializers%': '<(skia_static_initializers)', | 235 'skia_static_initializers%': '<(skia_static_initializers)', |
230 'ios_sdk_version%': '6.0', | 236 'ios_sdk_version%': '6.0', |
231 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', | 237 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
232 'skia_run_pdfviewer_in_gm%': 0, | 238 'skia_run_pdfviewer_in_gm%': 0, |
233 'skia_disable_inlining%': 0, | 239 'skia_disable_inlining%': 0, |
234 'skia_moz2d%': 0, | 240 'skia_moz2d%': 0, |
235 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', | 241 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', |
| 242 'skia_egl%': '<(skia_egl)', |
236 | 243 |
237 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 244 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
238 # | 245 # |
239 'skia_src_path%': '../src', | 246 'skia_src_path%': '../src', |
240 'skia_include_path%': '../include', | 247 'skia_include_path%': '../include', |
241 }, | 248 }, |
242 } | 249 } |
OLD | NEW |