OLD | NEW |
1 # | 1 # |
2 # Copyright (C) 2013 Google Inc. All rights reserved. | 2 # Copyright (C) 2013 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 14 matching lines...) Expand all Loading... |
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 # | 29 # |
30 { | 30 { |
31 'includes': [ | 31 'includes': [ |
32 '../build/win/precompile.gypi', | 32 '../build/win/precompile.gypi', |
33 'blink_platform.gypi', | 33 'blink_platform.gypi', |
34 ], | 34 ], |
35 'targets': [{ | 35 'targets': [ |
36 'target_name': 'blink_platform_unittests', | 36 { |
37 'type': 'executable', | 37 'target_name': 'blink_platform_unittests', |
38 'dependencies': [ | 38 'type': 'executable', |
39 '../config.gyp:unittest_config', | 39 'dependencies': [ |
40 '../wtf/wtf.gyp:wtf', | 40 'blink_platform_run_all_tests', |
41 '../wtf/wtf_tests.gyp:run_all_tests', | 41 '../config.gyp:unittest_config', |
42 '../wtf/wtf_tests.gyp:wtf_unittest_helpers', | 42 '../wtf/wtf.gyp:wtf', |
43 'blink_platform.gyp:blink_platform', | 43 '../wtf/wtf_tests.gyp:wtf_unittest_helpers', |
44 'blink_platform.gyp:blink_common', | 44 'blink_platform.gyp:blink_platform', |
45 '<(DEPTH)/skia/skia.gyp:skia', | 45 'blink_platform.gyp:blink_common', |
46 '<(DEPTH)/url/url.gyp:url_lib', | 46 '<(DEPTH)/skia/skia.gyp:skia', |
47 ], | 47 '<(DEPTH)/url/url.gyp:url_lib', |
48 'defines': [ | 48 ], |
49 'INSIDE_BLINK', | 49 'defines': [ |
50 ], | 50 'INSIDE_BLINK', |
51 'include_dirs': [ | 51 ], |
52 '<(SHARED_INTERMEDIATE_DIR)/blink', | 52 'include_dirs': [ |
53 ], | 53 '<(SHARED_INTERMEDIATE_DIR)/blink', |
54 'sources': [ | 54 ], |
55 '<@(platform_test_files)', | 55 'sources': [ |
56 ], | 56 '<@(platform_test_files)', |
57 'conditions': [ | 57 ], |
58 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 | 58 'conditions': [ |
59 ['os_posix==1 and OS!="mac" and OS!="android" and OS!="ios" and ((use_allo
cator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use
_tcmalloc" and linux_use_tcmalloc==1))', { | 59 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
60 'dependencies': [ | 60 ['os_posix==1 and OS!="mac" and OS!="android" and OS!="ios" and ((use_al
locator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_u
se_tcmalloc" and linux_use_tcmalloc==1))', { |
61 '<(DEPTH)/base/base.gyp:base', | 61 'dependencies': [ |
62 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | 62 '<(DEPTH)/base/base.gyp:base', |
63 ] | 63 '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
64 }], | 64 ] |
65 ['OS=="android" and gtest_target_type == "shared_library"', { | 65 }], |
66 'type': 'shared_library', | 66 ['OS=="android" and gtest_target_type == "shared_library"', { |
67 'dependencies': [ | 67 'type': 'shared_library', |
68 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', | 68 'dependencies': [ |
69 '<(DEPTH)/tools/android/forwarder2/forwarder.gyp:forwarder2', | 69 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
70 ], | 70 '<(DEPTH)/tools/android/forwarder2/forwarder.gyp:forwarder2', |
71 }], | 71 ], |
72 ], | 72 }], |
73 }], | 73 ], |
| 74 }, |
| 75 { |
| 76 'target_name': 'blink_platform_run_all_tests', |
| 77 'type': 'static_library', |
| 78 'dependencies': [ |
| 79 '../wtf/wtf.gyp:wtf', |
| 80 '../config.gyp:unittest_config', |
| 81 '<(DEPTH)/base/base.gyp:test_support_base', |
| 82 ], |
| 83 'export_dependent_settings': [ |
| 84 '<(DEPTH)/base/base.gyp:test_support_base', |
| 85 ], |
| 86 'sources': [ |
| 87 'testing/RunAllTests.cpp', |
| 88 ], |
| 89 }, |
| 90 ], |
74 'conditions': [ | 91 'conditions': [ |
75 ['OS=="android" and android_webview_build==0 and gtest_target_type == "share
d_library"', { | 92 ['OS=="android" and android_webview_build==0 and gtest_target_type == "share
d_library"', { |
76 'targets': [{ | 93 'targets': [{ |
77 'target_name': 'blink_platform_unittests_apk', | 94 'target_name': 'blink_platform_unittests_apk', |
78 'type': 'none', | 95 'type': 'none', |
79 'dependencies': [ | 96 'dependencies': [ |
80 '<(DEPTH)/base/base.gyp:base_java', | 97 '<(DEPTH)/base/base.gyp:base_java', |
81 '<(DEPTH)/net/net.gyp:net_java', | 98 '<(DEPTH)/net/net.gyp:net_java', |
82 'blink_platform_unittests', | 99 'blink_platform_unittests', |
83 ], | 100 ], |
84 'variables': { | 101 'variables': { |
85 'test_suite_name': 'blink_platform_unittests', | 102 'test_suite_name': 'blink_platform_unittests', |
86 }, | 103 }, |
87 'includes': [ '../../../../build/apk_test.gypi' ], | 104 'includes': [ '../../../../build/apk_test.gypi' ], |
88 }], | 105 }], |
89 }], | 106 }], |
90 ], | 107 ], |
91 } | 108 } |
OLD | NEW |