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 performance testbench.
      6 #
      7 {
      8   'includes': [
      9     'apptype_console.gypi',
     10   ],
     11   'targets': [
     12     {
     13       'target_name': 'nanobench',
     14       'type': 'executable',
     15       'sources': [
     16         '../gm/gm.cpp',
     17         '../bench/CodecBench.cpp',
     18         '../bench/DecodingBench.cpp',
     19         '../bench/DecodingSubsetBench.cpp',
     20         '../bench/GMBench.cpp',
     21         '../bench/RecordingBench.cpp',
     22         '../bench/SKPAnimationBench.cpp',
     23         '../bench/SKPBench.cpp',
     24         '../bench/nanobench.cpp',
     25       ],
     26       'includes': [
     27         'bench.gypi',
     28         'gmslides.gypi',
     29       ],
     30       'dependencies': [
     31         'flags.gyp:flags_common',
     32         'jsoncpp.gyp:jsoncpp',
     33         'skia_lib.gyp:skia_lib',
     34         'tools.gyp:crash_handler',
     35         'tools.gyp:proc_stats',
     36         'tools.gyp:timer',
     37       ],
     38       'conditions': [
     39         ['skia_android_framework', {
     40           'libraries': [
     41             '-lskia',
     42             '-landroid',
     43             '-lgui',
     44             '-lhwui',
     45             '-lutils',
     46           ],
     47           'include_dirs': [
     48             '../../../frameworks/base/libs/hwui/',
     49             '../../../frameworks/native/include/',
     50           ],
     51           'sources': [
     52             '../bench/nanobenchAndroid.cpp',
     53           ],
     54           'dependencies': [
     55             'utils.gyp:android_utils',
     56           ],
     57         }],
     58       ],
     59     },
     60   ],
     61 }
     62