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

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

Issue 1423563007: third_party: Add wayland_drm_protocol target to third_party/mesa. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@libffi-arm
Patch Set: fix copy-n-paste mistake Created 5 years 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
« no previous file with comments | « DEPS ('k') | third_party/mesa/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = 714 ldflags =
715 [ "/DEF:" + rebase_path("src/src/mesa/drivers/osmesa/osmesa.def", 715 [ "/DEF:" + rebase_path("src/src/mesa/drivers/osmesa/osmesa.def",
716 root_build_dir) ] 716 root_build_dir) ]
717 } 717 }
718 718
719 deps = [ 719 deps = [
720 ":mesa",
720 ":mesa_headers", 721 ":mesa_headers",
721 ":mesa",
722 ":mesa_libglslcommon", 722 ":mesa_libglslcommon",
723 "//build/config/sanitizers:deps", 723 "//build/config/sanitizers:deps",
724 ] 724 ]
725 725
726 if (is_win) { 726 if (is_win) {
727 defines = [ 727 defines = [
728 "BUILD_GL32", 728 "BUILD_GL32",
729 "KEYWORD1=GLAPI", 729 "KEYWORD1=GLAPI",
730 "KEYWORD2=GLAPIENTRY", 730 "KEYWORD2=GLAPIENTRY",
731 ] 731 ]
732 } 732 }
733 } 733 }
734 } else { 734 } else {
735 # Placeholder to allow targets to unconditionally depend on this. 735 # Placeholder to allow targets to unconditionally depend on this.
736 group("osmesa") { 736 group("osmesa") {
737 } 737 }
738 } # !is_android 738 } # !is_android
739
739 # TODO(GYP) Android osmesa_in_lib_dir target. 740 # TODO(GYP) Android osmesa_in_lib_dir target.
741
742 if (is_linux) {
743 config("wayland_drm_protocol_config") {
744 include_dirs = [ "$generated_src_dir/egl/wayland/wayland-drm" ]
745 }
746
747 source_set("wayland_drm_protocol") {
748 sources = [
749 "$generated_src_dir/egl/wayland/wayland-drm/wayland-drm-client-protocol.h" ,
750 "$generated_src_dir/egl/wayland/wayland-drm/wayland-drm-protocol.c",
751 "$generated_src_dir/egl/wayland/wayland-drm/wayland-drm-server-protocol.h" ,
752 ]
753
754 deps = [
755 "//third_party/wayland:wayland_util",
756 ]
757
758 configs -= [ "//build/config/compiler:chromium_code" ]
759 configs += [ "//build/config/compiler:no_chromium_code" ]
760
761 public_configs = [ ":wayland_drm_protocol_config" ]
762 }
763 }
OLDNEW
« no previous file with comments | « DEPS ('k') | third_party/mesa/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698