Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / gyp / gm.gyp
1 # GYP file to build the "gm" (golden master) executable.
2 {
3   'includes': [
4     'apptype_console.gypi',
5   ],
6   'targets': [
7     {
8       'target_name': 'gm_expectations',
9       'type': 'static_library',
10       'include_dirs' : [
11         '../src/utils/',
12       ],
13       'sources': [
14         '../gm/gm_expectations.h',
15         '../gm/gm_expectations.cpp',
16       ],
17       'dependencies': [
18         'skia_lib.gyp:skia_lib',
19         'jsoncpp.gyp:jsoncpp',
20       ],
21       'direct_dependent_settings': {
22         'include_dirs': [
23           '../gm/',
24         ],
25       },
26     },
27     {
28       'target_name': 'gm',
29       'type': 'executable',
30       'include_dirs' : [
31         '../src/core',
32         '../src/images',
33         '../src/lazy',
34         '../src/effects',
35         '../src/pipe/utils/',
36         '../src/utils/',
37         '../src/utils/debugger',
38       ],
39       'includes': [
40         'gmslides.gypi',
41       ],
42       'sources': [
43         '../gm/gm.cpp',
44         '../gm/gmmain.cpp',
45         '../gm/system_preferences_default.cpp',
46
47         '../src/pipe/utils/SamplePipeControllers.h',
48         '../src/pipe/utils/SamplePipeControllers.cpp',
49
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',
56       ],
57       'dependencies': [
58         'skia_lib.gyp:skia_lib',
59         'flags.gyp:flags',
60         'gm.gyp:gm_expectations',
61         'jsoncpp.gyp:jsoncpp',
62         'pdf.gyp:pdf',
63       ],
64       'conditions': [
65         ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', {
66           'sources': [
67             '../src/utils/SkPDFRasterizer.cpp',
68           ],
69         }],
70         ['skia_run_pdfviewer_in_gm', {
71           'defines': [
72             'SK_BUILD_NATIVE_PDF_RENDERER',
73           ],
74           'include_dirs' : [
75             '../experimental/PdfViewer/inc',
76           ],
77           'dependencies': [
78             'pdfviewer_lib.gyp:pdfviewer_lib',
79           ],
80         }],
81         ['skia_poppler_enabled', {
82           'dependencies': [
83             'poppler.gyp:libpoppler-cpp-gpl',
84           ],
85           'defines': [
86             'SK_BUILD_POPPLER',
87           ],
88         }],
89         ['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"', {
104           'dependencies': [
105             'xps.gyp:xps',
106           ],
107         }],
108         ['skia_gpu == 1', {
109           'include_dirs': [
110             '../src/gpu',
111           ],
112           'dependencies': [
113             'gputest.gyp:skgputest',
114           ],
115         }],
116       ],
117     },
118   ],
119 }