| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 }, | 7 }, |
| 8 'target_defaults': { |
| 9 'conditions': [ |
| 10 ['OS=="linux"', { |
| 11 'cflags': [ |
| 12 '-fPIC', |
| 13 ], |
| 14 }], |
| 15 ], |
| 16 }, |
| 8 'targets': [ | 17 'targets': [ |
| 9 { | 18 { |
| 10 'target_name': 'mesa', | 19 'target_name': 'mesa', |
| 11 'type': 'static_library', | 20 'type': 'static_library', |
| 12 'include_dirs': [ | 21 'include_dirs': [ |
| 13 'MesaLib/include', | 22 'MesaLib/include', |
| 14 'MesaLib/src/mesa', | 23 'MesaLib/src/mesa', |
| 15 ], | 24 ], |
| 16 'sources': [ | 25 'sources': [ |
| 17 'MesaLib/src/mesa/main/accum.c', | 26 'MesaLib/src/mesa/main/accum.c', |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 'MesaLib/src/mesa/main/version.h', | 426 'MesaLib/src/mesa/main/version.h', |
| 418 'MesaLib/src/mesa/main/viewport.h', | 427 'MesaLib/src/mesa/main/viewport.h', |
| 419 'MesaLib/src/mesa/main/vtxfmt.h', | 428 'MesaLib/src/mesa/main/vtxfmt.h', |
| 420 'MesaLib/src/mesa/main/vtxfmt_tmp.h', | 429 'MesaLib/src/mesa/main/vtxfmt_tmp.h', |
| 421 ], | 430 ], |
| 422 }, | 431 }, |
| 423 # Building this target will hide the native OpenGL shared library and | 432 # Building this target will hide the native OpenGL shared library and |
| 424 # replace it with a slow software renderer. | 433 # replace it with a slow software renderer. |
| 425 { | 434 { |
| 426 'target_name': 'osmesa', | 435 'target_name': 'osmesa', |
| 427 'type': 'shared_library', | 436 'type': 'loadable_module', |
| 437 'mac_bundle': 0, |
| 428 'dependencies': [ | 438 'dependencies': [ |
| 429 'mesa', | 439 'mesa', |
| 430 ], | 440 ], |
| 431 'include_dirs': [ | 441 'include_dirs': [ |
| 432 'MesaLib/include', | 442 'MesaLib/include', |
| 433 'MesaLib/src/mesa', | 443 'MesaLib/src/mesa', |
| 434 'MesaLib/src/mesa/drivers', | 444 'MesaLib/src/mesa/drivers', |
| 435 ], | 445 ], |
| 436 'sources': [ | 446 'sources': [ |
| 437 'MesaLib/src/mesa/drivers/common/driverfuncs.c', | 447 'MesaLib/src/mesa/drivers/common/driverfuncs.c', |
| 438 'MesaLib/src/mesa/drivers/common/driverfuncs.h', | 448 'MesaLib/src/mesa/drivers/common/driverfuncs.h', |
| 439 'MesaLib/src/mesa/drivers/common/meta.c', | 449 'MesaLib/src/mesa/drivers/common/meta.c', |
| 440 'MesaLib/src/mesa/drivers/common/meta.h', | 450 'MesaLib/src/mesa/drivers/common/meta.h', |
| 441 'MesaLib/src/mesa/drivers/osmesa/osmesa.c', | 451 'MesaLib/src/mesa/drivers/osmesa/osmesa.c', |
| 442 'MesaLib/src/mesa/drivers/osmesa/osmesa.def', | 452 'MesaLib/src/mesa/drivers/osmesa/osmesa.def', |
| 443 ], | 453 ], |
| 444 }, | 454 }, |
| 445 ], | 455 ], |
| 446 } | 456 } |
| OLD | NEW |