blob: 3533aa5ce9121ff043dd9be4408bfc22f94a1212 [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 {
scroggo@google.com6843bdb2013-05-08 19:14:23 +00008 'target_name': 'gm_expectations',
9 'type': 'static_library',
10 'include_dirs' : [
scroggo@google.com6843bdb2013-05-08 19:14:23 +000011 '../src/utils/',
12 ],
13 'sources': [
14 '../gm/gm_expectations.h',
15 '../gm/gm_expectations.cpp',
16 ],
17 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000018 'skia_lib.gyp:skia_lib',
scroggo@google.com6843bdb2013-05-08 19:14:23 +000019 'jsoncpp.gyp:jsoncpp',
scroggo@google.com6843bdb2013-05-08 19:14:23 +000020 ],
21 'direct_dependent_settings': {
22 'include_dirs': [
23 '../gm/',
24 ],
25 },
26 },
27 {
epoger@google.comccdbd2c2011-06-02 14:38:23 +000028 'target_name': 'gm',
29 'type': 'executable',
robertphillips@google.com67febd92012-05-22 12:14:50 +000030 'include_dirs' : [
31 '../src/core',
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +000032 '../src/images',
humper@google.com7c7292c2013-01-04 20:29:03 +000033 '../src/effects',
scroggo93b43752012-06-06 21:26:31 +000034 '../src/pipe/utils/',
epoger@google.comee8a8e32012-12-18 19:13:49 +000035 '../src/utils/',
robertphillips@google.com67febd92012-05-22 12:14:50 +000036 ],
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000037 'includes': [
38 'gmslides.gypi',
39 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000040 'sources': [
reed@google.com30db5992011-08-29 17:41:02 +000041 '../gm/gmmain.cpp',
epoger@google.com7bc13a62012-02-14 14:53:59 +000042 '../gm/system_preferences_default.cpp',
robertphillips@google.comad7d4812013-04-12 15:13:35 +000043
scroggo@google.com72c96722012-06-06 21:07:10 +000044 '../src/pipe/utils/SamplePipeControllers.h',
45 '../src/pipe/utils/SamplePipeControllers.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000046 ],
47 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000048 'skia_lib.gyp:skia_lib',
scroggo@google.com09fd4d22013-03-20 14:20:18 +000049 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +000050 'gm.gyp:gm_expectations',
epoger@google.comee8a8e32012-12-18 19:13:49 +000051 'jsoncpp.gyp:jsoncpp',
epoger@google.comdcab3a12011-06-24 19:09:09 +000052 'pdf.gyp:pdf',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000053 ],
bungeman@google.com0f1541f2011-10-10 13:47:06 +000054 'conditions': [
commit-bot@chromium.org1066f082014-01-10 19:09:00 +000055 ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', {
56 'sources': [
57 '../src/utils/SkPDFRasterizer.cpp',
58 ],
59 }],
commit-bot@chromium.orgffd178c2013-11-11 15:10:47 +000060 ['skia_run_pdfviewer_in_gm', {
61 'defines': [
62 'SK_BUILD_NATIVE_PDF_RENDERER',
63 ],
commit-bot@chromium.org23a91212013-11-12 17:44:28 +000064 'include_dirs' : [
scroggo@google.com90922892013-11-14 19:09:27 +000065 '../experimental/PdfViewer/inc',
commit-bot@chromium.org23a91212013-11-12 17:44:28 +000066 ],
67 'dependencies': [
68 'pdfviewer_lib.gyp:pdfviewer_lib',
69 ],
commit-bot@chromium.orgffd178c2013-11-11 15:10:47 +000070 }],
commit-bot@chromium.org83f56922014-01-09 22:54:26 +000071 ['skia_poppler_enabled', {
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000072 'dependencies': [
73 'poppler.gyp:libpoppler-cpp-gpl',
74 ],
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000075 'defines': [
76 'SK_BUILD_POPPLER',
77 ],
78 }],
epoger@google.com7bc13a62012-02-14 14:53:59 +000079 ['skia_os == "mac"', {
80 'sources!': [
81 '../gm/system_preferences_default.cpp',
82 ],
83 'sources': [
84 '../gm/system_preferences_mac.mm',
85 ],
86 'link_settings': {
87 'libraries': [
88 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
89 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
90 ],
91 },
92 }],
93 ['skia_os == "win"', {
bungeman@google.com0f1541f2011-10-10 13:47:06 +000094 'dependencies': [
95 'xps.gyp:xps',
96 ],
97 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000098 ['skia_gpu == 1', {
99 'include_dirs': [
100 '../src/gpu',
101 ],
commit-bot@chromium.org78a10782013-08-21 19:27:48 +0000102 'dependencies': [
103 'gputest.gyp:skgputest',
104 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000105 }],
106 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000107 },
108 ],
109}