diff options
Diffstat (limited to 'third_party/ashmem/ashmem.gyp')
-rw-r--r-- | third_party/ashmem/ashmem.gyp | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/third_party/ashmem/ashmem.gyp b/third_party/ashmem/ashmem.gyp index 36e231f..82e893a 100644 --- a/third_party/ashmem/ashmem.gyp +++ b/third_party/ashmem/ashmem.gyp @@ -6,10 +6,28 @@ 'targets': [ { 'target_name': 'ashmem', - 'type': 'static_library', - 'sources': [ - 'ashmem.h', - 'ashmem-dev.c' + 'conditions': [ + ['android_webview_build==1', { + # WebView must use the Android system version of ashmem to avoid + # linking problems. + 'type': 'none', + 'variables': { + 'headers_root_path': '.', + 'header_filenames': [ 'ashmem.h' ], + 'shim_generator_additional_args': [ + '--prefix', 'cutils/', + ], + }, + 'includes': [ + '../../build/shim_headers.gypi', + ], + }, { + 'type': 'static_library', + 'sources': [ + 'ashmem.h', + 'ashmem-dev.c' + ], + }], ], }, ], |