Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
| 8 | 8 |
| 9 if (is_android) { | 9 if (is_android) { |
| 10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 "android/gfx_jni_registrar.cc", | 46 "android/gfx_jni_registrar.cc", |
| 47 "android/gfx_jni_registrar.h", | 47 "android/gfx_jni_registrar.h", |
| 48 "android/java_bitmap.cc", | 48 "android/java_bitmap.cc", |
| 49 "android/java_bitmap.h", | 49 "android/java_bitmap.h", |
| 50 "android/view_configuration.cc", | 50 "android/view_configuration.cc", |
| 51 "android/view_configuration.h", | 51 "android/view_configuration.h", |
| 52 "break_list.h", | 52 "break_list.h", |
| 53 "color_analysis.cc", | 53 "color_analysis.cc", |
| 54 "color_analysis.h", | 54 "color_analysis.h", |
| 55 "color_palette.h", | 55 "color_palette.h", |
| 56 "color_space.cc", | |
| 57 "color_space_win.cc", | 56 "color_space_win.cc", |
| 58 "color_space_win.h", | 57 "color_space_win.h", |
| 59 "color_transform.cc", | 58 "color_transform.cc", |
| 60 "color_transform.h", | 59 "color_transform.h", |
| 61 "color_utils.cc", | 60 "color_utils.cc", |
| 62 "color_utils.h", | 61 "color_utils.h", |
| 63 "decorated_text.cc", | 62 "decorated_text.cc", |
| 64 "decorated_text.h", | 63 "decorated_text.h", |
| 65 "favicon_size.cc", | 64 "favicon_size.cc", |
| 66 "favicon_size.h", | 65 "favicon_size.h", |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 81 "font_render_params_android.cc", | 80 "font_render_params_android.cc", |
| 82 "font_render_params_linux.cc", | 81 "font_render_params_linux.cc", |
| 83 "font_render_params_mac.cc", | 82 "font_render_params_mac.cc", |
| 84 "font_render_params_win.cc", | 83 "font_render_params_win.cc", |
| 85 "gdi_util.cc", | 84 "gdi_util.cc", |
| 86 "gdi_util.h", | 85 "gdi_util.h", |
| 87 "gfx_paths.cc", | 86 "gfx_paths.cc", |
| 88 "gfx_paths.h", | 87 "gfx_paths.h", |
| 89 "half_float.cc", | 88 "half_float.cc", |
| 90 "half_float.h", | 89 "half_float.h", |
| 91 "icc_profile.cc", | |
| 92 "icc_profile.h", | |
| 93 "icc_profile_mac.mm", | 90 "icc_profile_mac.mm", |
| 94 "icc_profile_win.cc", | 91 "icc_profile_win.cc", |
| 95 "icc_profile_x11.cc", | 92 "icc_profile_x11.cc", |
| 96 "icon_util.cc", | 93 "icon_util.cc", |
| 97 "icon_util.h", | 94 "icon_util.h", |
| 98 "image/image.cc", | 95 "image/image.cc", |
| 99 "image/image.h", | 96 "image/image.h", |
| 100 "image/image_family.cc", | 97 "image/image_family.cc", |
| 101 "image/image_family.h", | 98 "image/image_family.h", |
| 102 "image/image_ios.mm", | 99 "image/image_ios.mm", |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 "scrollbar_size.cc", | 155 "scrollbar_size.cc", |
| 159 "scrollbar_size.h", | 156 "scrollbar_size.h", |
| 160 "selection_model.cc", | 157 "selection_model.cc", |
| 161 "selection_model.h", | 158 "selection_model.h", |
| 162 "sequential_id_generator.cc", | 159 "sequential_id_generator.cc", |
| 163 "sequential_id_generator.h", | 160 "sequential_id_generator.h", |
| 164 "shadow_value.cc", | 161 "shadow_value.cc", |
| 165 "shadow_value.h", | 162 "shadow_value.h", |
| 166 "skbitmap_operations.cc", | 163 "skbitmap_operations.cc", |
| 167 "skbitmap_operations.h", | 164 "skbitmap_operations.h", |
| 168 "skia_color_space_util.cc", | |
| 169 "skia_color_space_util.h", | |
| 170 "switches.cc", | 165 "switches.cc", |
| 171 "switches.h", | 166 "switches.h", |
| 172 "sys_color_change_listener.cc", | 167 "sys_color_change_listener.cc", |
| 173 "sys_color_change_listener.h", | 168 "sys_color_change_listener.h", |
| 174 "text_constants.h", | 169 "text_constants.h", |
| 175 "text_elider.cc", | 170 "text_elider.cc", |
| 176 "text_elider.h", | 171 "text_elider.h", |
| 177 "text_utils.cc", | 172 "text_utils.cc", |
| 178 "text_utils.h", | 173 "text_utils.h", |
| 179 "text_utils_android.cc", | 174 "text_utils_android.cc", |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 391 "icc_profile_x11.cc", | 386 "icc_profile_x11.cc", |
| 392 "path_x11.cc", | 387 "path_x11.cc", |
| 393 ] | 388 ] |
| 394 } | 389 } |
| 395 | 390 |
| 396 if (use_cairo) { | 391 if (use_cairo) { |
| 397 configs += [ "//build/config/linux/pangocairo" ] | 392 configs += [ "//build/config/linux/pangocairo" ] |
| 398 } | 393 } |
| 399 } | 394 } |
| 400 | 395 |
| 401 # Depend on this to use color_space.h without pulling in all of gfx. | 396 component("color_space") { |
| 402 source_set("color_space") { | |
| 403 sources = [ | 397 sources = [ |
| 398 "color_space.cc", | |
| 404 "color_space.h", | 399 "color_space.h", |
| 400 "icc_profile.cc", | |
| 401 "icc_profile.h", | |
| 402 "skia_color_space_util.cc", | |
| 403 "skia_color_space_util.h", | |
| 405 ] | 404 ] |
| 406 | |
| 407 defines = [ "GFX_IMPLEMENTATION" ] | |
| 408 | |
| 409 public_deps = [ | 405 public_deps = [ |
| 410 ":gfx_export", | 406 ":gfx_export", |
| 411 "//base", | 407 "//base", |
| 412 "//skia", | 408 "//skia", |
| 413 ] | 409 ] |
| 410 deps = [ | |
| 411 "//base", | |
| 412 "//skia", | |
| 413 ] | |
| 414 defines = [ "GFX_IMPLEMENTATION" ] | |
|
Nico
2017/05/19 21:01:50
This does not lgtm. You now have two components bo
| |
| 414 } | 415 } |
| 415 | 416 |
| 416 # Depend on this to use half_float.h without pulling in all of gfx. | 417 # Depend on this to use half_float.h without pulling in all of gfx. |
| 417 source_set("half_float") { | 418 source_set("half_float") { |
| 418 sources = [ | 419 sources = [ |
| 419 "half_float.h", | 420 "half_float.h", |
| 420 ] | 421 ] |
| 421 | 422 |
| 422 defines = [ "GFX_IMPLEMENTATION" ] | 423 defines = [ "GFX_IMPLEMENTATION" ] |
| 423 | 424 |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 760 | 761 |
| 761 fuzzer_test("color_transform_fuzztest") { | 762 fuzzer_test("color_transform_fuzztest") { |
| 762 sources = [ | 763 sources = [ |
| 763 "color_transform_fuzzer.cc", | 764 "color_transform_fuzzer.cc", |
| 764 ] | 765 ] |
| 765 deps = [ | 766 deps = [ |
| 766 ":gfx", | 767 ":gfx", |
| 767 ] | 768 ] |
| 768 libfuzzer_options = [ "max_len=1024" ] | 769 libfuzzer_options = [ "max_len=1024" ] |
| 769 } | 770 } |
| OLD | NEW |