epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 1 | # GYP file to build the "gm" (golden master) executable. |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 2 | { |
| 3 | 'includes': [ |
| 4 | 'apptype_console.gypi', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 5 | ], |
| 6 | 'targets': [ |
| 7 | { |
scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 8 | 'target_name': 'gm_expectations', |
| 9 | 'type': 'static_library', |
| 10 | 'include_dirs' : [ |
scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 11 | '../src/utils/', |
| 12 | ], |
| 13 | 'sources': [ |
| 14 | '../gm/gm_expectations.h', |
| 15 | '../gm/gm_expectations.cpp', |
| 16 | ], |
| 17 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 18 | 'skia_lib.gyp:skia_lib', |
scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 19 | 'jsoncpp.gyp:jsoncpp', |
scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 20 | ], |
| 21 | 'direct_dependent_settings': { |
| 22 | 'include_dirs': [ |
| 23 | '../gm/', |
| 24 | ], |
| 25 | }, |
| 26 | }, |
| 27 | { |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 28 | 'target_name': 'gm', |
| 29 | 'type': 'executable', |
robertphillips@google.com | 67febd9 | 2012-05-22 12:14:50 +0000 | [diff] [blame] | 30 | 'include_dirs' : [ |
| 31 | '../src/core', |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 32 | '../src/images', |
| 33 | '../src/lazy', |
humper@google.com | 7c7292c | 2013-01-04 20:29:03 +0000 | [diff] [blame] | 34 | '../src/effects', |
scroggo | 93b4375 | 2012-06-06 21:26:31 +0000 | [diff] [blame] | 35 | '../src/pipe/utils/', |
epoger@google.com | ee8a8e3 | 2012-12-18 19:13:49 +0000 | [diff] [blame] | 36 | '../src/utils/', |
fmalita@google.com | 4df1673 | 2013-06-13 21:25:45 +0000 | [diff] [blame] | 37 | '../src/utils/debugger', |
robertphillips@google.com | 67febd9 | 2012-05-22 12:14:50 +0000 | [diff] [blame] | 38 | ], |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 39 | 'includes': [ |
| 40 | 'gmslides.gypi', |
| 41 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 42 | 'sources': [ |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 43 | '../gm/gm.cpp', |
reed@google.com | 30db599 | 2011-08-29 17:41:02 +0000 | [diff] [blame] | 44 | '../gm/gmmain.cpp', |
epoger@google.com | 7bc13a6 | 2012-02-14 14:53:59 +0000 | [diff] [blame] | 45 | '../gm/system_preferences_default.cpp', |
robertphillips@google.com | ad7d481 | 2013-04-12 15:13:35 +0000 | [diff] [blame] | 46 | |
scroggo@google.com | 72c9672 | 2012-06-06 21:07:10 +0000 | [diff] [blame] | 47 | '../src/pipe/utils/SamplePipeControllers.h', |
| 48 | '../src/pipe/utils/SamplePipeControllers.cpp', |
fmalita@google.com | 86681b3 | 2013-06-13 20:59:14 +0000 | [diff] [blame] | 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', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 56 | ], |
| 57 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 58 | 'skia_lib.gyp:skia_lib', |
scroggo@google.com | 09fd4d2 | 2013-03-20 14:20:18 +0000 | [diff] [blame] | 59 | 'flags.gyp:flags', |
scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 60 | 'gm.gyp:gm_expectations', |
epoger@google.com | ee8a8e3 | 2012-12-18 19:13:49 +0000 | [diff] [blame] | 61 | 'jsoncpp.gyp:jsoncpp', |
epoger@google.com | dcab3a1 | 2011-06-24 19:09:09 +0000 | [diff] [blame] | 62 | 'pdf.gyp:pdf', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 63 | ], |
bungeman@google.com | 0f1541f | 2011-10-10 13:47:06 +0000 | [diff] [blame] | 64 | 'conditions': [ |
commit-bot@chromium.org | 1066f08 | 2014-01-10 19:09:00 +0000 | [diff] [blame^] | 65 | ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', { |
| 66 | 'sources': [ |
| 67 | '../src/utils/SkPDFRasterizer.cpp', |
| 68 | ], |
| 69 | }], |
commit-bot@chromium.org | ffd178c | 2013-11-11 15:10:47 +0000 | [diff] [blame] | 70 | ['skia_run_pdfviewer_in_gm', { |
| 71 | 'defines': [ |
| 72 | 'SK_BUILD_NATIVE_PDF_RENDERER', |
| 73 | ], |
commit-bot@chromium.org | 23a9121 | 2013-11-12 17:44:28 +0000 | [diff] [blame] | 74 | 'include_dirs' : [ |
scroggo@google.com | 9092289 | 2013-11-14 19:09:27 +0000 | [diff] [blame] | 75 | '../experimental/PdfViewer/inc', |
commit-bot@chromium.org | 23a9121 | 2013-11-12 17:44:28 +0000 | [diff] [blame] | 76 | ], |
| 77 | 'dependencies': [ |
| 78 | 'pdfviewer_lib.gyp:pdfviewer_lib', |
| 79 | ], |
commit-bot@chromium.org | ffd178c | 2013-11-11 15:10:47 +0000 | [diff] [blame] | 80 | }], |
commit-bot@chromium.org | 83f5692 | 2014-01-09 22:54:26 +0000 | [diff] [blame] | 81 | ['skia_poppler_enabled', { |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 82 | 'dependencies': [ |
| 83 | 'poppler.gyp:libpoppler-cpp-gpl', |
| 84 | ], |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 85 | 'defines': [ |
| 86 | 'SK_BUILD_POPPLER', |
| 87 | ], |
| 88 | }], |
epoger@google.com | 7bc13a6 | 2012-02-14 14:53:59 +0000 | [diff] [blame] | 89 | ['skia_os == "mac"', { |
| 90 | 'sources!': [ |
| 91 | '../gm/system_preferences_default.cpp', |
| 92 | ], |
| 93 | 'sources': [ |
| 94 | '../gm/system_preferences_mac.mm', |
| 95 | ], |
| 96 | 'link_settings': { |
| 97 | 'libraries': [ |
| 98 | '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |
| 99 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 100 | ], |
| 101 | }, |
| 102 | }], |
| 103 | ['skia_os == "win"', { |
bungeman@google.com | 0f1541f | 2011-10-10 13:47:06 +0000 | [diff] [blame] | 104 | 'dependencies': [ |
| 105 | 'xps.gyp:xps', |
| 106 | ], |
| 107 | }], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 108 | ['skia_gpu == 1', { |
| 109 | 'include_dirs': [ |
| 110 | '../src/gpu', |
| 111 | ], |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 112 | 'dependencies': [ |
| 113 | 'gputest.gyp:skgputest', |
| 114 | ], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 115 | }], |
| 116 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 117 | }, |
| 118 | ], |
| 119 | } |