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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 # Variables needed by conditions list within the level-2 variables dict. | 41 # Variables needed by conditions list within the level-2 variables dict. |
42 'variables': { # level 3 | 42 'variables': { # level 3 |
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 }, | 51 }, |
51 | 52 |
52 # Re-define all variables defined within the level-3 'variables' dict, | 53 # Re-define all variables defined within the level-3 'variables' dict, |
53 # so that siblings of the level-2 'variables' dict can see them. | 54 # so that siblings of the level-2 'variables' dict can see them. |
54 # (skia_os will depend on skia_android_framework.) | 55 # (skia_os will depend on skia_android_framework.) |
55 'skia_android_framework%': '<(skia_android_framework)', | 56 'skia_android_framework%': '<(skia_android_framework)', |
| 57 'skia_arch_type%': '<(skia_arch_type)', |
56 | 58 |
57 'conditions': [ | 59 'conditions': [ |
58 [ 'skia_android_framework == 1', { | 60 [ 'skia_android_framework == 1', { |
59 'skia_os%': 'android', | 61 'skia_os%': 'android', |
60 'skia_chrome_utils%': 0, | 62 'skia_chrome_utils%': 0, |
61 }, { | 63 }, { |
62 'skia_os%': '<(skia_os)', | 64 'skia_os%': '<(skia_os)', |
63 'skia_chrome_utils%': 1, | 65 'skia_chrome_utils%': 1, |
64 }], | 66 }], |
65 [ 'skia_os == "win"', { | 67 [ 'skia_os == "win"', { |
66 'os_posix%': 0, | 68 'os_posix%': 0, |
67 }, { | 69 }, { |
68 'os_posix%': 1, | 70 'os_posix%': 1, |
69 }], | 71 }], |
70 [ 'skia_os in ["linux", "win"]', { | 72 [ 'skia_os in ["linux", "win"]', { |
71 'skia_poppler_enabled%': 1, | 73 'skia_poppler_enabled%': 1, |
72 }, { | 74 }, { |
73 'skia_poppler_enabled%': 0, | 75 'skia_poppler_enabled%': 0, |
74 }], | 76 }], |
75 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"]', { | 77 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"] or skia_
arch_type == "arm64"', { |
76 'skia_arch_width%': 64, | 78 'skia_arch_width%': 64, |
77 }, { | 79 }, { |
78 'skia_arch_width%': 32, | 80 'skia_arch_width%': 32, |
79 }], | 81 }], |
80 [ 'skia_os == "android"', { | 82 [ 'skia_os == "android"', { |
81 'skia_static_initializers%': 0, | 83 'skia_static_initializers%': 0, |
82 }, { | 84 }, { |
83 'skia_static_initializers%': 1, | 85 'skia_static_initializers%': 1, |
84 }], | 86 }], |
85 [ 'skia_os == "ios"', { | 87 [ 'skia_os == "ios"', { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', | 219 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
218 'skia_run_pdfviewer_in_gm%': 0, | 220 'skia_run_pdfviewer_in_gm%': 0, |
219 'skia_disable_inlining%': 0, | 221 'skia_disable_inlining%': 0, |
220 | 222 |
221 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 223 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
222 # | 224 # |
223 'skia_src_path%': '../src', | 225 'skia_src_path%': '../src', |
224 'skia_include_path%': '../include', | 226 'skia_include_path%': '../include', |
225 }, | 227 }, |
226 } | 228 } |
OLD | NEW |