diff options
author | dpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-12 01:19:16 +0000 |
---|---|---|
committer | dpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-12 01:19:16 +0000 |
commit | 5a8d516b32101692d775ce18a5b8e2952308d241 (patch) | |
tree | 827738be60c176d95cb07722f6e68db0a3938bf5 /ipc/BUILD.gn | |
parent | a403a3d5aead637939190b8361189877f14fc746 (diff) | |
download | chromium_src-5a8d516b32101692d775ce18a5b8e2952308d241.zip chromium_src-5a8d516b32101692d775ce18a5b8e2952308d241.tar.gz chromium_src-5a8d516b32101692d775ce18a5b8e2952308d241.tar.bz2 |
Checkpoint work to get GN builds working on Android.
This fixes enough issues so that we can compile and link some libraries, but
it is not yet a working build.
Work remaining:
- base needs JNI support ('base_jni_headers', etc.)
- we need to figure out what should link and/or be APKs to run the tests
- we need to adjust GN to only build in the host config, not the target config.
R=brettw@chromium.org, cjhopman@chromium.org
TBR=jam
BUG=360936
Review URL: https://codereview.chromium.org/227673008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263440 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/BUILD.gn')
-rw-r--r-- | ipc/BUILD.gn | 145 |
1 files changed, 74 insertions, 71 deletions
diff --git a/ipc/BUILD.gn b/ipc/BUILD.gn index 0b426bd..0c91d2f 100644 --- a/ipc/BUILD.gn +++ b/ipc/BUILD.gn @@ -79,81 +79,84 @@ component("ipc") { ] } -test("ipc_tests") { - sources = [ - "file_descriptor_set_posix_unittest.cc", - "ipc_channel_posix_unittest.cc", - "ipc_channel_unittest.cc", - "ipc_fuzzing_tests.cc", - "ipc_message_unittest.cc", - "ipc_message_utils_unittest.cc", - "ipc_send_fds_test.cc", - "ipc_sync_channel_unittest.cc", - "ipc_sync_message_unittest.cc", - "ipc_sync_message_unittest.h", - "ipc_test_base.cc", - "ipc_test_base.h", - "sync_socket_unittest.cc", - "unix_domain_socket_util_unittest.cc", - ] +# TODO(dpranke): crbug.com/360936. Get this to build and run on Android. +if (!is_android) { + test("ipc_tests") { + sources = [ + "file_descriptor_set_posix_unittest.cc", + "ipc_channel_posix_unittest.cc", + "ipc_channel_unittest.cc", + "ipc_fuzzing_tests.cc", + "ipc_message_unittest.cc", + "ipc_message_utils_unittest.cc", + "ipc_send_fds_test.cc", + "ipc_sync_channel_unittest.cc", + "ipc_sync_message_unittest.cc", + "ipc_sync_message_unittest.h", + "ipc_test_base.cc", + "ipc_test_base.h", + "sync_socket_unittest.cc", + "unix_domain_socket_util_unittest.cc", + ] - if (is_win || is_ios) { - sources -= [ "unix_domain_socket_util_unittest.cc" ] + if (is_win || is_ios) { + sources -= [ "unix_domain_socket_util_unittest.cc" ] + } + + # TODO(brettw) hook up Android testing. + #if (is_android && gtest_target_type == "shared_library") { + # deps += "/testing/android/native_test.gyp:native_testNative_code" + #} + + # TODO(brettw) hook up tcmalloc to this target. + #if (is_posix && !is_mac && !is_android) { + # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 + # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_allocator=="see_use_tcmalloc" && linux_use_tcmalloc)) { + # deps += "/base/allocator" + # } + #} + + deps = [ + ":ipc", + ":test_support_ipc", + "//base", + "//base:i18n", + "//base/test:run_all_unittests", + "//base/test:test_support", + "//testing/gtest", + ] } - # TODO(brettw) hook up Android testing. - #if (is_android && gtest_target_type == "shared_library") { - # deps += "/testing/android/native_test.gyp:native_testNative_code" - #} - - # TODO(brettw) hook up tcmalloc to this target. - #if (is_posix && !is_mac && !is_android) { - # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 - # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_allocator=="see_use_tcmalloc" && linux_use_tcmalloc)) { - # deps += "/base/allocator" - # } - #} - - deps = [ - ":ipc", - ":test_support_ipc", - "//base", - "//base:i18n", - "//base/test:run_all_unittests", - "//base/test:test_support", - "//testing/gtest", - ] -} - -test("ipc_perftests") { - sources = [ - "ipc_perftests.cc", - "ipc_test_base.cc", - "ipc_test_base.h", - ] - - # TODO(brettw) hook up Android testing. - #if (is_android && gtest_target_type == "shared_library") { - # deps += "/testing/android/native_test.gyp:native_testNative_code" - #} - - # TODO(brettw) hook up tcmalloc to this target. - #if (is_posix && !is_mac && !is_android) { - # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 - # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_allocator=="see_use_tcmalloc" && linux_use_tcmalloc)) { - # deps += "//base/allocator" - # } - #} + test("ipc_perftests") { + sources = [ + "ipc_perftests.cc", + "ipc_test_base.cc", + "ipc_test_base.h", + ] - deps = [ - ":ipc", - ":test_support_ipc", - "//base", - "//base:i18n", - "//base/test:test_support", - "//base/test:test_support_perf", - "//testing/gtest", - ] + # TODO(brettw) hook up Android testing. + #if (is_android && gtest_target_type == "shared_library") { + # deps += "/testing/android/native_test.gyp:native_testNative_code" + #} + + # TODO(brettw) hook up tcmalloc to this target. + #if (is_posix && !is_mac && !is_android) { + # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 + # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_allocator=="see_use_tcmalloc" && linux_use_tcmalloc)) { + # deps += "//base/allocator" + # } + #} + + deps = [ + ":ipc", + ":test_support_ipc", + "//base", + "//base:i18n", + "//base/test:test_support", + "//base/test:test_support_perf", + "//testing/gtest", + ] + } } static_library("test_support_ipc") { |