| OLD | NEW | 
|    1 # conditions used in both common.gypi and skia.gyp in chromium |    1 # conditions used in both common.gypi and skia.gyp in chromium | 
|    2 # |    2 # | 
|    3 { |    3 { | 
|    4   'defines': [ |    4   'defines': [ | 
|    5     'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', |    5     'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', | 
|    6     'SK_SUPPORT_GPU=<(skia_gpu)', |    6     'SK_SUPPORT_GPU=<(skia_gpu)', | 
|    7     'SK_SUPPORT_OPENCL=<(skia_opencl)', |    7     'SK_SUPPORT_OPENCL=<(skia_opencl)', | 
|    8     'SK_DISTANCEFIELD_FONTS=<(skia_distancefield_fonts)', |    8     'SK_DISTANCEFIELD_FONTS=<(skia_distancefield_fonts)', | 
|    9   ], |    9   ], | 
|   10   'conditions' : [ |   10   'conditions' : [ | 
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  186                 'cflags': [ |  186                 'cflags': [ | 
|  187                   '-mfloat-abi=softfp', |  187                   '-mfloat-abi=softfp', | 
|  188                 ], |  188                 ], | 
|  189               }], |  189               }], | 
|  190             ], |  190             ], | 
|  191           }], |  191           }], | 
|  192         ], |  192         ], | 
|  193       }, |  193       }, | 
|  194     ], |  194     ], | 
|  195  |  195  | 
|  196     ['skia_android_framework', { |  | 
|  197       'cflags': [ |  | 
|  198         # Skia does not enforce this usage pattern so we disable it here to avoi
     d |  | 
|  199         # unecessary log spew when building |  | 
|  200         '-Wno-unused-parameter', |  | 
|  201  |  | 
|  202         # Android's -D_FORTIFY_SOURCE=2 extensions are incompatibile with SkStri
     ng. |  | 
|  203         # Revert to -D_FORTIFY_SOURCE=1 |  | 
|  204         '-U_FORTIFY_SOURCE', |  | 
|  205         '-D_FORTIFY_SOURCE=1', |  | 
|  206       ], |  | 
|  207       'defines': [ |  | 
|  208         'DCT_IFAST_SUPPORTED', |  | 
|  209         # using freetype's embolden allows us to adjust fake bold settings at |  | 
|  210         # draw-time, at which point we know which SkTypeface is being drawn |  | 
|  211         'SK_USE_FREETYPE_EMBOLDEN', |  | 
|  212         # Android provides at least FreeType 2.4.0 at runtime. |  | 
|  213         'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', |  | 
|  214         # Skia should not use dlopen on Android. |  | 
|  215         'SK_CAN_USE_DLOPEN=0', |  | 
|  216       ], |  | 
|  217     }], |  | 
|  218  |  196  | 
|  219     [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"]
     ', |  197     [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"]
     ', | 
|  220       { |  198       { | 
|  221         'defines': [ |  199         'defines': [ | 
|  222           'SK_SAMPLES_FOR_X', |  200           'SK_SAMPLES_FOR_X', | 
|  223           'SK_BUILD_FOR_UNIX', |  201           'SK_BUILD_FOR_UNIX', | 
|  224         ], |  202         ], | 
|  225         'configurations': { |  203         'configurations': { | 
|  226           'Coverage': { |  204           'Coverage': { | 
|  227             'cflags': ['--coverage'], |  205             'cflags': ['--coverage'], | 
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  449         }, |  427         }, | 
|  450       }, |  428       }, | 
|  451     ], |  429     ], | 
|  452  |  430  | 
|  453     [ 'skia_os == "android"', |  431     [ 'skia_os == "android"', | 
|  454       { |  432       { | 
|  455         'defines': [ |  433         'defines': [ | 
|  456           'SK_BUILD_FOR_ANDROID', |  434           'SK_BUILD_FOR_ANDROID', | 
|  457           'SK_FONTHOST_DOES_NOT_USE_FONTMGR', |  435           'SK_FONTHOST_DOES_NOT_USE_FONTMGR', | 
|  458         ], |  436         ], | 
|  459         'conditions': [ |  437         'configurations': { | 
|  460           [ 'skia_android_framework==0', { |  438           'Debug': { | 
|  461             # Don't use the configurations for skia_android_framework, where |  439             'cflags': ['-g'] | 
|  462             # we generate a single makefile for all builds, and flags can be |  440           }, | 
|  463             # set manually for debugging. |  441           'Release': { | 
|  464             'configurations': { |  442             'cflags': ['-O2'], | 
|  465               'Debug': { |  443             'defines': [ 'NDEBUG' ], | 
|  466                 'cflags': ['-g'] |  444           }, | 
|  467               }, |  445         }, | 
|  468               'Release': { |  | 
|  469                 'cflags': ['-O2'], |  | 
|  470                 'defines': [ 'NDEBUG' ], |  | 
|  471               }, |  | 
|  472             }, |  | 
|  473             # Adding these libraries is not necessary for the framework. |  | 
|  474             'libraries': [ |  | 
|  475                '-lstdc++', |  | 
|  476                '-lm', |  | 
|  477             ], |  | 
|  478           }], |  | 
|  479         ], |  | 
|  480         'libraries': [ |  446         'libraries': [ | 
 |  447           '-lstdc++', | 
 |  448           '-lm', | 
|  481           '-llog', |  449           '-llog', | 
|  482         ], |  450         ], | 
|  483         'cflags': [ |  451         'cflags': [ | 
|  484           '-fuse-ld=gold', |  452           '-fuse-ld=gold', | 
|  485         ], |  453         ], | 
|  486         'conditions': [ |  454         'conditions': [ | 
|  487           [ 'skia_shared_lib', { |  455           [ 'skia_shared_lib', { | 
|  488             'cflags': [ |  456             'cflags': [ | 
|  489               '-fPIC', |  457               '-fPIC', | 
|  490             ], |  458             ], | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
|  506       'defines': [ |  474       'defines': [ | 
|  507         'SK_USE_POSIX_THREADS', |  475         'SK_USE_POSIX_THREADS', | 
|  508       ], |  476       ], | 
|  509     }], |  477     }], | 
|  510   ], # end 'conditions' |  478   ], # end 'conditions' | 
|  511   # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
      more details |  479   # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
      more details | 
|  512   'xcode_settings': { |  480   'xcode_settings': { | 
|  513     'SYMROOT': '<(DEPTH)/xcodebuild', |  481     'SYMROOT': '<(DEPTH)/xcodebuild', | 
|  514   }, |  482   }, | 
|  515 } |  483 } | 
| OLD | NEW |