| 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 30 matching lines...) Expand all Loading... |
| 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 'skia_arch_type%': 'x86', |
| 51 'arm_version%': 0, |
| 52 'arm_neon%': 0, |
| 51 }, | 53 }, |
| 52 | 54 |
| 53 # Re-define all variables defined within the level-3 'variables' dict, | 55 # Re-define all variables defined within the level-3 'variables' dict, |
| 54 # so that siblings of the level-2 'variables' dict can see them. | 56 # so that siblings of the level-2 'variables' dict can see them. |
| 55 # (skia_os will depend on skia_android_framework.) | 57 # (skia_os will depend on skia_android_framework.) |
| 56 'skia_android_framework%': '<(skia_android_framework)', | 58 'skia_android_framework%': '<(skia_android_framework)', |
| 57 'skia_arch_type%': '<(skia_arch_type)', | 59 'skia_arch_type%': '<(skia_arch_type)', |
| 60 'arm_version%': '<(arm_version)', |
| 61 'arm_neon%': '<(arm_neon)', |
| 58 | 62 |
| 59 'conditions': [ | 63 'conditions': [ |
| 60 [ 'skia_android_framework == 1', { | 64 [ 'skia_android_framework == 1', { |
| 61 'skia_os%': 'android', | 65 'skia_os%': 'android', |
| 62 'skia_chrome_utils%': 0, | 66 'skia_chrome_utils%': 0, |
| 63 # FIXME (scroggo): JSON is disabled in Android framework until we | 67 # FIXME (scroggo): JSON is disabled in Android framework until we |
| 64 # solve skbug.com/2448 | 68 # solve skbug.com/2448 |
| 65 'skia_build_json_writer%': 0, | 69 'skia_build_json_writer%': 0, |
| 66 }, { | 70 }, { |
| 67 'skia_os%': '<(skia_os)', | 71 'skia_os%': '<(skia_os)', |
| (...skipping 17 matching lines...) Expand all Loading... |
| 85 }], | 89 }], |
| 86 [ 'skia_os == "android"', { | 90 [ 'skia_os == "android"', { |
| 87 'skia_static_initializers%': 0, | 91 'skia_static_initializers%': 0, |
| 88 }, { | 92 }, { |
| 89 'skia_static_initializers%': 1, | 93 'skia_static_initializers%': 1, |
| 90 }], | 94 }], |
| 91 [ 'skia_os == "ios"', { | 95 [ 'skia_os == "ios"', { |
| 92 'skia_arch_type%': 'arm', | 96 'skia_arch_type%': 'arm', |
| 93 'arm_version%': 7, | 97 'arm_version%': 7, |
| 94 'arm_neon%': 0, # neon asm files known not to work with the ios build | 98 'arm_neon%': 0, # neon asm files known not to work with the ios build |
| 95 },{ # skia_os is not ios | |
| 96 'skia_arch_type%': 'x86', | |
| 97 'arm_version%': 0, | |
| 98 'arm_neon%': 0, | |
| 99 }], | 99 }], |
| 100 [ 'skia_os in ["android", "nacl"] and not skia_android_framework', | 100 [ 'skia_os in ["android", "nacl"] and not skia_android_framework', |
| 101 # skia_freetype_static - on OS variants that normally would | 101 # skia_freetype_static - on OS variants that normally would |
| 102 # dynamically link the system FreeType library, don't do | 102 # dynamically link the system FreeType library, don't do |
| 103 # that; instead statically link to the version in | 103 # that; instead statically link to the version in |
| 104 # third_party/freetype and third_party/externals/freetype. | 104 # third_party/freetype and third_party/externals/freetype. |
| 105 { | 105 { |
| 106 'skia_freetype_static%': '1', | 106 'skia_freetype_static%': '1', |
| 107 }, { | 107 }, { |
| 108 'skia_freetype_static%': '0', | 108 'skia_freetype_static%': '0', |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 'skia_run_pdfviewer_in_gm%': 0, | 225 'skia_run_pdfviewer_in_gm%': 0, |
| 226 'skia_disable_inlining%': 0, | 226 'skia_disable_inlining%': 0, |
| 227 'skia_moz2d%': 0, | 227 'skia_moz2d%': 0, |
| 228 | 228 |
| 229 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 229 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
| 230 # | 230 # |
| 231 'skia_src_path%': '../src', | 231 'skia_src_path%': '../src', |
| 232 'skia_include_path%': '../include', | 232 'skia_include_path%': '../include', |
| 233 }, | 233 }, |
| 234 } | 234 } |
| OLD | NEW |