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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } | 716 } |
717 | 717 |
718 deps = [ | 718 deps = [ |
719 ":mesa", | 719 ":mesa", |
720 ":mesa_headers", | 720 ":mesa_headers", |
721 ":mesa_libglslcommon", | 721 ":mesa_libglslcommon", |
| 722 "//base", # Required for the allocator implementation. |
722 "//build/config/sanitizers:deps", | 723 "//build/config/sanitizers:deps", |
723 ] | 724 ] |
724 | 725 |
725 if (is_win) { | 726 if (is_win) { |
726 defines = [ | 727 defines = [ |
727 "BUILD_GL32", | 728 "BUILD_GL32", |
728 "KEYWORD1=GLAPI", | 729 "KEYWORD1=GLAPI", |
729 "KEYWORD2=GLAPIENTRY", | 730 "KEYWORD2=GLAPIENTRY", |
730 ] | 731 ] |
731 } | 732 } |
(...skipping 14 matching lines...) Expand all Loading... |
746 deps = [ | 747 deps = [ |
747 "//third_party/wayland:wayland_util", | 748 "//third_party/wayland:wayland_util", |
748 ] | 749 ] |
749 | 750 |
750 configs -= [ "//build/config/compiler:chromium_code" ] | 751 configs -= [ "//build/config/compiler:chromium_code" ] |
751 configs += [ "//build/config/compiler:no_chromium_code" ] | 752 configs += [ "//build/config/compiler:no_chromium_code" ] |
752 | 753 |
753 public_configs = [ ":wayland_drm_protocol_config" ] | 754 public_configs = [ ":wayland_drm_protocol_config" ] |
754 } | 755 } |
755 } | 756 } |
OLD | NEW |