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

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

Issue 1226583002: clang/win: Build chromium code without -Wno-incompatible-pointer-types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clang-logical-op-parentheses
Patch Set: rebase Created 5 years, 5 months 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 cflags = [] 637 cflags = []
638 638
639 if (is_android && !is_clang) { 639 if (is_android && !is_clang) {
640 # Disable sincos() optimization to avoid a linker error 640 # Disable sincos() optimization to avoid a linker error
641 # since Android's math library doesn't have sincos(). 641 # since Android's math library doesn't have sincos().
642 # Either -fno-builtin-sin or -fno-builtin-cos works. 642 # Either -fno-builtin-sin or -fno-builtin-cos works.
643 cflags += [ "-fno-builtin-sin" ] 643 cflags += [ "-fno-builtin-sin" ]
644 } 644 }
645 645
646 if (is_win) { 646 if (is_win) {
647 # Because we're building as a static library 647 defines = [
648 defines = [ "_GLAPI_NO_EXPORTS" ] 648 # Because we're building as a static library
649 "_GLAPI_NO_EXPORTS",
650
651 # Generated files use const only if __cplusplus or __STDC__ is defined.
652 # On Windows, neither is defined, so define YY_USE_CONST to explicitly
653 # enable const.
654 "YY_USE_CONST",
655 ]
649 } 656 }
650 657
651 deps = [ 658 deps = [
652 ":mesa_headers", 659 ":mesa_headers",
653 ] 660 ]
654 } 661 }
655 662
656 if (!is_android) { # TODO(GYP) enable for Android. 663 if (!is_android) { # TODO(GYP) enable for Android.
657 # Building this target will hide the native OpenGL shared library and 664 # Building this target will hide the native OpenGL shared library and
658 # replace it with a slow software renderer. 665 # replace it with a slow software renderer.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 "KEYWORD2=GLAPIENTRY", 710 "KEYWORD2=GLAPIENTRY",
704 ] 711 ]
705 } 712 }
706 } 713 }
707 } else { 714 } else {
708 # Placeholder to allow targets to unconditionally depend on this. 715 # Placeholder to allow targets to unconditionally depend on this.
709 group("osmesa") { 716 group("osmesa") {
710 } 717 }
711 } # !is_android 718 } # !is_android
712 # TODO(GYP) Android osmesa_in_lib_dir target. 719 # TODO(GYP) Android osmesa_in_lib_dir target.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698