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/effects', 33 '../src/pipe/utils/', 34 '../src/utils/', 35 '../src/utils/debugger', 36 ], 37 'includes': [ 38 'gmslides.gypi', 39 ], 40 'sources': [ 41 '../gm/gm.cpp', 42 '../gm/gmmain.cpp', 43 '../gm/system_preferences_default.cpp', 44 45 '../src/pipe/utils/SamplePipeControllers.h', 46 '../src/pipe/utils/SamplePipeControllers.cpp', 47 48 '../src/utils/debugger/SkDrawCommand.h', 49 '../src/utils/debugger/SkDrawCommand.cpp', 50 '../src/utils/debugger/SkDebugCanvas.h', 51 '../src/utils/debugger/SkDebugCanvas.cpp', 52 '../src/utils/debugger/SkObjectParser.h', 53 '../src/utils/debugger/SkObjectParser.cpp', 54 ], 55 'dependencies': [ 56 'skia_lib.gyp:skia_lib', 57 'flags.gyp:flags', 58 'gm.gyp:gm_expectations', 59 'jsoncpp.gyp:jsoncpp', 60 'pdf.gyp:pdf', 61 ], 62 'conditions': [ 63 ['skia_os == "mac"', { 64 'sources!': [ 65 '../gm/system_preferences_default.cpp', 66 ], 67 'sources': [ 68 '../gm/system_preferences_mac.mm', 69 ], 70 'link_settings': { 71 'libraries': [ 72 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', 73 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 74 ], 75 }, 76 }], 77 ['skia_os == "win"', { 78 'dependencies': [ 79 'xps.gyp:xps', 80 ], 81 }], 82 ['skia_gpu == 1', { 83 'include_dirs': [ 84 '../src/gpu', 85 ], 86 }], 87 ], 88 }, 89 ], 90 } 91 92 # Local Variables: 93 # tab-width:2 94 # indent-tabs-mode:nil 95 # End: 96 # vim: set expandtab tabstop=2 shiftwidth=2: 97