| # Copyright 2016 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/jumbo.gni") |
| |
| # Reset sources_assignment_filter for the BUILD.gn file to prevent |
| # regression during the migration of Chromium away from the feature. |
| # See build/no_sources_assignment_filter.md for more information. |
| # TODO(crbug.com/1018739): remove this when migration is done. |
| set_sources_assignment_filter([]) |
| |
| jumbo_component("range") { |
| sources = [ |
| "gfx_range_export.h", |
| "range.cc", |
| "range.h", |
| "range_f.cc", |
| "range_f.h", |
| ] |
| |
| if (is_win) { |
| sources += [ "range_win.cc" ] |
| } |
| |
| if (is_ios || is_mac) { |
| sources += [ "range_mac.mm" ] |
| } |
| |
| configs += [ |
| # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| "//build/config/compiler:no_size_t_to_int_warning", |
| ] |
| |
| defines = [ "GFX_RANGE_IMPLEMENTATION" ] |
| |
| deps = [ |
| "//base", |
| "//ui/gfx:gfx_export", |
| ] |
| } |