Index: sandbox/linux/sandbox_linux.gypi |
diff --git a/sandbox/linux/sandbox_linux.gypi b/sandbox/linux/sandbox_linux.gypi |
index 2fac989ab6397f764ee6ad0be81e0f9da6333b31..5365fbbc723da764748d66f5c8aa0019996a66f0 100644 |
--- a/sandbox/linux/sandbox_linux.gypi |
+++ b/sandbox/linux/sandbox_linux.gypi |
@@ -4,6 +4,9 @@ |
{ |
'variables': { |
+ 'sandbox_linux_unittests_apk_target': 0, |
+ # Whether to build the android test as an APK or an ELF executable. |
+ 'build_android_jni_test': 1, |
jln (very slow on Chromium)
2013/01/30 00:04:25
This is a poor solution to keep both APK and non A
Agrawal
2013/01/30 01:43:08
I am not sure why you are doing this. If you want
jln (very slow on Chromium)
2013/01/30 01:56:29
There must be something I don't know. Are you sayi
Agrawal
2013/01/30 02:17:05
IIRC, you can modify GYP_DEFINES in your environme
jln (very slow on Chromium)
2013/01/30 02:27:51
I tried that (without an external gypi file though
|
'conditions': [ |
['OS=="linux"', { |
'compile_suid_client': 1, |
@@ -66,7 +69,6 @@ |
}, |
{ |
'target_name': 'sandbox_linux_unittests', |
- 'type': '<(gtest_target_type)', |
'dependencies': [ |
'sandbox', |
'../testing/gtest.gyp:gtest', |
@@ -81,6 +83,11 @@ |
'../..', |
], |
'conditions': [ |
+ [ 'build_android_jni_test==1', { |
+ 'type': '<(gtest_target_type)', |
+ }, { |
+ 'type': 'executable', |
+ }], |
[ 'compile_suid_client==1', { |
'sources': [ |
'suid/client/setuid_sandbox_client_unittest.cc', |
@@ -96,10 +103,10 @@ |
'seccomp-bpf/syscall_unittest.cc', |
], |
}], |
- ['OS == "android" and gtest_target_type == "shared_library"', { |
+ [ 'OS == "android" and gtest_target_type == "shared_library"', { |
'dependencies': [ |
'../testing/android/native_test.gyp:native_test_native_code', |
- ] |
+ ], |
}], |
], |
}, |
@@ -214,7 +221,6 @@ |
'..', |
], |
}, |
- |
], |
'conditions': [ |
# Strategy copied from base_unittests_apk in base/base.gyp. |
@@ -223,15 +229,16 @@ |
{ |
'target_name': 'sandbox_linux_unittests_apk', |
'type': 'none', |
- 'dependencies': [ |
- 'sandbox_linux_unittests', |
- ], |
'variables': { |
+ 'sandbox_linux_unittests_apk_target': 1, |
Agrawal
2013/01/30 01:43:08
What does this accomplish?
jln (very slow on Chromium)
2013/01/30 01:56:29
It's not used at the moment. I was fiddling with i
Agrawal
2013/01/30 02:17:05
I still do not understand this. these variables ar
|
'test_suite_name': 'sandbox_linux_unittests', |
'input_shlib_path': |
'<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sandbox_linux_unittests' |
'<(SHARED_LIB_SUFFIX)', |
}, |
+ 'dependencies': [ |
+ 'sandbox_linux_unittests', |
+ ], |
'includes': [ '../../build/apk_test.gypi' ], |
} |
], |