Home | History | Annotate | Download | only in gyp
      1 # GYP file to build the "gm" (golden master) executable.
      2 {
      3   'includes': [
      4     'apptype_console.gypi',
      5   ],
      6   'targets': [
      7     {
      8       'target_name': 'gm_expectations',
      9       'type': 'static_library',
     10       'include_dirs' : [
     11         '../src/utils/',
     12       ],
     13       'sources': [
     14         '../gm/gm_expectations.h',
     15         '../gm/gm_expectations.cpp',
     16         '../tools/sk_tool_utils.cpp',
     17       ],
     18       'dependencies': [
     19         'crash_handler.gyp:CrashHandler',
     20         'jsoncpp.gyp:jsoncpp',
     21         'skia_lib.gyp:skia_lib',
     22       ],
     23       'direct_dependent_settings': {
     24         'include_dirs': [
     25           '../gm/',
     26         ],
     27       },
     28     },
     29     {
     30       'target_name': 'gm',
     31       'type': 'executable',
     32       'include_dirs' : [
     33         '../src/core',
     34         '../src/effects',
     35         '../src/images',
     36         '../src/pipe/utils',
     37         '../src/utils',
     38       ],
     39       'includes': [
     40         'gmslides.gypi',
     41       ],
     42       'sources': [
     43         '../gm/gmmain.cpp',
     44         '../gm/system_preferences_default.cpp',
     45 
     46         '../src/pipe/utils/SamplePipeControllers.h',
     47         '../src/pipe/utils/SamplePipeControllers.cpp',
     48       ],
     49       'dependencies': [
     50         'etc1.gyp:libetc1',
     51         'flags.gyp:flags',
     52         'gm.gyp:gm_expectations',
     53         'jsoncpp.gyp:jsoncpp',
     54         'pdf.gyp:pdf',
     55         'resources.gyp:resources',
     56         'skia_lib.gyp:skia_lib',
     57       ],
     58       'conditions': [
     59         ['skia_android_framework', {
     60           'libraries': [
     61             '-lskia',
     62           ],
     63         }],
     64         ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', {
     65           'sources': [
     66             '../src/utils/SkPDFRasterizer.cpp',
     67           ],
     68         }],
     69         ['skia_run_pdfviewer_in_gm', {
     70           'defines': [
     71             'SK_BUILD_NATIVE_PDF_RENDERER',
     72           ],
     73           'include_dirs' : [
     74             '../experimental/PdfViewer/inc',
     75           ],
     76           'dependencies': [
     77             'pdfviewer_lib.gyp:pdfviewer_lib',
     78           ],
     79         }],
     80         ['skia_poppler_enabled', {
     81           'dependencies': [
     82             'poppler.gyp:*',
     83           ],
     84           'defines': [
     85             'SK_BUILD_POPPLER',
     86           ],
     87         }],
     88         ['skia_os == "mac"', {
     89           'sources!': [
     90             '../gm/system_preferences_default.cpp',
     91           ],
     92           'sources': [
     93             '../gm/system_preferences_mac.mm',
     94           ],
     95           'link_settings': {
     96             'libraries': [
     97               '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
     98               '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
     99             ],
    100           },
    101         }],
    102         ['skia_os == "win"', {
    103           'dependencies': [
    104             'xps.gyp:xps',
    105           ],
    106         }],
    107         ['skia_gpu == 1', {
    108           'include_dirs': [
    109             '../src/gpu',
    110           ],
    111           'dependencies': [
    112             'gputest.gyp:skgputest',
    113           ],
    114         }],
    115       ],
    116     },
    117   ],
    118 }
    119