blob: fd56e7eebef52890c848bc266fe7108de816662c [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': [
reed@google.com30db5992011-08-29 17:41:02 +000021 '../gm/gmmain.cpp',
epoger@google.com7bc13a62012-02-14 14:53:59 +000022 '../gm/system_preferences_default.cpp',
robertphillips@google.comad7d4812013-04-12 15:13:35 +000023
scroggo@google.com72c96722012-06-06 21:07:10 +000024 '../src/pipe/utils/SamplePipeControllers.h',
25 '../src/pipe/utils/SamplePipeControllers.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000026 ],
27 'dependencies': [
tfarinabcbc1782014-06-18 14:32:48 -070028 'etc1.gyp:libetc1',
scroggo@google.com09fd4d22013-03-20 14:20:18 +000029 'flags.gyp:flags',
epoger@google.comee8a8e32012-12-18 19:13:49 +000030 'jsoncpp.gyp:jsoncpp',
epoger@google.comdcab3a12011-06-24 19:09:09 +000031 'pdf.gyp:pdf',
tfarinabcbc1782014-06-18 14:32:48 -070032 'skia_lib.gyp:skia_lib',
mtklein9ac68ee2014-06-20 11:29:20 -070033 'tools.gyp:crash_handler',
34 'tools.gyp:gm_expectations',
35 'tools.gyp:resources',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000036 ],
bungeman@google.com0f1541f2011-10-10 13:47:06 +000037 'conditions': [
commit-bot@chromium.org25c10662014-05-16 17:56:43 +000038 ['skia_android_framework', {
39 'libraries': [
40 '-lskia',
commit-bot@chromium.org25c10662014-05-16 17:56:43 +000041 ],
42 }],
commit-bot@chromium.org1066f082014-01-10 19:09:00 +000043 ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', {
44 'sources': [
45 '../src/utils/SkPDFRasterizer.cpp',
46 ],
47 }],
commit-bot@chromium.orgffd178c2013-11-11 15:10:47 +000048 ['skia_run_pdfviewer_in_gm', {
49 'defines': [
50 'SK_BUILD_NATIVE_PDF_RENDERER',
51 ],
commit-bot@chromium.org23a91212013-11-12 17:44:28 +000052 'include_dirs' : [
scroggo@google.com90922892013-11-14 19:09:27 +000053 '../experimental/PdfViewer/inc',
commit-bot@chromium.org23a91212013-11-12 17:44:28 +000054 ],
55 'dependencies': [
56 'pdfviewer_lib.gyp:pdfviewer_lib',
57 ],
commit-bot@chromium.orgffd178c2013-11-11 15:10:47 +000058 }],
commit-bot@chromium.org83f56922014-01-09 22:54:26 +000059 ['skia_poppler_enabled', {
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000060 'dependencies': [
commit-bot@chromium.org3056bdd2014-05-20 15:07:53 +000061 'poppler.gyp:*',
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000062 ],
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000063 'defines': [
64 'SK_BUILD_POPPLER',
65 ],
66 }],
epoger@google.com7bc13a62012-02-14 14:53:59 +000067 ['skia_os == "mac"', {
68 'sources!': [
69 '../gm/system_preferences_default.cpp',
70 ],
71 'sources': [
72 '../gm/system_preferences_mac.mm',
73 ],
74 'link_settings': {
75 'libraries': [
76 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
77 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
78 ],
79 },
80 }],
81 ['skia_os == "win"', {
bungeman@google.com0f1541f2011-10-10 13:47:06 +000082 'dependencies': [
83 'xps.gyp:xps',
84 ],
85 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000086 ['skia_gpu == 1', {
87 'include_dirs': [
88 '../src/gpu',
89 ],
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000090 'dependencies': [
91 'gputest.gyp:skgputest',
92 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000093 }],
94 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000095 },
96 ],
97}