From ddb347b63c72141378fc8bd25fa40d6dac9fe916 Mon Sep 17 00:00:00 2001 From: yujieqin Date: Thu, 25 Feb 2016 05:42:30 -0800 Subject: [PATCH] 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 --- gyp/codec.gyp | 5 +++++ gyp/common_variables.gypi | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gyp/codec.gyp b/gyp/codec.gyp index a445ff0..e96aaed 100644 --- a/gyp/codec.gyp +++ b/gyp/codec.gyp @@ -135,6 +135,11 @@ 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], }, }], + ['skia_os == "chromeos"', { + 'link_settings': { + 'libraries': ['-lrt', ], + }, + }], ], }, ], diff --git a/gyp/common_variables.gypi b/gyp/common_variables.gypi index 6f4ac87..0688f62 100644 --- a/gyp/common_variables.gypi +++ b/gyp/common_variables.gypi @@ -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, -- 2.7.4