OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 # Disable warnings as errors for mesa until they're fixed or disabled. | 7 # Disable warnings as errors for mesa until they're fixed or disabled. |
8 # http://crbug.com/143877 | 8 # http://crbug.com/143877 |
9 'win_third_party_warn_as_error': 'false', | 9 'win_third_party_warn_as_error': 'false', |
10 | |
11 'use_system_mesa%': 0, | |
12 }, | 10 }, |
13 'conditions': [ | 11 'conditions': [ |
14 ['use_system_mesa==0', { | 12 ['use_system_mesa==0', { |
15 'target_defaults': { | 13 'target_defaults': { |
16 'conditions': [ | 14 'conditions': [ |
17 ['OS!="win"', { | 15 ['OS!="win"', { |
18 'defines': [ | 16 'defines': [ |
19 # For talloc | 17 # For talloc |
20 'HAVE_VA_COPY', | 18 'HAVE_VA_COPY', |
21 ], | 19 ], |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 'MesaLib/src/mesa/drivers/osmesa/osmesa.def', | 583 'MesaLib/src/mesa/drivers/osmesa/osmesa.def', |
586 ], | 584 ], |
587 }, | 585 }, |
588 ], | 586 ], |
589 }, { # use_system_mesa==1 | 587 }, { # use_system_mesa==1 |
590 'targets': [ | 588 'targets': [ |
591 # TODO(phajdan.jr): Make this work, http://crbug.com/161389 . | 589 # TODO(phajdan.jr): Make this work, http://crbug.com/161389 . |
592 { | 590 { |
593 'target_name': 'mesa_headers', | 591 'target_name': 'mesa_headers', |
594 'type': 'none', | 592 'type': 'none', |
| 593 'variables': { |
| 594 'headers_root_path': 'MesaLib/include', |
| 595 # This list can easily be updated using the command below: |
| 596 # find third_party/mesa/MesaLib/include -iname '*.h' \ |
| 597 # -printf "'%p',\n" | grep -v internal | sed -e \ |
| 598 # 's|third_party/mesa/MesaLib/include/||' | sort -u |
| 599 'header_filenames': [ |
| 600 'GL/glext.h', |
| 601 'GL/glfbdev.h', |
| 602 'GL/gl.h', |
| 603 'GL/gl_mangle.h', |
| 604 'GL/glu.h', |
| 605 'GL/glu_mangle.h', |
| 606 'GL/glxext.h', |
| 607 'GL/glx.h', |
| 608 'GL/glx_mangle.h', |
| 609 'GL/mesa_wgl.h', |
| 610 'GL/osmesa.h', |
| 611 'GL/vms_x_fix.h', |
| 612 'GL/wglext.h', |
| 613 'GL/wmesa.h', |
| 614 ], |
| 615 }, |
| 616 'includes': [ |
| 617 '../../build/shim_headers.gypi', |
| 618 ], |
595 }, | 619 }, |
596 { | 620 { |
597 'target_name': 'mesa', | 621 'target_name': 'mesa', |
598 'type': 'none', | 622 'type': 'none', |
599 }, | 623 }, |
600 { | 624 { |
601 'target_name': 'osmesa', | 625 'target_name': 'osmesa', |
602 'type': 'none', | 626 'type': 'none', |
603 }, | 627 }, |
604 ], | 628 ], |
605 }], | 629 }], |
606 ], | 630 ], |
607 } | 631 } |
OLD | NEW |