| 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 23 matching lines...) Expand all Loading... |
| 34 # | 34 # |
| 35 # See http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi?revisi
on=127004 , | 35 # See http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi?revisi
on=127004 , |
| 36 # which deals with these same constraints in a similar manner. | 36 # which deals with these same constraints in a similar manner. |
| 37 # | 37 # |
| 38 'variables': { # level 1 | 38 'variables': { # level 1 |
| 39 'angle_path%': '../', | 39 'angle_path%': '../', |
| 40 | 40 |
| 41 'skia_mojo%': '0', | 41 'skia_mojo%': '0', |
| 42 | 42 |
| 43 'variables': { # level 2 | 43 'variables': { # level 2 |
| 44 | |
| 45 # Variables needed by conditions list within the level-2 variables dict. | 44 # Variables needed by conditions list within the level-2 variables dict. |
| 46 'variables': { # level 3 | 45 'variables': { # level 3 |
| 47 'variables': { # level 4 | 46 'variables': { # level 4 |
| 48 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow | 47 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow |
| 49 # for cross-compilation (e.g. building for either MacOS or iOS on Mac)
. | 48 # for cross-compilation (e.g. building for either MacOS or iOS on Mac)
. |
| 50 # We set it automatically based on 'OS' (the host OS), but allow the | 49 # We set it automatically based on 'OS' (the host OS), but allow the |
| 51 # user to override it via GYP_DEFINES if they like. | 50 # user to override it via GYP_DEFINES if they like. |
| 52 'skia_os%': '<(OS)', | 51 'skia_os%': '<(OS)', |
| 53 }, | 52 }, |
| 54 'skia_os%': '<(skia_os)', | 53 'skia_os%': '<(skia_os)', |
| 55 | 54 'vulkan_merged_into_skia': '1', |
| 56 'skia_android_framework%': 0, | 55 'skia_android_framework%': 0, |
| 57 'conditions' : [ | 56 'conditions' : [ |
| 58 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"]', { | 57 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"]', { |
| 59 'skia_arch_type%': 'x86_64', | 58 'skia_arch_type%': 'x86_64', |
| 60 }, { | 59 }, { |
| 61 'skia_arch_type%': 'x86', | 60 'skia_arch_type%': 'x86', |
| 62 }], | 61 }], |
| 63 # RAW codec needs exceptions. Due to that, it is a separate target. It
s usage can be | 62 # RAW codec needs exceptions. Due to that, it is a separate target. It
s usage can be |
| 64 # controlled by skia_codec_decodes_raw. | 63 # controlled by skia_codec_decodes_raw. |
| 65 ['skia_os == "chromeos" or skia_os == "win"', { | 64 ['skia_os == "chromeos" or skia_os == "win"', { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 76 | 75 |
| 77 # Re-define all variables defined within the level-3 'variables' dict, | 76 # Re-define all variables defined within the level-3 'variables' dict, |
| 78 # so that siblings of the level-2 'variables' dict can see them. | 77 # so that siblings of the level-2 'variables' dict can see them. |
| 79 # (skia_os will depend on skia_android_framework.) | 78 # (skia_os will depend on skia_android_framework.) |
| 80 'skia_android_framework%': '<(skia_android_framework)', | 79 'skia_android_framework%': '<(skia_android_framework)', |
| 81 'skia_codec_decodes_raw%': '<(skia_codec_decodes_raw)', | 80 'skia_codec_decodes_raw%': '<(skia_codec_decodes_raw)', |
| 82 'skia_arch_type%': '<(skia_arch_type)', | 81 'skia_arch_type%': '<(skia_arch_type)', |
| 83 'arm_version%': '<(arm_version)', | 82 'arm_version%': '<(arm_version)', |
| 84 'arm_neon%': '<(arm_neon)', | 83 'arm_neon%': '<(arm_neon)', |
| 85 'skia_egl%': '<(skia_egl)', | 84 'skia_egl%': '<(skia_egl)', |
| 86 | 85 'vulkan_merged_into_skia%': '<(vulkan_merged_into_skia)', |
| 87 'conditions': [ | 86 'conditions': [ |
| 88 [ 'skia_android_framework == 1', { | 87 [ 'skia_android_framework == 1', { |
| 89 'skia_os%': 'android', | 88 'skia_os%': 'android', |
| 90 'skia_chrome_utils%': 0, | 89 'skia_chrome_utils%': 0, |
| 91 'skia_use_android_framework_defines%': 1, | 90 'skia_use_android_framework_defines%': 1, |
| 92 'skia_use_system_json%': 1, | 91 'skia_use_system_json%': 1, |
| 93 }, { | 92 }, { |
| 94 'skia_os%': '<(skia_os)', | 93 'skia_os%': '<(skia_os)', |
| 95 'skia_chrome_utils%': 1, | 94 'skia_chrome_utils%': 1, |
| 96 'skia_use_android_framework_defines%': 0, | 95 'skia_use_android_framework_defines%': 0, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 'ios_sdk_version%': '6.0', | 245 'ios_sdk_version%': '6.0', |
| 247 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', | 246 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
| 248 'skia_disable_inlining%': 0, | 247 'skia_disable_inlining%': 0, |
| 249 'skia_moz2d%': 0, | 248 'skia_moz2d%': 0, |
| 250 'skia_is_bot%': '<(skia_is_bot)', | 249 'skia_is_bot%': '<(skia_is_bot)', |
| 251 'skia_egl%': '<(skia_egl)', | 250 'skia_egl%': '<(skia_egl)', |
| 252 'skia_use_sdl%': 0, | 251 'skia_use_sdl%': 0, |
| 253 'skia_fast%': 0, | 252 'skia_fast%': 0, |
| 254 'skia_dump_stats%': 0, | 253 'skia_dump_stats%': 0, |
| 255 'skia_build_server%': 0, | 254 'skia_build_server%': 0, |
| 255 'vulkan_merged_into_skia%': '<(vulkan_merged_into_skia)', |
| 256 'skia_fast_flags': [ | 256 'skia_fast_flags': [ |
| 257 '-O3', # Even for Debug builds. | 257 '-O3', # Even for Debug builds. |
| 258 '-march=native', # Use all features of and optimize for THIS mac
hine. | 258 '-march=native', # Use all features of and optimize for THIS mac
hine. |
| 259 '-fomit-frame-pointer', # Sometimes an extra register is nice, and cuts
a push/pop. | 259 '-fomit-frame-pointer', # Sometimes an extra register is nice, and cuts
a push/pop. |
| 260 #'-ffast-math', # Optimize float math even when it breaks IEEE
compliance. | 260 #'-ffast-math', # Optimize float math even when it breaks IEEE
compliance. |
| 261 #'-flto' # Enable link-time optimization. | 261 #'-flto' # Enable link-time optimization. |
| 262 ], | 262 ], |
| 263 | 263 |
| 264 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 264 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
| 265 # | 265 # |
| 266 'skia_src_path%': '../src', | 266 'skia_src_path%': '../src', |
| 267 'skia_include_path%': '../include', | 267 'skia_include_path%': '../include', |
| 268 }, | 268 }, |
| 269 } | 269 } |
| OLD | NEW |