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

Unified Diff: content/content_shell.gypi

Issue 23868030: Make it possible to use OSMesa on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 2 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 | « no previous file | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/content_shell.gypi
diff --git a/content/content_shell.gypi b/content/content_shell.gypi
index 0895c2c7e230bacd8d77e95ed5b1350e407f9228..ef564525601622a6ef0f96a4a4ca524132e9208b 100644
--- a/content/content_shell.gypi
+++ b/content/content_shell.gypi
@@ -841,6 +841,7 @@
'../base/base.gyp:base_java',
'../media/media.gyp:media_java',
'../net/net.gyp:net_java',
+ '../third_party/mesa/mesa.gyp:osmesa',
'../tools/android/forwarder/forwarder.gyp:forwarder',
'../ui/ui.gyp:ui_java',
],
@@ -852,7 +853,24 @@
'native_lib_target': 'libcontent_shell_content_view',
'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
'asset_location': '<(ant_build_out)/content_shell/assets',
+ 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
},
+ 'actions': [
+ {
no sievers 2013/11/11 20:20:05 Can this somehow move to the libosmesa target itse
+ # Copy libosmesa.so to the out/$BUILDTYPE/lib/ directory. The
+ # write_ordered_libraries.py script requires it to be in that
+ # directory, because otherwise it will be seen as a system lib
+ # which causes it to not be stripped.
+ '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',
+ ],
+ },
+ ],
'conditions': [
['android_webview_build==0', {
'dependencies': [
« no previous file with comments | « no previous file | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698