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