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

Unified Diff: ipc/BUILD.gn

Issue 2004743002: [iOS/GN] Fix the compilation of "all" on iOS with gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « courgette/BUILD.gn ('k') | mojo/edk/system/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/BUILD.gn
diff --git a/ipc/BUILD.gn b/ipc/BUILD.gn
index 87587ec0942a936b872091a316591b2e193c3d5c..4d515d7e7a229d1dba95d7b1036a05f3230eb850 100644
--- a/ipc/BUILD.gn
+++ b/ipc/BUILD.gn
@@ -154,105 +154,107 @@ source_set("param_traits") {
]
}
-test("ipc_tests") {
- sources = [
- "attachment_broker_mac_unittest.cc",
- "attachment_broker_privileged_mac_unittest.cc",
- "attachment_broker_privileged_win_unittest.cc",
- "ipc_channel_posix_unittest.cc",
- "ipc_channel_proxy_unittest.cc",
- "ipc_channel_reader_unittest.cc",
- "ipc_channel_unittest.cc",
- "ipc_fuzzing_tests.cc",
- "ipc_message_attachment_set_posix_unittest.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_message_generator.cc",
- "ipc_test_message_generator.h",
- "ipc_test_messages.h",
- "run_all_unittests.cc",
- "sync_socket_unittest.cc",
- "unix_domain_socket_util_unittest.cc",
- ]
+if (!is_ios) {
+ test("ipc_tests") {
+ sources = [
+ "attachment_broker_mac_unittest.cc",
+ "attachment_broker_privileged_mac_unittest.cc",
+ "attachment_broker_privileged_win_unittest.cc",
+ "ipc_channel_posix_unittest.cc",
+ "ipc_channel_proxy_unittest.cc",
+ "ipc_channel_reader_unittest.cc",
+ "ipc_fuzzing_tests.cc",
+ "ipc_message_attachment_set_posix_unittest.cc",
+ "ipc_message_unittest.cc",
+ "ipc_message_utils_unittest.cc",
+ "ipc_sync_channel_unittest.cc",
+ "ipc_sync_message_unittest.cc",
+ "ipc_sync_message_unittest.h",
+ "ipc_test_message_generator.cc",
+ "ipc_test_message_generator.h",
+ "ipc_test_messages.h",
+ "run_all_unittests.cc",
+ "sync_socket_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" ]
+ }
- if (is_android) {
- # These multiprocess tests don't work on Android.
- sources -= [ "ipc_channel_unittest.cc" ]
- }
+ if (!is_android) {
+ sources += [ "ipc_channel_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"
- #}
+ if (!is_ios) {
+ sources += [ "ipc_send_fds_test.cc" ]
+ }
- deps = [
- ":ipc",
- ":test_support",
- "//base",
- "//base:i18n",
- "//base/test:test_support",
- "//crypto",
- "//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"
+ #}
- if (is_mac) {
- deps += [ "//sandbox/mac:seatbelt" ]
+ deps = [
+ ":ipc",
+ ":test_support",
+ "//base",
+ "//base:i18n",
+ "//base/test:test_support",
+ "//crypto",
+ "//testing/gtest",
+ ]
+
+ if (is_mac) {
+ deps += [ "//sandbox/mac:seatbelt" ]
+ }
}
-}
-test("ipc_perftests") {
- sources = [
- "ipc_perftests.cc",
- ]
+ test("ipc_perftests") {
+ sources = [
+ "ipc_perftests.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 Android testing.
+ #if (is_android && gtest_target_type == "shared_library") {
+ # deps += "/testing/android/native_test.gyp:native_testNative_code"
+ #}
- deps = [
- ":ipc",
- ":test_support",
- "//base",
- "//base:i18n",
- "//base/test:test_support",
- "//base/test:test_support_perf",
- "//testing/gtest",
- ]
-}
+ deps = [
+ ":ipc",
+ ":test_support",
+ "//base",
+ "//base:i18n",
+ "//base/test:test_support",
+ "//base/test:test_support_perf",
+ "//testing/gtest",
+ ]
+ }
-source_set("test_support") {
- testonly = true
- sources = [
- "ipc_multiprocess_test.cc",
- "ipc_multiprocess_test.h",
- "ipc_perftest_support.cc",
- "ipc_perftest_support.h",
- "ipc_security_test_util.cc",
- "ipc_security_test_util.h",
- "ipc_test_base.cc",
- "ipc_test_base.h",
- "ipc_test_channel_listener.cc",
- "ipc_test_channel_listener.h",
- "ipc_test_sink.cc",
- "ipc_test_sink.h",
- "test_util_mac.cc",
- "test_util_mac.h",
- ]
- public_deps = [
- ":ipc",
- ]
- deps = [
- "//base",
- "//base/test:test_support",
- "//testing/gtest",
- ]
+ source_set("test_support") {
+ testonly = true
+ sources = [
+ "ipc_multiprocess_test.cc",
+ "ipc_multiprocess_test.h",
+ "ipc_perftest_support.cc",
+ "ipc_perftest_support.h",
+ "ipc_security_test_util.cc",
+ "ipc_security_test_util.h",
+ "ipc_test_base.cc",
+ "ipc_test_base.h",
+ "ipc_test_channel_listener.cc",
+ "ipc_test_channel_listener.h",
+ "ipc_test_sink.cc",
+ "ipc_test_sink.h",
+ "test_util_mac.cc",
+ "test_util_mac.h",
+ ]
+ public_deps = [
+ ":ipc",
+ ]
+ deps = [
+ "//base",
+ "//base/test:test_support",
+ "//testing/gtest",
+ ]
+ }
}
« no previous file with comments | « courgette/BUILD.gn ('k') | mojo/edk/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698