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

Unified Diff: platform_tools/android/gyp/dependencies.gypi

Issue 1108013002: Make Skia for Android libjpeg use ashmem (Closed) Base URL: https://skia.googlesource.com/skia.git@jpeg-scanline
Patch Set: Created 5 years, 8 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
Index: platform_tools/android/gyp/dependencies.gypi
diff --git a/platform_tools/android/gyp/dependencies.gypi b/platform_tools/android/gyp/dependencies.gypi
index 3c6c423990c47dbe13b31f4bc10007a7ba2e9d37..62ac7dcf794391f5d3171ebe37a7cef7c7e5cbd1 100644
--- a/platform_tools/android/gyp/dependencies.gypi
+++ b/platform_tools/android/gyp/dependencies.gypi
@@ -35,6 +35,14 @@
],
},
{
+ 'target_name': 'ashmem',
+ 'type': 'static_library',
+ 'sources': [
+ '../third_party/cutils/ashmem.h',
djsollen 2015/04/27 17:12:25 let's put this code into... ../third_party/ashmem
msarett 2015/04/27 17:32:49 Done.
+ '../third_party/cutils/ashmem-dev.c'
msarett 2015/04/27 16:01:57 Directory is named cutils so we can avoid making l
+ ],
djsollen 2015/04/27 17:12:25 add 'direct_dependent_settings': { 'include_di
msarett 2015/04/27 17:32:49 Done.
+ },
+ {
'target_name': 'expat',
'type': 'static_library',
'sources': [
@@ -102,6 +110,9 @@
{
'target_name': 'jpeg',
'type': 'static_library',
+ 'dependencies': [
+ 'ashmem'
+ ],
'sources': [
'../third_party/externals/jpeg/jcapimin.c',
'../third_party/externals/jpeg/jcapistd.c',
@@ -144,7 +155,7 @@
'../third_party/externals/jpeg/jidctfst.c',
'../third_party/externals/jpeg/jidctint.c',
'../third_party/externals/jpeg/jidctred.c',
- '../third_party/externals/jpeg/jmem-android.c',
+ '../third_party/externals/jpeg/jmem-ashmem.c',
'../third_party/externals/jpeg/jmemmgr.c',
'../third_party/externals/jpeg/jquant1.c',
'../third_party/externals/jpeg/jquant2.c',
@@ -187,11 +198,13 @@
],
'include_dirs': [
'../third_party/externals/jpeg',
+ '../third_party/',
djsollen 2015/04/27 17:12:25 remove this
msarett 2015/04/27 17:32:49 Done.
],
'cflags': [
'-w',
'-fvisibility=hidden',
'-DAVOID_TABLES',
+ '-DUSE_ANDROID_ASHMEM',
'-O3',
'-fstrict-aliasing',
'-fprefetch-loop-arrays',
« no previous file with comments | « no previous file | platform_tools/android/third_party/cutils/LICENSE » ('j') | platform_tools/android/third_party/cutils/OWNERS » ('J')

Powered by Google App Engine
This is Rietveld 408576698