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

Unified Diff: third_party/mesa/mesa.gyp

Issue 23868030: Make it possible to use OSMesa on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/async_pixel_transfer_manager_android.cc ('k') | ui/gl/gl.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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',
+ ],
+ },
+ ],
+ },
+ ],
+ }],
+ ],
}
« no previous file with comments | « gpu/command_buffer/service/async_pixel_transfer_manager_android.cc ('k') | ui/gl/gl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698