blob: e412efe6cf3274544172c281252bd7551c7c8953 [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',
humper@google.com7c7292c2013-01-04 20:29:03 +000032 '../src/effects',
scroggo93b43752012-06-06 21:26:31 +000033 '../src/pipe/utils/',
epoger@google.comee8a8e32012-12-18 19:13:49 +000034 '../src/utils/',
fmalita@google.com4df16732013-06-13 21:25:45 +000035 '../src/utils/debugger',
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': [
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000041 '../gm/gm.cpp',
reed@google.com30db5992011-08-29 17:41:02 +000042 '../gm/gmmain.cpp',
epoger@google.com7bc13a62012-02-14 14:53:59 +000043 '../gm/system_preferences_default.cpp',
robertphillips@google.comad7d4812013-04-12 15:13:35 +000044
scroggo@google.com72c96722012-06-06 21:07:10 +000045 '../src/pipe/utils/SamplePipeControllers.h',
46 '../src/pipe/utils/SamplePipeControllers.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +000047
48 '../src/utils/debugger/SkDrawCommand.h',
49 '../src/utils/debugger/SkDrawCommand.cpp',
50 '../src/utils/debugger/SkDebugCanvas.h',
51 '../src/utils/debugger/SkDebugCanvas.cpp',
52 '../src/utils/debugger/SkObjectParser.h',
53 '../src/utils/debugger/SkObjectParser.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000054 ],
55 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000056 'skia_lib.gyp:skia_lib',
scroggo@google.com09fd4d22013-03-20 14:20:18 +000057 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +000058 'gm.gyp:gm_expectations',
epoger@google.comee8a8e32012-12-18 19:13:49 +000059 'jsoncpp.gyp:jsoncpp',
epoger@google.comdcab3a12011-06-24 19:09:09 +000060 'pdf.gyp:pdf',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000061 ],
bungeman@google.com0f1541f2011-10-10 13:47:06 +000062 'conditions': [
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000063 ['skia_os in ["linux", "mac", "win"]', {
64 'dependencies': [
65 'poppler.gyp:libpoppler-cpp-gpl',
66 ],
67 'sources': [
68 '../src/utils/SkPDFRasterizer.cpp',
69 ],
70 'defines': [
71 'SK_BUILD_POPPLER',
72 ],
73 }],
epoger@google.com7bc13a62012-02-14 14:53:59 +000074 ['skia_os == "mac"', {
75 'sources!': [
76 '../gm/system_preferences_default.cpp',
77 ],
78 'sources': [
79 '../gm/system_preferences_mac.mm',
80 ],
81 'link_settings': {
82 'libraries': [
83 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
84 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
85 ],
86 },
87 }],
88 ['skia_os == "win"', {
bungeman@google.com0f1541f2011-10-10 13:47:06 +000089 'dependencies': [
90 'xps.gyp:xps',
91 ],
92 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000093 ['skia_gpu == 1', {
94 'include_dirs': [
95 '../src/gpu',
96 ],
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000097 'dependencies': [
98 'gputest.gyp:skgputest',
99 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000100 }],
101 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000102 },
103 ],
104}
105
106# Local Variables:
107# tab-width:2
108# indent-tabs-mode:nil
109# End:
110# vim: set expandtab tabstop=2 shiftwidth=2: