OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'test_support_content', | 8 'target_name': 'test_support_content', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'defines!': ['CONTENT_IMPLEMENTATION'], | 10 'defines!': ['CONTENT_IMPLEMENTATION'], |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 'sources!': [ | 954 'sources!': [ |
955 'browser/accessibility/accessibility_win_browsertest.cc', | 955 'browser/accessibility/accessibility_win_browsertest.cc', |
956 'browser/accessibility/dump_accessibility_tree_browsertest.cc', | 956 'browser/accessibility/dump_accessibility_tree_browsertest.cc', |
957 'browser/plugin_browsertest.cc', | 957 'browser/plugin_browsertest.cc', |
958 ], | 958 ], |
959 }], | 959 }], |
960 ['OS!="android" and OS!="ios"', { | 960 ['OS!="android" and OS!="ios"', { |
961 # npapi test plugin doesn't build on android or ios | 961 # npapi test plugin doesn't build on android or ios |
962 'dependencies': [ | 962 'dependencies': [ |
963 # Runtime dependencies | 963 # Runtime dependencies |
964 '../webkit/plugins/webkit_plugins.gyp:copy_npapi_test_plugin', | 964 'copy_npapi_test_plugin', |
965 ], | 965 ], |
966 }], | 966 }], |
967 ['enable_webrtc==1', { | 967 ['enable_webrtc==1', { |
968 'sources': [ | 968 'sources': [ |
969 'browser/media/webrtc_browsertest.cc', | 969 'browser/media/webrtc_browsertest.cc', |
970 ], | 970 ], |
971 }], | 971 }], |
972 ['enable_plugins==0', { | 972 ['enable_plugins==0', { |
973 'sources!': [ | 973 'sources!': [ |
974 'browser/plugin_service_impl_browsertest.cc', | 974 'browser/plugin_service_impl_browsertest.cc', |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1246 'apk_name': 'ContentShellTest', | 1246 'apk_name': 'ContentShellTest', |
1247 'java_in_dir': 'shell/android/javatests', | 1247 'java_in_dir': 'shell/android/javatests', |
1248 'resource_dir': 'shell/android/shell_apk/res', | 1248 'resource_dir': 'shell/android/shell_apk/res', |
1249 'additional_src_dirs': ['public/android/javatests/',], | 1249 'additional_src_dirs': ['public/android/javatests/',], |
1250 'is_test_apk': 1, | 1250 'is_test_apk': 1, |
1251 }, | 1251 }, |
1252 'includes': [ '../build/java_apk.gypi' ], | 1252 'includes': [ '../build/java_apk.gypi' ], |
1253 }, | 1253 }, |
1254 ], | 1254 ], |
1255 }], | 1255 }], |
| 1256 ['OS!="android" and OS!="ios"', { |
| 1257 # npapi test plugin doesn't build on android or ios |
| 1258 'targets': [ |
| 1259 { |
| 1260 'target_name': 'npapi_test_plugin', |
| 1261 'type': 'loadable_module', |
| 1262 'variables': { |
| 1263 'chromium_code': 1, |
| 1264 }, |
| 1265 'mac_bundle': 1, |
| 1266 'dependencies': [ |
| 1267 '<(DEPTH)/base/base.gyp:base', |
| 1268 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', |
| 1269 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', |
| 1270 ], |
| 1271 'sources': [ |
| 1272 'test/plugin/npapi_constants.cc', |
| 1273 'test/plugin/npapi_constants.h', |
| 1274 'test/plugin/npapi_test.cc', |
| 1275 'test/plugin/npapi_test.def', |
| 1276 'test/plugin/npapi_test.rc', |
| 1277 'test/plugin/plugin_arguments_test.cc', |
| 1278 'test/plugin/plugin_arguments_test.h', |
| 1279 'test/plugin/plugin_client.cc', |
| 1280 'test/plugin/plugin_client.h', |
| 1281 'test/plugin/plugin_create_instance_in_paint.cc', |
| 1282 'test/plugin/plugin_create_instance_in_paint.h', |
| 1283 'test/plugin/plugin_delete_plugin_in_deallocate_test.cc', |
| 1284 'test/plugin/plugin_delete_plugin_in_deallocate_test.h', |
| 1285 'test/plugin/plugin_delete_plugin_in_stream_test.cc', |
| 1286 'test/plugin/plugin_delete_plugin_in_stream_test.h', |
| 1287 'test/plugin/plugin_execute_stream_javascript.cc', |
| 1288 'test/plugin/plugin_execute_stream_javascript.h', |
| 1289 'test/plugin/plugin_get_javascript_url_test.cc', |
| 1290 'test/plugin/plugin_get_javascript_url_test.h', |
| 1291 'test/plugin/plugin_get_javascript_url2_test.cc', |
| 1292 'test/plugin/plugin_get_javascript_url2_test.h', |
| 1293 'test/plugin/plugin_geturl_test.cc', |
| 1294 'test/plugin/plugin_geturl_test.h', |
| 1295 'test/plugin/plugin_javascript_open_popup.cc', |
| 1296 'test/plugin/plugin_javascript_open_popup.h', |
| 1297 'test/plugin/plugin_new_fails_test.cc', |
| 1298 'test/plugin/plugin_new_fails_test.h', |
| 1299 'test/plugin/plugin_npobject_identity_test.cc', |
| 1300 'test/plugin/plugin_npobject_identity_test.h', |
| 1301 'test/plugin/plugin_npobject_lifetime_test.cc', |
| 1302 'test/plugin/plugin_npobject_lifetime_test.h', |
| 1303 'test/plugin/plugin_npobject_proxy_test.cc', |
| 1304 'test/plugin/plugin_npobject_proxy_test.h', |
| 1305 'test/plugin/plugin_request_read_test.h', |
| 1306 'test/plugin/plugin_request_read_test.cc', |
| 1307 'test/plugin/plugin_schedule_timer_test.cc', |
| 1308 'test/plugin/plugin_schedule_timer_test.h', |
| 1309 'test/plugin/plugin_setup_test.cc', |
| 1310 'test/plugin/plugin_setup_test.h', |
| 1311 'test/plugin/plugin_test.cc', |
| 1312 'test/plugin/plugin_test.h', |
| 1313 'test/plugin/plugin_test_factory.h', |
| 1314 'test/plugin/plugin_thread_async_call_test.cc', |
| 1315 'test/plugin/plugin_thread_async_call_test.h', |
| 1316 'test/plugin/plugin_windowed_test.cc', |
| 1317 'test/plugin/plugin_windowed_test.h', |
| 1318 'test/plugin/plugin_private_test.cc', |
| 1319 'test/plugin/plugin_private_test.h', |
| 1320 'test/plugin/plugin_test_factory.cc', |
| 1321 'test/plugin/plugin_window_size_test.cc', |
| 1322 'test/plugin/plugin_window_size_test.h', |
| 1323 'test/plugin/plugin_windowless_test.cc', |
| 1324 'test/plugin/plugin_windowless_test.h', |
| 1325 'test/plugin/resource.h', |
| 1326 ], |
| 1327 'include_dirs': [ |
| 1328 '../..', |
| 1329 ], |
| 1330 'xcode_settings': { |
| 1331 'INFOPLIST_FILE': '<(DEPTH)/content/test/plugin/Info.plist', |
| 1332 }, |
| 1333 'conditions': [ |
| 1334 ['OS!="win"', { |
| 1335 'sources!': [ |
| 1336 # TODO(port): Port these. |
| 1337 # plugin_npobject_lifetime_test.cc has win32-isms |
| 1338 # (HWND, CALLBACK). |
| 1339 'test/plugin/plugin_npobject_lifetime_test.cc', |
| 1340 # The window APIs are necessarily platform-specific. |
| 1341 'test/plugin/plugin_window_size_test.cc', |
| 1342 'test/plugin/plugin_windowed_test.cc', |
| 1343 # Seems windows specific. |
| 1344 'test/plugin/plugin_create_instance_in_paint.cc', |
| 1345 'test/plugin/plugin_create_instance_in_paint.h', |
| 1346 # windows-specific resources |
| 1347 'test/plugin/npapi_test.def', |
| 1348 'test/plugin/npapi_test.rc', |
| 1349 ], |
| 1350 }], |
| 1351 ['OS=="mac"', { |
| 1352 'product_extension': 'plugin', |
| 1353 'link_settings': { |
| 1354 'libraries': [ |
| 1355 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 1356 ], |
| 1357 }, |
| 1358 }], |
| 1359 ['os_posix == 1 and OS != "mac" and (target_arch == "x64" or target_
arch == "arm")', { |
| 1360 # Shared libraries need -fPIC on x86-64 |
| 1361 'cflags': ['-fPIC'] |
| 1362 }], |
| 1363 ], |
| 1364 }, |
| 1365 { |
| 1366 'target_name': 'copy_npapi_test_plugin', |
| 1367 'type': 'none', |
| 1368 'dependencies': [ |
| 1369 'npapi_test_plugin', |
| 1370 ], |
| 1371 'conditions': [ |
| 1372 ['OS=="win"', { |
| 1373 'copies': [ |
| 1374 { |
| 1375 'destination': '<(PRODUCT_DIR)/plugins', |
| 1376 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'], |
| 1377 }, |
| 1378 ], |
| 1379 }], |
| 1380 ['OS=="mac"', { |
| 1381 'copies': [ |
| 1382 { |
| 1383 'destination': '<(PRODUCT_DIR)/plugins/', |
| 1384 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'], |
| 1385 }, |
| 1386 ] |
| 1387 }], |
| 1388 ['os_posix == 1 and OS != "mac"', { |
| 1389 'copies': [ |
| 1390 { |
| 1391 'destination': '<(PRODUCT_DIR)/plugins', |
| 1392 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'], |
| 1393 }, |
| 1394 ], |
| 1395 }], |
| 1396 ], |
| 1397 }, |
| 1398 ], |
| 1399 }], |
1256 ], | 1400 ], |
1257 } | 1401 } |
OLD | NEW |