Skip to content

Commit

Permalink
gn win: disable cld_2_dynamic_data_tool which doesn't compile on windows
Browse files Browse the repository at this point in the history
R=brettw@chromium.org
BUG=354261

Review URL: https://codereview.chromium.org/429973003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286683 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
scottmg@chromium.org committed Jul 31, 2014
1 parent de49b19 commit 83e1524
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions third_party/cld_2/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -137,24 +137,27 @@ static_library("cld2_dynamic") {
}
}

executable("cld_2_dynamic_data_tool") {
sources = [
"src/internal/cld2_dynamic_data_extractor.h",
"src/internal/cld2_dynamic_data_extractor.cc",
"src/internal/cld2_dynamic_data_tool.cc",
]

include_dirs = [
"src/internal",
"src/public",
]

deps = [ ":cld2_data", ":cld2_dynamic" ]

configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]

if (is_win) {
cflags = [ "/wd4267" ] # size_t -> int conversion.
# Does not build on Windows.
if (!is_win) {
executable("cld_2_dynamic_data_tool") {
sources = [
"src/internal/cld2_dynamic_data_extractor.h",
"src/internal/cld2_dynamic_data_extractor.cc",
"src/internal/cld2_dynamic_data_tool.cc",
]

include_dirs = [
"src/internal",
"src/public",
]

deps = [ ":cld2_data", ":cld2_dynamic" ]

configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]

if (is_win) {
cflags = [ "/wd4267" ] # size_t -> int conversion.
}
}
}

0 comments on commit 83e1524

Please sign in to comment.