blob: 971fce5d355e5e75e95053de09d97cd63abc060b [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',
33 '../src/lazy',
humper@google.com7c7292c2013-01-04 20:29:03 +000034 '../src/effects',
scroggo93b43752012-06-06 21:26:31 +000035 '../src/pipe/utils/',
epoger@google.comee8a8e32012-12-18 19:13:49 +000036 '../src/utils/',
fmalita@google.com4df16732013-06-13 21:25:45 +000037 '../src/utils/debugger',
robertphillips@google.com67febd92012-05-22 12:14:50 +000038 ],
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000039 'includes': [
40 'gmslides.gypi',
41 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000042 'sources': [
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000043 '../gm/gm.cpp',
reed@google.com30db5992011-08-29 17:41:02 +000044 '../gm/gmmain.cpp',
epoger@google.com7bc13a62012-02-14 14:53:59 +000045 '../gm/system_preferences_default.cpp',
robertphillips@google.comad7d4812013-04-12 15:13:35 +000046
scroggo@google.com72c96722012-06-06 21:07:10 +000047 '../src/pipe/utils/SamplePipeControllers.h',
48 '../src/pipe/utils/SamplePipeControllers.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +000049
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.comccdbd2c2011-06-02 14:38:23 +000056 ],
57 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000058 'skia_lib.gyp:skia_lib',
scroggo@google.com09fd4d22013-03-20 14:20:18 +000059 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +000060 'gm.gyp:gm_expectations',
epoger@google.comee8a8e32012-12-18 19:13:49 +000061 'jsoncpp.gyp:jsoncpp',
epoger@google.comdcab3a12011-06-24 19:09:09 +000062 'pdf.gyp:pdf',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000063 ],
bungeman@google.com0f1541f2011-10-10 13:47:06 +000064 'conditions': [
commit-bot@chromium.org1066f082014-01-10 19:09:00 +000065 ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', {
66 'sources': [
67 '../src/utils/SkPDFRasterizer.cpp',
68 ],
69 }],
commit-bot@chromium.orgffd178c2013-11-11 15:10:47 +000070 ['skia_run_pdfviewer_in_gm', {
71 'defines': [
72 'SK_BUILD_NATIVE_PDF_RENDERER',
73 ],
commit-bot@chromium.org23a91212013-11-12 17:44:28 +000074 'include_dirs' : [
scroggo@google.com90922892013-11-14 19:09:27 +000075 '../experimental/PdfViewer/inc',
commit-bot@chromium.org23a91212013-11-12 17:44:28 +000076 ],
77 'dependencies': [
78 'pdfviewer_lib.gyp:pdfviewer_lib',
79 ],
commit-bot@chromium.orgffd178c2013-11-11 15:10:47 +000080 }],
commit-bot@chromium.org83f56922014-01-09 22:54:26 +000081 ['skia_poppler_enabled', {
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000082 'dependencies': [
83 'poppler.gyp:libpoppler-cpp-gpl',
84 ],
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000085 'defines': [
86 'SK_BUILD_POPPLER',
87 ],
88 }],
epoger@google.com7bc13a62012-02-14 14:53:59 +000089 ['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.com0f1541f2011-10-10 13:47:06 +0000104 'dependencies': [
105 'xps.gyp:xps',
106 ],
107 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000108 ['skia_gpu == 1', {
109 'include_dirs': [
110 '../src/gpu',
111 ],
commit-bot@chromium.org78a10782013-08-21 19:27:48 +0000112 'dependencies': [
113 'gputest.gyp:skgputest',
114 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000115 }],
116 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000117 },
118 ],
119}