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 | { |
| 8 | 'target_name': 'gm', |
| 9 | 'type': 'executable', |
robertphillips@google.com | 67febd9 | 2012-05-22 12:14:50 +0000 | [diff] [blame] | 10 | 'include_dirs' : [ |
| 11 | '../src/core', |
humper@google.com | 7c7292c | 2013-01-04 20:29:03 +0000 | [diff] [blame] | 12 | '../src/effects', |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 13 | '../src/images', |
| 14 | '../src/pipe/utils', |
| 15 | '../src/utils', |
robertphillips@google.com | 67febd9 | 2012-05-22 12:14:50 +0000 | [diff] [blame] | 16 | ], |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 17 | 'includes': [ |
| 18 | 'gmslides.gypi', |
| 19 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 20 | 'sources': [ |
mtklein | a7e930f | 2014-08-06 10:08:42 -0700 | [diff] [blame] | 21 | '../gm/gm.cpp', |
reed@google.com | 30db599 | 2011-08-29 17:41:02 +0000 | [diff] [blame] | 22 | '../gm/gmmain.cpp', |
epoger@google.com | 7bc13a6 | 2012-02-14 14:53:59 +0000 | [diff] [blame] | 23 | '../gm/system_preferences_default.cpp', |
robertphillips@google.com | ad7d481 | 2013-04-12 15:13:35 +0000 | [diff] [blame] | 24 | |
scroggo@google.com | 72c9672 | 2012-06-06 21:07:10 +0000 | [diff] [blame] | 25 | '../src/pipe/utils/SamplePipeControllers.h', |
| 26 | '../src/pipe/utils/SamplePipeControllers.cpp', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 27 | ], |
| 28 | 'dependencies': [ |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 29 | 'etc1.gyp:libetc1', |
scroggo@google.com | 09fd4d2 | 2013-03-20 14:20:18 +0000 | [diff] [blame] | 30 | 'flags.gyp:flags', |
epoger@google.com | ee8a8e3 | 2012-12-18 19:13:49 +0000 | [diff] [blame] | 31 | 'jsoncpp.gyp:jsoncpp', |
epoger@google.com | dcab3a1 | 2011-06-24 19:09:09 +0000 | [diff] [blame] | 32 | 'pdf.gyp:pdf', |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 33 | 'skia_lib.gyp:skia_lib', |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 34 | 'tools.gyp:crash_handler', |
| 35 | 'tools.gyp:gm_expectations', |
mtklein | afb4379 | 2014-08-19 15:55:55 -0700 | [diff] [blame] | 36 | 'tools.gyp:proc_stats', |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 37 | 'tools.gyp:resources', |
caryclark | 5fb6bd4 | 2014-06-23 11:25:00 -0700 | [diff] [blame] | 38 | 'tools.gyp:sk_tool_utils', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 39 | ], |
bungeman@google.com | 0f1541f | 2011-10-10 13:47:06 +0000 | [diff] [blame] | 40 | 'conditions': [ |
commit-bot@chromium.org | 25c1066 | 2014-05-16 17:56:43 +0000 | [diff] [blame] | 41 | ['skia_android_framework', { |
| 42 | 'libraries': [ |
| 43 | '-lskia', |
commit-bot@chromium.org | 25c1066 | 2014-05-16 17:56:43 +0000 | [diff] [blame] | 44 | ], |
| 45 | }], |
commit-bot@chromium.org | 1066f08 | 2014-01-10 19:09:00 +0000 | [diff] [blame] | 46 | ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', { |
| 47 | 'sources': [ |
| 48 | '../src/utils/SkPDFRasterizer.cpp', |
| 49 | ], |
| 50 | }], |
commit-bot@chromium.org | ffd178c | 2013-11-11 15:10:47 +0000 | [diff] [blame] | 51 | ['skia_run_pdfviewer_in_gm', { |
| 52 | 'defines': [ |
| 53 | 'SK_BUILD_NATIVE_PDF_RENDERER', |
| 54 | ], |
commit-bot@chromium.org | 23a9121 | 2013-11-12 17:44:28 +0000 | [diff] [blame] | 55 | 'include_dirs' : [ |
scroggo@google.com | 9092289 | 2013-11-14 19:09:27 +0000 | [diff] [blame] | 56 | '../experimental/PdfViewer/inc', |
commit-bot@chromium.org | 23a9121 | 2013-11-12 17:44:28 +0000 | [diff] [blame] | 57 | ], |
| 58 | 'dependencies': [ |
| 59 | 'pdfviewer_lib.gyp:pdfviewer_lib', |
| 60 | ], |
commit-bot@chromium.org | ffd178c | 2013-11-11 15:10:47 +0000 | [diff] [blame] | 61 | }], |
commit-bot@chromium.org | 83f5692 | 2014-01-09 22:54:26 +0000 | [diff] [blame] | 62 | ['skia_poppler_enabled', { |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 63 | 'dependencies': [ |
commit-bot@chromium.org | 3056bdd | 2014-05-20 15:07:53 +0000 | [diff] [blame] | 64 | 'poppler.gyp:*', |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 65 | ], |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 66 | 'defines': [ |
| 67 | 'SK_BUILD_POPPLER', |
| 68 | ], |
| 69 | }], |
epoger@google.com | 7bc13a6 | 2012-02-14 14:53:59 +0000 | [diff] [blame] | 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"', { |
bungeman@google.com | 0f1541f | 2011-10-10 13:47:06 +0000 | [diff] [blame] | 85 | 'dependencies': [ |
| 86 | 'xps.gyp:xps', |
| 87 | ], |
| 88 | }], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 89 | ['skia_gpu == 1', { |
| 90 | 'include_dirs': [ |
| 91 | '../src/gpu', |
| 92 | ], |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 93 | 'dependencies': [ |
| 94 | 'gputest.gyp:skgputest', |
| 95 | ], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 96 | }], |
| 97 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 98 | }, |
| 99 | ], |
| 100 | } |