blob: 3fdfb8e647da8ae451d305c996f6a433b0f0ea9c [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' : [
11 '../include/core/',
12 '../src/utils/',
13 ],
14 'sources': [
15 '../gm/gm_expectations.h',
16 '../gm/gm_expectations.cpp',
17 ],
18 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000019 'skia_lib.gyp:skia_lib',
scroggo@google.com6843bdb2013-05-08 19:14:23 +000020 'jsoncpp.gyp:jsoncpp',
scroggo@google.com6843bdb2013-05-08 19:14:23 +000021 ],
22 'direct_dependent_settings': {
23 'include_dirs': [
24 '../gm/',
25 ],
26 },
27 },
28 {
epoger@google.comccdbd2c2011-06-02 14:38:23 +000029 'target_name': 'gm',
30 'type': 'executable',
robertphillips@google.com67febd92012-05-22 12:14:50 +000031 'include_dirs' : [
32 '../src/core',
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/',
fmalita@google.com4df16732013-06-13 21:25:45 +000036 '../src/utils/debugger',
robertphillips@google.com67febd92012-05-22 12:14:50 +000037 ],
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000038 'includes': [
39 'gmslides.gypi',
40 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000041 'sources': [
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000042 '../gm/gm.cpp',
reed@google.com30db5992011-08-29 17:41:02 +000043 '../gm/gmmain.cpp',
epoger@google.com7bc13a62012-02-14 14:53:59 +000044 '../gm/system_preferences_default.cpp',
robertphillips@google.comad7d4812013-04-12 15:13:35 +000045
scroggo@google.com72c96722012-06-06 21:07:10 +000046 '../src/pipe/utils/SamplePipeControllers.h',
47 '../src/pipe/utils/SamplePipeControllers.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +000048
49 '../src/utils/debugger/SkDrawCommand.h',
50 '../src/utils/debugger/SkDrawCommand.cpp',
51 '../src/utils/debugger/SkDebugCanvas.h',
52 '../src/utils/debugger/SkDebugCanvas.cpp',
53 '../src/utils/debugger/SkObjectParser.h',
54 '../src/utils/debugger/SkObjectParser.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000055 ],
56 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000057 'skia_lib.gyp:skia_lib',
scroggo@google.com09fd4d22013-03-20 14:20:18 +000058 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +000059 'gm.gyp:gm_expectations',
epoger@google.comee8a8e32012-12-18 19:13:49 +000060 'jsoncpp.gyp:jsoncpp',
epoger@google.comdcab3a12011-06-24 19:09:09 +000061 'pdf.gyp:pdf',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000062 ],
bungeman@google.com0f1541f2011-10-10 13:47:06 +000063 'conditions': [
epoger@google.com7bc13a62012-02-14 14:53:59 +000064 ['skia_os == "mac"', {
65 'sources!': [
66 '../gm/system_preferences_default.cpp',
67 ],
68 'sources': [
69 '../gm/system_preferences_mac.mm',
70 ],
71 'link_settings': {
72 'libraries': [
73 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
74 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
75 ],
76 },
77 }],
78 ['skia_os == "win"', {
bungeman@google.com0f1541f2011-10-10 13:47:06 +000079 'dependencies': [
80 'xps.gyp:xps',
81 ],
82 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000083 ['skia_gpu == 1', {
84 'include_dirs': [
85 '../src/gpu',
86 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000087 }],
88 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000089 },
90 ],
91}
92
93# Local Variables:
94# tab-width:2
95# indent-tabs-mode:nil
96# End:
97# vim: set expandtab tabstop=2 shiftwidth=2: