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 ], 17 'dependencies': [ 18 'skia_lib.gyp:skia_lib', 19 'jsoncpp.gyp:jsoncpp', 20 ], 21 'direct_dependent_settings': { 22 'include_dirs': [ 23 '../gm/', 24 ], 25 }, 26 }, 27 { 28 'target_name': 'gm', 29 'type': 'executable', 30 'include_dirs' : [ 31 '../src/core', 32 '../src/images', 33 '../src/lazy', 34 '../src/effects', 35 '../src/pipe/utils/', 36 '../src/utils/', 37 '../src/utils/debugger', 38 ], 39 'includes': [ 40 'gmslides.gypi', 41 ], 42 'sources': [ 43 '../gm/gm.cpp', 44 '../gm/gmmain.cpp', 45 '../gm/system_preferences_default.cpp', 46 47 '../src/pipe/utils/SamplePipeControllers.h', 48 '../src/pipe/utils/SamplePipeControllers.cpp', 49 50 '../src/utils/debugger/SkDrawCommand.h', 51 '../src/utils/debugger/SkDrawCommand.cpp', 52 '../src/utils/debugger/SkDebugCanvas.h', 53 '../src/utils/debugger/SkDebugCanvas.cpp', 54 '../src/utils/debugger/SkObjectParser.h', 55 '../src/utils/debugger/SkObjectParser.cpp', 56 ], 57 'dependencies': [ 58 'skia_lib.gyp:skia_lib', 59 'flags.gyp:flags', 60 'gm.gyp:gm_expectations', 61 'jsoncpp.gyp:jsoncpp', 62 'pdf.gyp:pdf', 63 ], 64 'conditions': [ 65 ['skia_run_pdfviewer_in_gm', { 66 'defines': [ 67 'SK_BUILD_NATIVE_PDF_RENDERER', 68 ], 69 'include_dirs' : [ 70 '../experimental/PdfViewer/inc', 71 ], 72 'dependencies': [ 73 'pdfviewer_lib.gyp:pdfviewer_lib', 74 ], 75 }], 76 ['skia_os in ["linux", "mac", "win"]', { 77 'dependencies': [ 78 'poppler.gyp:libpoppler-cpp-gpl', 79 ], 80 'sources': [ 81 '../src/utils/SkPDFRasterizer.cpp', 82 ], 83 'defines': [ 84 'SK_BUILD_POPPLER', 85 ], 86 }], 87 ['skia_os == "mac"', { 88 'sources!': [ 89 '../gm/system_preferences_default.cpp', 90 ], 91 'sources': [ 92 '../gm/system_preferences_mac.mm', 93 ], 94 'link_settings': { 95 'libraries': [ 96 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', 97 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 98 ], 99 }, 100 }], 101 ['skia_os == "win"', { 102 'dependencies': [ 103 'xps.gyp:xps', 104 ], 105 }], 106 ['skia_gpu == 1', { 107 'include_dirs': [ 108 '../src/gpu', 109 ], 110 'dependencies': [ 111 'gputest.gyp:skgputest', 112 ], 113 }], 114 ], 115 }, 116 ], 117 } 118