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

Unified Diff: gpu/gpu.gyp

Issue 12502009: Make gl_tests apk for android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « gpu/command_buffer/tests/gl_tests_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gpu.gyp
diff --git a/gpu/gpu.gyp b/gpu/gpu.gyp
index 8255fd88dc8312237ccc431d5544744f14a820dd..1bb1105c0f8b845bda577d4bcb7664f669bb13cc 100644
--- a/gpu/gpu.gyp
+++ b/gpu/gpu.gyp
@@ -219,7 +219,7 @@
},
{
'target_name': 'gl_tests',
- 'type': 'executable',
+ 'type': '<(gtest_target_type)',
'dependencies': [
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
@@ -264,6 +264,13 @@
'command_buffer/tests/gl_stream_draw_unittests.cc',
'command_buffer/tests/occlusion_query_unittests.cc',
],
+ 'conditions': [
+ ['OS == "android" and gtest_target_type == "shared_library"', {
+ 'dependencies': [
+ '../testing/android/native_test.gyp:native_test_native_code',
+ ],
+ }],
+ ],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
@@ -481,5 +488,23 @@
},
],
}],
+ ['OS == "android" and gtest_target_type == "shared_library"', {
+ 'targets': [
+ {
+ 'target_name': 'gl_tests_apk',
+ 'type': 'none',
+ 'dependencies': [
+ 'gl_tests',
+ ],
+ 'variables': {
+ 'test_suite_name': 'gl_tests',
+ 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)gl_tests<(SHARED_LIB_SUFFIX)',
+ },
+ 'includes': [
+ '../build/apk_test.gypi',
+ ],
+ },
+ ],
+ }],
],
}
« no previous file with comments | « gpu/command_buffer/tests/gl_tests_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698