2011-06-02 14:38:23 +00:00
|
|
|
# GYP file to build the "gm" (golden master) executable.
|
|
|
|
{
|
|
|
|
'includes': [
|
|
|
|
'apptype_console.gypi',
|
|
|
|
],
|
|
|
|
'targets': [
|
2013-05-08 19:14:23 +00:00
|
|
|
{
|
|
|
|
'target_name': 'gm_expectations',
|
|
|
|
'type': 'static_library',
|
|
|
|
'include_dirs' : [
|
|
|
|
'../src/utils/',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../gm/gm_expectations.h',
|
|
|
|
'../gm/gm_expectations.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2013-05-08 19:14:23 +00:00
|
|
|
'jsoncpp.gyp:jsoncpp',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../gm/',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2011-06-02 14:38:23 +00:00
|
|
|
{
|
|
|
|
'target_name': 'gm',
|
|
|
|
'type': 'executable',
|
2012-05-22 12:14:50 +00:00
|
|
|
'include_dirs' : [
|
|
|
|
'../src/core',
|
2013-12-05 18:31:42 +00:00
|
|
|
'../src/images',
|
2013-01-04 20:29:03 +00:00
|
|
|
'../src/effects',
|
2012-06-06 21:26:31 +00:00
|
|
|
'../src/pipe/utils/',
|
2012-12-18 19:13:49 +00:00
|
|
|
'../src/utils/',
|
2012-05-22 12:14:50 +00:00
|
|
|
],
|
2011-10-31 14:18:20 +00:00
|
|
|
'includes': [
|
|
|
|
'gmslides.gypi',
|
|
|
|
],
|
2011-06-02 14:38:23 +00:00
|
|
|
'sources': [
|
2011-08-29 17:41:02 +00:00
|
|
|
'../gm/gmmain.cpp',
|
2012-02-14 14:53:59 +00:00
|
|
|
'../gm/system_preferences_default.cpp',
|
2013-04-12 15:13:35 +00:00
|
|
|
|
2012-06-06 21:07:10 +00:00
|
|
|
'../src/pipe/utils/SamplePipeControllers.h',
|
|
|
|
'../src/pipe/utils/SamplePipeControllers.cpp',
|
2011-06-02 14:38:23 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2013-03-20 14:20:18 +00:00
|
|
|
'flags.gyp:flags',
|
2013-05-08 19:14:23 +00:00
|
|
|
'gm.gyp:gm_expectations',
|
2012-12-18 19:13:49 +00:00
|
|
|
'jsoncpp.gyp:jsoncpp',
|
2011-06-24 19:09:09 +00:00
|
|
|
'pdf.gyp:pdf',
|
2011-06-02 14:38:23 +00:00
|
|
|
],
|
2011-10-10 13:47:06 +00:00
|
|
|
'conditions': [
|
2014-05-16 17:56:43 +00:00
|
|
|
['skia_android_framework', {
|
|
|
|
'libraries': [
|
|
|
|
'-lskia',
|
|
|
|
],
|
|
|
|
}],
|
2014-01-10 19:09:00 +00:00
|
|
|
['skia_run_pdfviewer_in_gm or skia_poppler_enabled', {
|
|
|
|
'sources': [
|
|
|
|
'../src/utils/SkPDFRasterizer.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2013-11-11 15:10:47 +00:00
|
|
|
['skia_run_pdfviewer_in_gm', {
|
|
|
|
'defines': [
|
|
|
|
'SK_BUILD_NATIVE_PDF_RENDERER',
|
|
|
|
],
|
2013-11-12 17:44:28 +00:00
|
|
|
'include_dirs' : [
|
2013-11-14 19:09:27 +00:00
|
|
|
'../experimental/PdfViewer/inc',
|
2013-11-12 17:44:28 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'pdfviewer_lib.gyp:pdfviewer_lib',
|
|
|
|
],
|
2013-11-11 15:10:47 +00:00
|
|
|
}],
|
2014-01-09 22:54:26 +00:00
|
|
|
['skia_poppler_enabled', {
|
2013-08-20 18:57:01 +00:00
|
|
|
'dependencies': [
|
2014-05-20 15:07:53 +00:00
|
|
|
'poppler.gyp:*',
|
2013-08-20 18:57:01 +00:00
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'SK_BUILD_POPPLER',
|
|
|
|
],
|
|
|
|
}],
|
2012-02-14 14:53:59 +00:00
|
|
|
['skia_os == "mac"', {
|
|
|
|
'sources!': [
|
|
|
|
'../gm/system_preferences_default.cpp',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../gm/system_preferences_mac.mm',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
['skia_os == "win"', {
|
2011-10-10 13:47:06 +00:00
|
|
|
'dependencies': [
|
|
|
|
'xps.gyp:xps',
|
|
|
|
],
|
|
|
|
}],
|
2012-08-02 14:03:32 +00:00
|
|
|
['skia_gpu == 1', {
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/gpu',
|
|
|
|
],
|
2013-08-21 19:27:48 +00:00
|
|
|
'dependencies': [
|
|
|
|
'gputest.gyp:skgputest',
|
|
|
|
],
|
2012-08-02 14:03:32 +00:00
|
|
|
}],
|
|
|
|
],
|
2011-06-02 14:38:23 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|