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

Unified Diff: ui/gfx/gfx.gyp

Issue 225213002: ui/gfx: Add Android support for gfx_unittests target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 6 years, 9 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 | « build/all.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gfx.gyp
diff --git a/ui/gfx/gfx.gyp b/ui/gfx/gfx.gyp
index 7e7d67aeb39e49386bef895cabdb962edaf9b95a..e150f7f9f28f61444ceb83f15ec2550c5b13d495 100644
--- a/ui/gfx/gfx.gyp
+++ b/ui/gfx/gfx.gyp
@@ -494,7 +494,7 @@
},
{
'target_name': 'gfx_unittests',
- 'type': 'executable',
+ 'type': '<(gtest_target_type)',
'sources': [
'geometry/box_unittest.cc',
'geometry/cubic_bezier_unittest.cc',
@@ -539,5 +539,23 @@
},
],
}],
+ # Special target to wrap a gtest_target_type==shared_library
+ # gfx_unittests into an android apk for execution.
+ # See base.gyp for TODO(jrg)s about this strategy.
+ ['OS == "android" and gtest_target_type == "shared_library"', {
+ 'targets': [
+ {
+ 'target_name': 'gfx_unittests_apk',
+ 'type': 'none',
+ 'dependencies': [
+ 'gfx_unittests',
+ ],
+ 'variables': {
+ 'test_suite_name': 'gfx_unittests',
+ },
+ 'includes': [ '../../build/apk_test.gypi' ],
+ },
+ ],
+ }],
],
}
« no previous file with comments | « build/all.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698