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

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

Issue 1348493002: Add fnl build target (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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 if (is_posix) {
viettrungluu 2015/09/15 23:48:23 && !is_clang? Or maybe even just |if (!is_clang)|
cdotstout 2015/09/16 22:01:00 Copied this from build/config/compiler/BUILD.gn so
7 import("//build/config/gcc/gcc_version.gni")
8 }
6 9
7 config("mesa_headers_config") { 10 config("mesa_headers_config") {
8 include_dirs = [ "src/include" ] 11 include_dirs = [ "src/include" ]
9 if (use_x11) { 12 if (use_x11) {
10 defines = [ "MESA_EGL_NO_X11_HEADERS" ] 13 defines = [ "MESA_EGL_NO_X11_HEADERS" ]
11 } 14 }
12 } 15 }
13 16
14 # This directory contains checked-in files generated from the Mesa build. 17 # This directory contains checked-in files generated from the Mesa build.
15 generated_src_dir = "src/chromium_gensrc" 18 generated_src_dir = "src/chromium_gensrc"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 "src/src/mesa/main", 76 "src/src/mesa/main",
74 "src/include", 77 "src/include",
75 "$generated_src_dir/mesa/", 78 "$generated_src_dir/mesa/",
76 "$generated_src_dir/mesa/main", 79 "$generated_src_dir/mesa/main",
77 "$generated_src_dir/mesa/program", 80 "$generated_src_dir/mesa/program",
78 "$generated_src_dir/mesa/glapi", 81 "$generated_src_dir/mesa/glapi",
79 ] 82 ]
80 83
81 if (is_clang) { 84 if (is_clang) {
82 cflags += [ "-Wno-tautological-constant-out-of-range-compare" ] 85 cflags += [ "-Wno-tautological-constant-out-of-range-compare" ]
86 } else if (gcc_version >= 48) {
87 cflags += [ "-Wno-narrowing" ]
83 } 88 }
84 89
85 if (is_android) { 90 if (is_android) {
86 defines += [ 91 defines += [
87 "__GLIBC__", 92 "__GLIBC__",
88 "_GNU_SOURCE", 93 "_GNU_SOURCE",
89 ] 94 ]
90 } 95 }
91 96
92 if (is_linux) { 97 if (is_linux) {
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 "KEYWORD2=GLAPIENTRY", 692 "KEYWORD2=GLAPIENTRY",
688 ] 693 ]
689 } 694 }
690 } 695 }
691 } else { 696 } else {
692 # Placeholder to allow targets to unconditionally depend on this. 697 # Placeholder to allow targets to unconditionally depend on this.
693 group("osmesa") { 698 group("osmesa") {
694 } 699 }
695 } # !is_android 700 } # !is_android
696 # TODO(GYP) Android osmesa_in_lib_dir target. 701 # TODO(GYP) Android osmesa_in_lib_dir target.
OLDNEW
« mojo/tools/mopy/gn.py ('K') | « services/http_server/http_server_apptest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698