| 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 | 6 |
| 7 config("mesa_headers_config") { | 7 config("mesa_headers_config") { |
| 8 include_dirs = [ "src/include" ] | 8 include_dirs = [ "src/include" ] |
| 9 if (!use_x11) { | 9 if (!use_x11) { |
| 10 defines = [ "MESA_EGL_NO_X11_HEADERS" ] | 10 defines = [ "MESA_EGL_NO_X11_HEADERS" ] |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 include_dirs = [ "src/src/mesa/drivers" ] | 706 include_dirs = [ "src/src/mesa/drivers" ] |
| 707 | 707 |
| 708 if (is_clang) { | 708 if (is_clang) { |
| 709 # Mesa triggers some of these Clang warnings. | 709 # Mesa triggers some of these Clang warnings. |
| 710 configs -= [ "//build/config/clang:extra_warnings" ] | 710 configs -= [ "//build/config/clang:extra_warnings" ] |
| 711 } | 711 } |
| 712 | 712 |
| 713 if (is_win) { | 713 if (is_win) { |
| 714 ldflags = [ "/DEF:" + rebase_path("src/src/mesa/drivers/osmesa/osmesa.def", | 714 ldflags = [ "/DEF:" + rebase_path("src/src/mesa/drivers/osmesa/osmesa.def", |
| 715 root_build_dir) ] | 715 root_build_dir) ] |
| 716 |
| 717 # TODO(brucedawson) : remove when crbug.com/482671 is resolved by |
| 718 # Microsoft. |
| 719 configs -= [ "//build/config/win:default_incremental_linking" ] |
| 720 configs += [ "//build/config/win:no_incremental_linking" ] |
| 716 } | 721 } |
| 717 | 722 |
| 718 deps = [ | 723 deps = [ |
| 719 ":mesa", | 724 ":mesa", |
| 720 ":mesa_headers", | 725 ":mesa_headers", |
| 721 ":mesa_libglslcommon", | 726 ":mesa_libglslcommon", |
| 722 "//base", # Required for the allocator implementation. | 727 "//base", # Required for the allocator implementation. |
| 723 "//build/config/sanitizers:deps", | 728 "//build/config/sanitizers:deps", |
| 724 ] | 729 ] |
| 725 | 730 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 747 deps = [ | 752 deps = [ |
| 748 "//third_party/wayland:wayland_util", | 753 "//third_party/wayland:wayland_util", |
| 749 ] | 754 ] |
| 750 | 755 |
| 751 configs -= [ "//build/config/compiler:chromium_code" ] | 756 configs -= [ "//build/config/compiler:chromium_code" ] |
| 752 configs += [ "//build/config/compiler:no_chromium_code" ] | 757 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 753 | 758 |
| 754 public_configs = [ ":wayland_drm_protocol_config" ] | 759 public_configs = [ ":wayland_drm_protocol_config" ] |
| 755 } | 760 } |
| 756 } | 761 } |
| OLD | NEW |