| Index: third_party/mesa/mesa.gyp
|
| diff --git a/third_party/mesa/mesa.gyp b/third_party/mesa/mesa.gyp
|
| index da126438cea1f8ebd826dd28b298db55e090de2b..25423d40b28018d88c90c8b130cba298b1c78ddd 100644
|
| --- a/third_party/mesa/mesa.gyp
|
| +++ b/third_party/mesa/mesa.gyp
|
| @@ -811,4 +811,33 @@
|
| ],
|
| },
|
| ],
|
| + 'conditions': [
|
| + ['OS=="android"', {
|
| + 'targets': [
|
| + {
|
| + # Copies libosmesa.so to the out/$BUILDTYPE/lib/ directory so that
|
| + # the write_ordered_libraries.py script won't assume it to be a
|
| + # system library. This will cause the library to be stripped allowing
|
| + # targets to embed it in the to-be-generated APK.
|
| + 'target_name': 'osmesa_in_lib_dir',
|
| + 'type': 'none',
|
| + 'dependencies': [
|
| + 'osmesa',
|
| + ],
|
| + 'actions': [
|
| + {
|
| + 'action_name': 'copy_libosmesa',
|
| + 'inputs': ['<(PRODUCT_DIR)/libosmesa.so'],
|
| + 'outputs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
|
| + 'action': [
|
| + 'cp',
|
| + '<(PRODUCT_DIR)/libosmesa.so',
|
| + '<(SHARED_LIB_DIR)/libosmesa.so',
|
| + ],
|
| + },
|
| + ],
|
| + },
|
| + ],
|
| + }],
|
| + ],
|
| }
|
|
|