Home | History | Annotate | Download | only in gyp
      1 # Copyright 2015 Google Inc.
      2 #
      3 # Use of this source code is governed by a BSD-style license that can be
      4 # found in the LICENSE file.
      5 # GYP file to build visual bench tool
      6 {
      7   'includes': [
      8     'apptype_console.gypi',
      9   ],
     10   'targets': [
     11     {
     12       'target_name': 'visualbench',
     13       'type': 'executable',
     14       'includes' : [
     15         'gmslides.gypi',
     16       ],
     17       'include_dirs' : [
     18         '../bench',
     19         '../include/gpu',
     20         '../include/private',
     21         '../src/core',
     22         '../src/effects',
     23         '../src/images',
     24         '../src/pdf',
     25       ],
     26       'sources': [
     27         '../gm/gm.cpp',
     28         '<!@(python find.py ../tools/VisualBench "*.cpp")',
     29         '<!@(python find.py ../tools/VisualBench "*.h")',
     30         '<!@(python find.py ../bench "*.cpp")',
     31       ],
     32       'sources!': [
     33         '../bench/nanobench.cpp',
     34         '../bench/nanobenchAndroid.cpp',
     35       ],
     36       'dependencies': [
     37         'etc1.gyp:libetc1',
     38         'flags.gyp:flags',
     39         'jsoncpp.gyp:jsoncpp',
     40         'gputest.gyp:skgputest',
     41         'pdf.gyp:pdf',
     42         'skia_lib.gyp:skia_lib',
     43         'tools.gyp:proc_stats',
     44         'tools.gyp:sk_tool_utils',
     45         'tools.gyp:timer',
     46         'tools.gyp:url_data_manager',
     47         'views.gyp:views',
     48       ],
     49       'conditions' : [
     50         [ 'skia_os == "android" and skia_use_sdl == 0', {
     51           'dependencies': [
     52             'android_deps.gyp:Android_VisualBench',
     53             'android_deps.gyp:native_app_glue',
     54           ],
     55          'link_settings': {
     56             'libraries': [
     57               '-landroid',
     58               '-lGLESv2',
     59               '-lEGL',
     60             ],
     61           },
     62         }],
     63         [ 'skia_os == "android" and skia_use_sdl == 1', {
     64           'dependencies': [
     65             'android_deps.gyp:Android_VisualBenchSDL',
     66           ],
     67         }],
     68       ],
     69     },
     70   ],
     71 }
     72