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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 } | 680 } |
681 | 681 |
682 if (!is_android) { # TODO(GYP) enable for Android. | 682 if (!is_android) { # TODO(GYP) enable for Android. |
683 # Building this target will hide the native OpenGL shared library and | 683 # Building this target will hide the native OpenGL shared library and |
684 # replace it with a slow software renderer. | 684 # replace it with a slow software renderer. |
685 # | 685 # |
686 # Note: on x64 Windows this target gives warnings to the effect of: | 686 # Note: on x64 Windows this target gives warnings to the effect of: |
687 # osmesa.osmesa.obj : warning LNK4197: export 'OSMesaGetIntegerv' specified | 687 # osmesa.osmesa.obj : warning LNK4197: export 'OSMesaGetIntegerv' specified |
688 # multiple times; using first specification | 688 # multiple times; using first specification |
689 # This also happens with the GYP build. | 689 # This also happens with the GYP build. |
690 shared_library("osmesa") { | 690 loadable_module("osmesa") { |
691 sources = [ | 691 sources = [ |
692 "src/src/mesa/drivers/common/driverfuncs.c", | 692 "src/src/mesa/drivers/common/driverfuncs.c", |
693 "src/src/mesa/drivers/common/driverfuncs.h", | 693 "src/src/mesa/drivers/common/driverfuncs.h", |
694 "src/src/mesa/drivers/common/meta.c", | 694 "src/src/mesa/drivers/common/meta.c", |
695 "src/src/mesa/drivers/common/meta.h", | 695 "src/src/mesa/drivers/common/meta.h", |
696 "src/src/mesa/drivers/osmesa/osmesa.c", | 696 "src/src/mesa/drivers/osmesa/osmesa.c", |
697 ] | 697 ] |
698 | 698 |
699 configs -= [ "//build/config/compiler:chromium_code" ] | 699 configs -= [ "//build/config/compiler:chromium_code" ] |
700 configs += [ | 700 configs += [ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. |
OLD | NEW |