blob: 658a0677c3d671ba9a3ffe86fb957e61b5217c66 [file] [log] [blame]
epoger@google.comccdbd2c2011-06-02 14:38:23 +00001# GYP file to build the "gm" (golden master) executable.
epoger@google.comccdbd2c2011-06-02 14:38:23 +00002{
3 'includes': [
4 'apptype_console.gypi',
epoger@google.comccdbd2c2011-06-02 14:38:23 +00005 ],
6 'targets': [
7 {
8 'target_name': 'gm',
9 'type': 'executable',
robertphillips@google.com67febd92012-05-22 12:14:50 +000010 'include_dirs' : [
11 '../src/core',
humper@google.com7c7292c2013-01-04 20:29:03 +000012 '../src/effects',
tfarinabcbc1782014-06-18 14:32:48 -070013 '../src/images',
14 '../src/pipe/utils',
15 '../src/utils',
robertphillips@google.com67febd92012-05-22 12:14:50 +000016 ],
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000017 'includes': [
18 'gmslides.gypi',
19 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000020 'sources': [
mtkleina7e930f2014-08-06 10:08:42 -070021 '../gm/gm.cpp',
reed@google.com30db5992011-08-29 17:41:02 +000022 '../gm/gmmain.cpp',
epoger@google.com7bc13a62012-02-14 14:53:59 +000023 '../gm/system_preferences_default.cpp',
robertphillips@google.comad7d4812013-04-12 15:13:35 +000024
scroggo@google.com72c96722012-06-06 21:07:10 +000025 '../src/pipe/utils/SamplePipeControllers.h',
26 '../src/pipe/utils/SamplePipeControllers.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000027 ],
28 'dependencies': [
tfarinabcbc1782014-06-18 14:32:48 -070029 'etc1.gyp:libetc1',
scroggo@google.com09fd4d22013-03-20 14:20:18 +000030 'flags.gyp:flags',
epoger@google.comee8a8e32012-12-18 19:13:49 +000031 'jsoncpp.gyp:jsoncpp',
epoger@google.comdcab3a12011-06-24 19:09:09 +000032 'pdf.gyp:pdf',
tfarinabcbc1782014-06-18 14:32:48 -070033 'skia_lib.gyp:skia_lib',
mtklein9ac68ee2014-06-20 11:29:20 -070034 'tools.gyp:crash_handler',
35 'tools.gyp:gm_expectations',
mtkleinafb43792014-08-19 15:55:55 -070036 'tools.gyp:proc_stats',
mtklein9ac68ee2014-06-20 11:29:20 -070037 'tools.gyp:resources',
caryclark5fb6bd42014-06-23 11:25:00 -070038 'tools.gyp:sk_tool_utils',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000039 ],
bungeman@google.com0f1541f2011-10-10 13:47:06 +000040 'conditions': [
commit-bot@chromium.org25c10662014-05-16 17:56:43 +000041 ['skia_android_framework', {
42 'libraries': [
43 '-lskia',
commit-bot@chromium.org25c10662014-05-16 17:56:43 +000044 ],
45 }],
commit-bot@chromium.org1066f082014-01-10 19:09:00 +000046 ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', {
47 'sources': [
48 '../src/utils/SkPDFRasterizer.cpp',
49 ],
50 }],
commit-bot@chromium.orgffd178c2013-11-11 15:10:47 +000051 ['skia_run_pdfviewer_in_gm', {
52 'defines': [
53 'SK_BUILD_NATIVE_PDF_RENDERER',
54 ],
commit-bot@chromium.org23a91212013-11-12 17:44:28 +000055 'include_dirs' : [
scroggo@google.com90922892013-11-14 19:09:27 +000056 '../experimental/PdfViewer/inc',
commit-bot@chromium.org23a91212013-11-12 17:44:28 +000057 ],
58 'dependencies': [
59 'pdfviewer_lib.gyp:pdfviewer_lib',
60 ],
commit-bot@chromium.orgffd178c2013-11-11 15:10:47 +000061 }],
commit-bot@chromium.org83f56922014-01-09 22:54:26 +000062 ['skia_poppler_enabled', {
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000063 'dependencies': [
commit-bot@chromium.org3056bdd2014-05-20 15:07:53 +000064 'poppler.gyp:*',
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000065 ],
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000066 'defines': [
67 'SK_BUILD_POPPLER',
68 ],
69 }],
epoger@google.com7bc13a62012-02-14 14:53:59 +000070 ['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.com0f1541f2011-10-10 13:47:06 +000085 'dependencies': [
86 'xps.gyp:xps',
87 ],
88 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000089 ['skia_gpu == 1', {
90 'include_dirs': [
91 '../src/gpu',
92 ],
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000093 'dependencies': [
94 'gputest.gyp:skgputest',
95 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000096 }],
97 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000098 },
99 ],
100}