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',
      9       'type': 'executable',
     10       'include_dirs' : [
     11         '../src/core',
     12         '../src/effects',
     13         '../src/images',
     14         '../src/pipe/utils',
     15         '../src/utils',
     16       ],
     17       'includes': [
     18         'gmslides.gypi',
     19       ],
     20       'sources': [
     21         '../gm/gmmain.cpp',
     22         '../gm/system_preferences_default.cpp',
     23 
     24         '../src/pipe/utils/SamplePipeControllers.h',
     25         '../src/pipe/utils/SamplePipeControllers.cpp',
     26       ],
     27       'dependencies': [
     28         'etc1.gyp:libetc1',
     29         'flags.gyp:flags',
     30         'jsoncpp.gyp:jsoncpp',
     31         'pdf.gyp:pdf',
     32         'skia_lib.gyp:skia_lib',
     33         'tools.gyp:crash_handler',
     34         'tools.gyp:gm_expectations',
     35         'tools.gyp:resources',
     36       ],
     37       'conditions': [
     38         ['skia_android_framework', {
     39           'libraries': [
     40             '-lskia',
     41           ],
     42         }],
     43         ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', {
     44           'sources': [
     45             '../src/utils/SkPDFRasterizer.cpp',
     46           ],
     47         }],
     48         ['skia_run_pdfviewer_in_gm', {
     49           'defines': [
     50             'SK_BUILD_NATIVE_PDF_RENDERER',
     51           ],
     52           'include_dirs' : [
     53             '../experimental/PdfViewer/inc',
     54           ],
     55           'dependencies': [
     56             'pdfviewer_lib.gyp:pdfviewer_lib',
     57           ],
     58         }],
     59         ['skia_poppler_enabled', {
     60           'dependencies': [
     61             'poppler.gyp:*',
     62           ],
     63           'defines': [
     64             'SK_BUILD_POPPLER',
     65           ],
     66         }],
     67         ['skia_os == "mac"', {
     68           'sources!': [
     69             '../gm/system_preferences_default.cpp',
     70           ],
     71           'sources': [
     72             '../gm/system_preferences_mac.mm',
     73           ],
     74           'link_settings': {
     75             'libraries': [
     76               '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
     77               '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
     78             ],
     79           },
     80         }],
     81         ['skia_os == "win"', {
     82           'dependencies': [
     83             'xps.gyp:xps',
     84           ],
     85         }],
     86         ['skia_gpu == 1', {
     87           'include_dirs': [
     88             '../src/gpu',
     89           ],
     90           'dependencies': [
     91             'gputest.gyp:skgputest',
     92           ],
     93         }],
     94       ],
     95     },
     96   ],
     97 }
     98