blob: fa413c37dc442811b3de3e8c7a6ced9764d33e5f [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': [
19 'skia_base_libs.gyp:skia_base_libs',
20 'core.gyp:core',
21 'images.gyp:images',
22 'jsoncpp.gyp:jsoncpp',
23 'utils.gyp:utils',
24 ],
25 'direct_dependent_settings': {
26 'include_dirs': [
27 '../gm/',
28 ],
29 },
30 },
31 {
epoger@google.comccdbd2c2011-06-02 14:38:23 +000032 'target_name': 'gm',
33 'type': 'executable',
robertphillips@google.com67febd92012-05-22 12:14:50 +000034 'include_dirs' : [
robertphillips@google.comad7d4812013-04-12 15:13:35 +000035 '../debugger',
robertphillips@google.com67febd92012-05-22 12:14:50 +000036 '../src/core',
humper@google.com7c7292c2013-01-04 20:29:03 +000037 '../src/effects',
scroggo93b43752012-06-06 21:26:31 +000038 '../src/pipe/utils/',
epoger@google.comee8a8e32012-12-18 19:13:49 +000039 '../src/utils/',
robertphillips@google.com67febd92012-05-22 12:14:50 +000040 ],
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000041 'includes': [
42 'gmslides.gypi',
43 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000044 'sources': [
robertphillips@google.comad7d4812013-04-12 15:13:35 +000045 '../debugger/SkDrawCommand.h',
46 '../debugger/SkDrawCommand.cpp',
47 '../debugger/SkDebugCanvas.h',
48 '../debugger/SkDebugCanvas.cpp',
49 '../debugger/SkObjectParser.h',
50 '../debugger/SkObjectParser.cpp',
51
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000052 '../gm/gm.cpp',
reed@google.com30db5992011-08-29 17:41:02 +000053 '../gm/gmmain.cpp',
epoger@google.com7bc13a62012-02-14 14:53:59 +000054 '../gm/system_preferences_default.cpp',
robertphillips@google.comad7d4812013-04-12 15:13:35 +000055
scroggo@google.com72c96722012-06-06 21:07:10 +000056 '../src/pipe/utils/SamplePipeControllers.h',
57 '../src/pipe/utils/SamplePipeControllers.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000058 ],
59 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000060 'skia_base_libs.gyp:skia_base_libs',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000061 'effects.gyp:effects',
scroggo@google.com09fd4d22013-03-20 14:20:18 +000062 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +000063 'gm.gyp:gm_expectations',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000064 'images.gyp:images',
epoger@google.comee8a8e32012-12-18 19:13:49 +000065 'jsoncpp.gyp:jsoncpp',
epoger@google.comdcab3a12011-06-24 19:09:09 +000066 'pdf.gyp:pdf',
epoger@google.comee8a8e32012-12-18 19:13:49 +000067 'utils.gyp:utils',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000068 ],
bungeman@google.com0f1541f2011-10-10 13:47:06 +000069 'conditions': [
epoger@google.com7bc13a62012-02-14 14:53:59 +000070 ['skia_os == "mac"', {
71 'sources!': [
72 '../gm/system_preferences_default.cpp',
73 ],
74 'sources': [
75 '../gm/system_preferences_mac.mm',
76 ],
77 'link_settings': {
78 'libraries': [
79 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
80 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
81 ],
82 },
83 }],
84 ['skia_os == "win"', {
bungeman@google.com0f1541f2011-10-10 13:47:06 +000085 'dependencies': [
86 'xps.gyp:xps',
87 ],
88 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000089 ['skia_gpu == 1', {
90 'include_dirs': [
91 '../src/gpu',
92 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000093 }],
94 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000095 },
96 ],
97}
98
99# Local Variables:
100# tab-width:2
101# indent-tabs-mode:nil
102# End:
103# vim: set expandtab tabstop=2 shiftwidth=2: