Upstream version 5.34.104.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/effects',
34         '../src/pipe/utils/',
35         '../src/utils/',
36       ],
37       'includes': [
38         'gmslides.gypi',
39       ],
40       'sources': [
41         '../gm/gmmain.cpp',
42         '../gm/system_preferences_default.cpp',
43
44         '../src/pipe/utils/SamplePipeControllers.h',
45         '../src/pipe/utils/SamplePipeControllers.cpp',
46       ],
47       'dependencies': [
48         'skia_lib.gyp:skia_lib',
49         'flags.gyp:flags',
50         'gm.gyp:gm_expectations',
51         'jsoncpp.gyp:jsoncpp',
52         'pdf.gyp:pdf',
53       ],
54       'conditions': [
55         ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', {
56           'sources': [
57             '../src/utils/SkPDFRasterizer.cpp',
58           ],
59         }],
60         ['skia_run_pdfviewer_in_gm', {
61           'defines': [
62             'SK_BUILD_NATIVE_PDF_RENDERER',
63           ],
64           'include_dirs' : [
65             '../experimental/PdfViewer/inc',
66           ],
67           'dependencies': [
68             'pdfviewer_lib.gyp:pdfviewer_lib',
69           ],
70         }],
71         ['skia_poppler_enabled', {
72           'dependencies': [
73             'poppler.gyp:libpoppler-cpp-gpl',
74           ],
75           'defines': [
76             'SK_BUILD_POPPLER',
77           ],
78         }],
79         ['skia_os == "mac"', {
80           'sources!': [
81             '../gm/system_preferences_default.cpp',
82           ],
83           'sources': [
84             '../gm/system_preferences_mac.mm',
85           ],
86           'link_settings': {
87             'libraries': [
88               '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
89               '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
90             ],
91           },
92         }],
93         ['skia_os == "win"', {
94           'dependencies': [
95             'xps.gyp:xps',
96           ],
97         }],
98         ['skia_gpu == 1', {
99           'include_dirs': [
100             '../src/gpu',
101           ],
102           'dependencies': [
103             'gputest.gyp:skgputest',
104           ],
105         }],
106       ],
107     },
108   ],
109 }