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
3 # found in the LICENSE file.
5 # The list of files is kept in the .gypi.
6 gypi_values = exec_script("//build/gypi_to_gn.py",
7 [ rebase_path("wtf.gypi") ],
11 visibility = "//third_party/WebKit/*"
13 config("wtf_config") {
17 "_CRT_SECURE_NO_DEPRECATE",
18 "_SCL_SECURE_NO_DEPRECATE",
26 # Don't complain about calling specific versions of templatized
27 # functions (e.g. in RefPtrHashMap.h).
29 # Conversion from 'size_t' to 'type'.
31 # dtoa, icu, etc. like doing assignment within conditional.
35 if (component_mode == "shared_library") {
36 # Chromium windows multi-dll build enables C++ exceptions and this causes
37 # wtf to generate 4291 warning due to operator new/delete
38 # implementations. Disable the warning for chromium windows multi-dll
40 cflags += [ "/wd4291" ]
46 sources = gypi_values.wtf_files
49 "//third_party/WebKit/Source:config",
50 "//third_party/WebKit/Source:non_test_config",
53 defines = [ "WTF_IMPLEMENTATION=1" ]
55 direct_dependent_configs = [
57 "//third_party/WebKit/Source:features",
64 forward_dependent_configs_from = [ "//third_party/icu" ]
68 "ThreadIdentifierDataPthreads.cpp",
69 "ThreadIdentifierDataPthreads.h",
70 "ThreadingPthreads.cpp",
74 "/wd4068", # Unknown pragma.
79 "ThreadSpecificWin.cpp",
89 libs = [ "CoreFoundation.framework", "Foundation.framework" ]
92 "text/StringImplCF.cpp",
93 "text/AtomicStringCF.cpp",
99 test("wtf_unittests") {
100 sources = gypi_values.wtf_unittest_files
102 sources += [ "testing/RunAllTests.cpp" ]
106 "/wd4068", # Unknown pragma.
107 "/wd4267", # Conversion from 'size_t' to 'type',
111 configs += [ "//third_party/WebKit/Source:config", ]
118 "//base/test:test_support",
124 component("test_support") {
125 output_name = "wtf_test_support"
126 sources = gypi_values.wtf_unittest_helper_files
127 defines = [ "WTF_UNITTEST_HELPERS_IMPLEMENTATION=1" ]
131 "//third_party/WebKit/Source:config",
132 "//third_party/WebKit/Source:non_test_config",