Chromium Code Reviews| 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 28 matching lines...) Expand all Loading... | |
| 39 'variables': { # level 2 | 39 'variables': { # level 2 |
| 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, |
|
djsollen
2014/04/01 18:52:17
so I was wrong about you needing to move it. It l
kevin.petit
2014/04/02 13:16:48
Done.
| |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 # Re-define all variables defined within the level-3 'variables' dict, | 52 # Re-define all variables defined within the level-3 'variables' dict, |
| 53 # so that siblings of the level-2 'variables' dict can see them. | 53 # so that siblings of the level-2 'variables' dict can see them. |
| 54 # (skia_os will depend on skia_android_framework.) | 54 # (skia_os will depend on skia_android_framework.) |
| 55 'skia_android_framework%': '<(skia_android_framework)', | 55 'skia_android_framework%': '<(skia_android_framework)', |
| 56 | 56 |
| 57 'conditions': [ | 57 'conditions': [ |
| 58 [ 'skia_android_framework == 1', { | 58 [ 'skia_android_framework == 1', { |
| 59 'skia_os%': 'android', | 59 'skia_os%': 'android', |
| 60 'skia_chrome_utils%': 0, | 60 'skia_chrome_utils%': 0, |
| 61 }, { | 61 }, { |
| 62 'skia_os%': '<(skia_os)', | 62 'skia_os%': '<(skia_os)', |
| 63 'skia_chrome_utils%': 1, | 63 'skia_chrome_utils%': 1, |
| 64 }], | 64 }], |
| 65 [ 'skia_os == "win"', { | 65 [ 'skia_os == "win"', { |
| 66 'os_posix%': 0, | 66 'os_posix%': 0, |
| 67 }, { | 67 }, { |
| 68 'os_posix%': 1, | 68 'os_posix%': 1, |
| 69 }], | 69 }], |
| 70 [ 'skia_os in ["linux", "win"]', { | 70 [ 'skia_os in ["linux", "win"]', { |
| 71 'skia_poppler_enabled%': 1, | 71 'skia_poppler_enabled%': 1, |
| 72 }, { | 72 }, { |
| 73 'skia_poppler_enabled%': 0, | 73 'skia_poppler_enabled%': 0, |
| 74 }], | 74 }], |
| 75 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"]', { | |
| 76 'skia_arch_width%': 64, | |
| 77 }, { | |
| 78 'skia_arch_width%': 32, | |
| 79 }], | |
| 80 [ 'skia_os == "android"', { | 75 [ 'skia_os == "android"', { |
| 81 'skia_static_initializers%': 0, | 76 'skia_static_initializers%': 0, |
| 82 }, { | 77 }, { |
| 83 'skia_static_initializers%': 1, | 78 'skia_static_initializers%': 1, |
| 84 }], | 79 }], |
| 85 [ 'skia_os == "ios"', { | 80 [ 'skia_os == "ios"', { |
| 86 'skia_arch_type%': 'arm', | 81 'skia_arch_type%': 'arm', |
| 87 'arm_version%': 7, | 82 'arm_version%': 7, |
| 88 'arm_neon%': 0, # neon asm files known not to work with the ios build | 83 'arm_neon%': 0, # neon asm files known not to work with the ios build |
| 89 },{ # skia_os is not ios | 84 },{ # skia_os is not ios |
| 90 'skia_arch_type%': 'x86', | 85 'skia_arch_type%': 'x86', |
| 91 'arm_version%': 0, | 86 'arm_version%': 0, |
| 92 'arm_neon%': 0, | 87 'arm_neon%': 0, |
| 93 }], | 88 }], |
| 89 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"] or skia_ arch_type == "arm64"', { | |
|
djsollen
2014/04/01 18:52:17
you can move this back to its original spot.
kevin.petit
2014/04/02 13:16:48
Done.
| |
| 90 'skia_arch_width%': 64, | |
| 91 }, { | |
| 92 'skia_arch_width%': 32, | |
| 93 }], | |
| 94 [ 'skia_os in ["android", "nacl"] and not skia_android_framework', | 94 [ 'skia_os in ["android", "nacl"] and not skia_android_framework', |
| 95 # skia_freetype_static - on OS variants that normally would | 95 # skia_freetype_static - on OS variants that normally would |
| 96 # dynamically link the system FreeType library, don't do | 96 # dynamically link the system FreeType library, don't do |
| 97 # that; instead statically link to the version in | 97 # that; instead statically link to the version in |
| 98 # third_party/freetype and third_party/externals/freetype. | 98 # third_party/freetype and third_party/externals/freetype. |
| 99 { | 99 { |
| 100 'skia_freetype_static%': '1', | 100 'skia_freetype_static%': '1', |
| 101 }, { | 101 }, { |
| 102 'skia_freetype_static%': '0', | 102 'skia_freetype_static%': '0', |
| 103 } | 103 } |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', | 217 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
| 218 'skia_run_pdfviewer_in_gm%': 0, | 218 'skia_run_pdfviewer_in_gm%': 0, |
| 219 'skia_disable_inlining%': 0, | 219 'skia_disable_inlining%': 0, |
| 220 | 220 |
| 221 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 221 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
| 222 # | 222 # |
| 223 'skia_src_path%': '../src', | 223 'skia_src_path%': '../src', |
| 224 'skia_include_path%': '../include', | 224 'skia_include_path%': '../include', |
| 225 }, | 225 }, |
| 226 } | 226 } |
| OLD | NEW |