2011-06-02 14:38:23 +00:00
|
|
|
# GYP file to build the "gm" (golden master) executable.
|
|
|
|
{
|
|
|
|
'includes': [
|
|
|
|
'apptype_console.gypi',
|
|
|
|
],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'gm',
|
|
|
|
'type': 'executable',
|
2012-05-22 12:14:50 +00:00
|
|
|
'include_dirs' : [
|
|
|
|
'../src/core',
|
2013-01-04 20:29:03 +00:00
|
|
|
'../src/effects',
|
2014-06-18 21:32:48 +00:00
|
|
|
'../src/images',
|
|
|
|
'../src/pipe/utils',
|
|
|
|
'../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': [
|
2014-06-18 21:32:48 +00:00
|
|
|
'etc1.gyp:libetc1',
|
2013-03-20 14:20:18 +00:00
|
|
|
'flags.gyp:flags',
|
2012-12-18 19:13:49 +00:00
|
|
|
'jsoncpp.gyp:jsoncpp',
|
2011-06-24 19:09:09 +00:00
|
|
|
'pdf.gyp:pdf',
|
2014-06-18 21:32:48 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2014-06-20 18:29:20 +00:00
|
|
|
'tools.gyp:crash_handler',
|
|
|
|
'tools.gyp:gm_expectations',
|
|
|
|
'tools.gyp:resources',
|
2014-06-23 18:25:00 +00:00
|
|
|
'tools.gyp:sk_tool_utils',
|
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
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|