OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 | 6 |
7 assert(!is_android || enable_plugins, | 7 assert(!is_android || enable_plugins, |
8 "//ppapi should not be referenced when is_android && !enable_plugins") | 8 "//ppapi should not be referenced when is_android && !enable_plugins") |
9 | 9 |
| 10 if (is_mac) { |
| 11 import("//build/config/mac/rules.gni") |
| 12 } |
| 13 |
10 copy("copy_test_files") { | 14 copy("copy_test_files") { |
11 visibility = [ ":*" ] | 15 visibility = [ ":*" ] |
12 sources = [ | 16 sources = [ |
13 # Keep "test_case.html.mock-http-headers" with "test_case.html". | 17 # Keep "test_case.html.mock-http-headers" with "test_case.html". |
14 "tests/ppapi_nacl_tests_newlib.nmf", | 18 "tests/ppapi_nacl_tests_newlib.nmf", |
15 "tests/test_case.html", | 19 "tests/test_case.html", |
16 "tests/test_case.html.mock-http-headers", | 20 "tests/test_case.html.mock-http-headers", |
17 "tests/test_page.css", | 21 "tests/test_page.css", |
18 "tests/test_page.css.mock-http-headers", | 22 "tests/test_page.css.mock-http-headers", |
19 ] | 23 ] |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 "tests/test_utils.cc", | 69 "tests/test_utils.cc", |
66 ] | 70 ] |
67 | 71 |
68 deps = [ | 72 deps = [ |
69 "//build/config/sanitizers:deps", | 73 "//build/config/sanitizers:deps", |
70 "//ppapi/cpp", | 74 "//ppapi/cpp", |
71 "//ppapi/shared_impl", | 75 "//ppapi/shared_impl", |
72 ] | 76 ] |
73 } | 77 } |
74 | 78 |
75 loadable_module("blink_deprecated_test_plugin") { | 79 source_set("blink_deprecated_test_plugin_sources") { |
76 sources = [ | 80 sources = [ |
77 "tests/blink_deprecated_test_plugin.cc", | 81 "tests/blink_deprecated_test_plugin.cc", |
78 ] | 82 ] |
79 | 83 |
80 deps = [ | 84 deps = [ |
81 "//base", | 85 "//base", |
82 "//build/config/sanitizers:deps", | 86 "//build/config/sanitizers:deps", |
83 "//ppapi/cpp", | 87 "//ppapi/cpp", |
84 "//ppapi/shared_impl", | 88 "//ppapi/shared_impl", |
85 ] | 89 ] |
86 } | 90 } |
87 | 91 |
88 loadable_module("blink_test_plugin") { | 92 if (!is_mac) { |
| 93 loadable_module("blink_deprecated_test_plugin") { |
| 94 deps = [ |
| 95 ":blink_deprecated_test_plugin_sources", |
| 96 ] |
| 97 } |
| 98 } else { |
| 99 mac_plugin_bundle("blink_deprecated_test_plugin") { |
| 100 deps = [ |
| 101 ":blink_deprecated_test_plugin_sources", |
| 102 ] |
| 103 } |
| 104 } |
| 105 |
| 106 source_set("blink_test_plugin_sources") { |
89 sources = [ | 107 sources = [ |
90 "tests/blink_test_plugin.cc", | 108 "tests/blink_test_plugin.cc", |
91 ] | 109 ] |
92 | 110 |
93 deps = [ | 111 deps = [ |
94 "//base", | 112 "//base", |
95 "//build/config/sanitizers:deps", | 113 "//build/config/sanitizers:deps", |
96 "//ppapi/cpp", | 114 "//ppapi/cpp", |
97 "//ppapi/shared_impl", | 115 "//ppapi/shared_impl", |
98 ] | 116 ] |
99 } | 117 } |
100 | 118 |
| 119 if (!is_mac) { |
| 120 loadable_module("blink_test_plugin") { |
| 121 deps = [ |
| 122 ":blink_test_plugin_sources", |
| 123 ] |
| 124 } |
| 125 } else { |
| 126 mac_plugin_bundle("blink_test_plugin") { |
| 127 deps = [ |
| 128 ":blink_test_plugin_sources", |
| 129 ] |
| 130 } |
| 131 } |
| 132 |
101 test("ppapi_unittests") { | 133 test("ppapi_unittests") { |
102 sources = [ | 134 sources = [ |
103 "host/resource_message_filter_unittest.cc", | 135 "host/resource_message_filter_unittest.cc", |
104 "proxy/device_enumeration_resource_helper_unittest.cc", | 136 "proxy/device_enumeration_resource_helper_unittest.cc", |
105 "proxy/file_chooser_resource_unittest.cc", | 137 "proxy/file_chooser_resource_unittest.cc", |
106 "proxy/file_system_resource_unittest.cc", | 138 "proxy/file_system_resource_unittest.cc", |
107 "proxy/flash_resource_unittest.cc", | 139 "proxy/flash_resource_unittest.cc", |
108 "proxy/interface_list_unittest.cc", | 140 "proxy/interface_list_unittest.cc", |
109 "proxy/mock_resource.cc", | 141 "proxy/mock_resource.cc", |
110 "proxy/mock_resource.h", | 142 "proxy/mock_resource.h", |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 group("ppapi_nacl_tests_all") { | 414 group("ppapi_nacl_tests_all") { |
383 data_deps = [ | 415 data_deps = [ |
384 ":copy_test_files", | 416 ":copy_test_files", |
385 ":ppapi_nacl_tests_copy(//build/toolchain/nacl:clang_newlib_${target_cpu})
", | 417 ":ppapi_nacl_tests_copy(//build/toolchain/nacl:clang_newlib_${target_cpu})
", |
386 ":ppapi_nacl_tests(//build/toolchain/nacl:glibc_${target_cpu})", | 418 ":ppapi_nacl_tests(//build/toolchain/nacl:glibc_${target_cpu})", |
387 ":ppapi_nacl_tests(//build/toolchain/nacl:newlib_pnacl)", | 419 ":ppapi_nacl_tests(//build/toolchain/nacl:newlib_pnacl)", |
388 ":ppapi_nacl_tests(//build/toolchain/nacl:newlib_pnacl_nonsfi)", | 420 ":ppapi_nacl_tests(//build/toolchain/nacl:newlib_pnacl_nonsfi)", |
389 ] | 421 ] |
390 } | 422 } |
391 } | 423 } |
OLD | NEW |