Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: third_party/mesa/BUILD.gn

Issue 1439973004: [PoC] Reformat all BUILD.gn and *.gni files with new gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-sort-deps
Patch Set: Synchronize with new version of gn patch Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 configs -= [ "//build/config/clang:extra_warnings" ] 713 configs -= [ "//build/config/clang:extra_warnings" ]
714 } 714 }
715 715
716 if (is_win) { 716 if (is_win) {
717 ldflags = 717 ldflags =
718 [ "/DEF:" + rebase_path("src/src/mesa/drivers/osmesa/osmesa.def", 718 [ "/DEF:" + rebase_path("src/src/mesa/drivers/osmesa/osmesa.def",
719 root_build_dir) ] 719 root_build_dir) ]
720 } 720 }
721 721
722 deps = [ 722 deps = [
723 ":mesa",
723 ":mesa_headers", 724 ":mesa_headers",
724 ":mesa",
725 ":mesa_libglslcommon", 725 ":mesa_libglslcommon",
726 "//build/config/sanitizers:deps", 726 "//build/config/sanitizers:deps",
727 ] 727 ]
728 728
729 if (is_win) { 729 if (is_win) {
730 defines = [ 730 defines = [
731 "BUILD_GL32", 731 "BUILD_GL32",
732 "KEYWORD1=GLAPI", 732 "KEYWORD1=GLAPI",
733 "KEYWORD2=GLAPIENTRY", 733 "KEYWORD2=GLAPIENTRY",
734 ] 734 ]
735 } 735 }
736 } 736 }
737 } else { 737 } else {
738 # Placeholder to allow targets to unconditionally depend on this. 738 # Placeholder to allow targets to unconditionally depend on this.
739 group("osmesa") { 739 group("osmesa") {
740 } 740 }
741 } # !is_android 741 } # !is_android
742 # TODO(GYP) Android osmesa_in_lib_dir target. 742 # TODO(GYP) Android osmesa_in_lib_dir target.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698