| 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 # The list of files is kept in the .gypi. | 5 # The list of files is kept in the .gypi. |
| 6 gypi_values = exec_script("//build/gypi_to_gn.py", | 6 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 7 [ rebase_path("wtf.gypi") ], | 7 [ rebase_path("wtf.gypi") ], |
| 8 "scope", | 8 "scope", |
| 9 [ "wtf.gypi" ]) | 9 [ "wtf.gypi" ]) |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 # implementations. Disable the warning for chromium windows multi-dll | 34 # implementations. Disable the warning for chromium windows multi-dll |
| 35 # build. | 35 # build. |
| 36 cflags += [ "/wd4291" ] | 36 cflags += [ "/wd4291" ] |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 component("wtf") { | 41 component("wtf") { |
| 42 sources = gypi_values.wtf_files | 42 sources = gypi_values.wtf_files |
| 43 | 43 |
| 44 configs += [ |
| 45 "//third_party/WebKit/Source:config", |
| 46 "//third_party/WebKit/Source:non_test_config", |
| 47 ] |
| 48 |
| 44 defines = [ "WTF_IMPLEMENTATION=1" ] | 49 defines = [ "WTF_IMPLEMENTATION=1" ] |
| 45 | 50 |
| 46 direct_dependent_configs = [ | 51 direct_dependent_configs = [ |
| 47 ":wtf_config", | 52 ":wtf_config", |
| 48 "//third_party/WebKit/Source:config", | |
| 49 "//third_party/WebKit/Source:features", | 53 "//third_party/WebKit/Source:features", |
| 50 ] | 54 ] |
| 51 | 55 |
| 52 deps = [ | 56 deps = [ |
| 53 "//third_party/icu", | 57 "//third_party/icu", |
| 54 ] | 58 ] |
| 55 | 59 |
| 56 forward_dependent_configs_from = [ "//third_party/icu" ] | 60 forward_dependent_configs_from = [ "//third_party/icu" ] |
| 57 | 61 |
| 58 if (is_win) { | 62 if (is_win) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 test("wtf_unittests") { | 95 test("wtf_unittests") { |
| 92 sources = gypi_values.wtf_unittest_files | 96 sources = gypi_values.wtf_unittest_files |
| 93 | 97 |
| 94 if (is_win) { | 98 if (is_win) { |
| 95 cflags = [ | 99 cflags = [ |
| 96 "/wd4068", # Unknown pragma. | 100 "/wd4068", # Unknown pragma. |
| 97 "/wd4267", # Conversion from 'size_t' to 'type', | 101 "/wd4267", # Conversion from 'size_t' to 'type', |
| 98 ] | 102 ] |
| 99 } | 103 } |
| 100 | 104 |
| 105 configs += [ "//third_party/WebKit/Source:config", ] |
| 106 |
| 101 deps = [ | 107 deps = [ |
| 102 ":run_all_tests", | 108 ":run_all_tests", |
| 103 ":unittest_helpers", | 109 ":unittest_helpers", |
| 104 ":wtf", | 110 ":wtf", |
| 105 "//base", | 111 "//base", |
| 106 "//base/allocator", | 112 "//base/allocator", |
| 107 "//testing/gmock", | 113 "//testing/gmock", |
| 108 "//testing/gtest", | 114 "//testing/gtest", |
| 109 ] | 115 ] |
| 110 } | 116 } |
| 111 | 117 |
| 112 source_set("run_all_tests") { | 118 source_set("run_all_tests") { |
| 113 sources = [ | 119 sources = [ |
| 114 "testing/RunAllTests.cpp", | 120 "testing/RunAllTests.cpp", |
| 115 ] | 121 ] |
| 116 | 122 |
| 117 configs += [ | 123 configs += [ |
| 118 ":wtf_config", | 124 ":wtf_config", |
| 119 "//third_party/WebKit/Source:config", | 125 "//third_party/WebKit/Source:config", |
| 126 "//third_party/WebKit/Source:non_test_config", |
| 120 ] | 127 ] |
| 121 | 128 |
| 122 deps = [ | 129 deps = [ |
| 123 "//base/test:test_support", | 130 "//base/test:test_support", |
| 124 "//testing/gmock", | 131 "//testing/gmock", |
| 125 "//testing/gtest", | 132 "//testing/gtest", |
| 126 ] | 133 ] |
| 127 } | 134 } |
| 128 | 135 |
| 129 component("unittest_helpers") { | 136 component("unittest_helpers") { |
| 130 sources = gypi_values.wtf_unittest_helper_files | 137 sources = gypi_values.wtf_unittest_helper_files |
| 131 defines = [ "WTF_UNITTEST_HELPERS_IMPLEMENTATION=1" ] | 138 defines = [ "WTF_UNITTEST_HELPERS_IMPLEMENTATION=1" ] |
| 132 | 139 |
| 140 configs += [ |
| 141 ":wtf_config", |
| 142 "//third_party/WebKit/Source:config", |
| 143 "//third_party/WebKit/Source:non_test_config", |
| 144 ] |
| 145 |
| 133 deps = [ | 146 deps = [ |
| 134 ":wtf", | 147 ":wtf", |
| 135 ] | 148 ] |
| 136 } | 149 } |
| OLD | NEW |