Home | History | Annotate | Download | only in skia
      1 # Copyright 2013 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 
      6 # This gypi file contains the shim header generation and other settings to use
      7 # the system version of skia on Android.
      8 {
      9   'direct_dependent_settings': {
     10     # This makes the Android build system set the include path appropriately.
     11     'libraries': [ '-lskia' ],
     12     # Some Chrome code uses non-public header files (http://crbug.com/274425),
     13     # so we need to add this include path for now to make it build. The system
     14     # version of skia is already required to be the same as the chromium version
     15     # so using the bundled headers shouldn't break anything.
     16     'include_dirs': [
     17       '<(android_src)/external/skia/include',
     18       '<(android_src)/external/skia/include/core',
     19       '../third_party/skia/src/core',
     20     ],
     21     'defines': [
     22       'SK_ATTR_DEPRECATED=SK_NOTHING_ARG1',
     23     ],
     24   },
     25   'link_settings': {
     26     # This actually causes the final binary to be linked against skia.
     27     'libraries': [ '-lskia' ],
     28   },
     29   'variables': {
     30     'headers_root_path': '../third_party/skia/include',
     31   },
     32   'includes': [
     33     '../third_party/skia/gyp/public_headers.gypi',
     34     '../build/shim_headers.gypi',
     35   ],
     36 }
     37