Add -lrt flag for ChromeOS to enable the usage of clock_gettime. Enable RawCodec for ChromeOS

BUG=b/26813410
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1733223002

Review URL: https://codereview.chromium.org/1733223002
This commit is contained in:
yujieqin 2016-02-25 05:42:30 -08:00 committed by Commit bot
parent 45c2c8166b
commit ddb347b63c
2 changed files with 6 additions and 2 deletions

View File

@ -135,6 +135,11 @@
'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'],
},
}],
['skia_os == "chromeos"', {
'link_settings': {
'libraries': ['-lrt', ],
},
}],
],
},
],

View File

@ -61,8 +61,7 @@
}],
# RAW codec needs exceptions. Due to that, it is a separate target. Its usage can be
# controlled by skia_codec_decodes_raw.
['skia_os == "chromeos" or skia_os == "win"', {
# FIXME: fix the support for ChromeOS [DNG SDK issue with clock_gettime()].
['skia_os == "win"', {
'skia_codec_decodes_raw%' : 0,
}, {
'skia_codec_decodes_raw%' : 1,