Skip to content

Commit

Permalink
Minor Fixes for Windows GN build.
Browse files Browse the repository at this point in the history
TBR=scottmg

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277272 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
brettw@chromium.org committed Jun 14, 2014
1 parent d05c993 commit 886323c
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 10 deletions.
3 changes: 1 addition & 2 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ group("root") {
"//content",
"//crypto",
"//extensions/common/api:extensions_api",
"//dbus",
"//device/usb",
"//gin",
"//gpu",
Expand Down Expand Up @@ -104,6 +103,7 @@ group("root") {

if (is_linux) {
deps += [
"//dbus",
"//third_party/fontconfig",
"//third_party/freetype2",
]
Expand Down Expand Up @@ -131,7 +131,6 @@ group("root") {
deps -= [
"//cc",
"//content",
"//dbus",
"//extensions/common/api:extensions_api",
"//pdf", # Not compiled on Android in GYP yet, either.
"//ppapi:ppapi_c",
Expand Down
11 changes: 10 additions & 1 deletion content/browser/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ source_set("browser") {
if (use_x11) {
configs += [ "//build/config/linux:x11" ]
} else {
sources -= [ "renderer_host/web_input_event_aurax11.cc" ]
sources -= [
"power_save_blocker_x11.cc",
"renderer_host/web_input_event_aurax11.cc",
]
}

if (use_pango) {
Expand Down Expand Up @@ -339,6 +342,12 @@ source_set("browser") {
sources += rebase_path(
content_browser_gypi_values.compositor_browser_sources,
".", "//content")
if (!use_x11) {
sources -= [
"compositor/software_output_device_x11.cc",
"compositor/software_output_device_x11.h",
]
}
deps += [ "//ui/compositor" ]
}

Expand Down
1 change: 1 addition & 0 deletions content/ppapi_plugin/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ source_set("ppapi_plugin") {
"//content:export",
"//mojo/public/interfaces/service_provider",
"//ppapi:ppapi_ipc",
"//skia",
"//third_party/icu",
#"//third_party/WebKit/public:blink", TODO(GYP)
# TODO(GYP) remove this when blink is enabled:
Expand Down
2 changes: 1 addition & 1 deletion courgette/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ test("courgette_unittests") {

if (is_win) {
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
cflags += [ "/wd4267" ]
cflags = [ "/wd4267" ]
}

deps = [
Expand Down
19 changes: 14 additions & 5 deletions third_party/yasm/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ if (current_toolchain == host_toolchain) {
"source/config/$os/libyasm-stdint.h",
]
defines = [ "HAVE_CONFIG_H" ]
cflags = [ "-std=gnu99" ]
if (is_posix) {
cflags = [ "-std=gnu99" ]
}
}

executable("genmacro") {
Expand Down Expand Up @@ -122,7 +124,9 @@ if (current_toolchain == host_toolchain) {
"//build/config/compiler:no_chromium_code" ]

# re2c is missing CLOSEVOP from one switch.
cflags = [ "-Wno-switch" ]
if (is_posix) {
cflags = [ "-Wno-switch" ]
}
}

executable("yasm") {
Expand Down Expand Up @@ -218,9 +222,13 @@ if (current_toolchain == host_toolchain) {
# directory, but the gen_x86_insn.py script does not make this easy.
include_dirs = [ yasm_gen_include_dir ]

cflags = [ "-ansi", "-pedantic" ]
if (is_clang) {
cflags += [ "-Wno-incompatible-pointer-types" ]
if (is_win) {
cflags = [ "/wd4267" ] # size_t to int conversion.
} else {
cflags = [ "-ansi", "-pedantic" ]
if (is_clang) {
cflags += [ "-Wno-incompatible-pointer-types" ]
}
}

# TODO(ajwong): This should take most of the generated output as
Expand All @@ -230,6 +238,7 @@ if (current_toolchain == host_toolchain) {
":compile_gperf_for_include",
":compile_nasm_macros",
":compile_nasm_version",
":compile_re2c_lc3b",
":compile_win64_gas",
":compile_win64_nasm",
":compile_re2c",
Expand Down
2 changes: 2 additions & 0 deletions tools/gn/secondary/third_party/angle/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ if (is_win) {
"src/libGLESv2/Float16ToFloat32.cpp",
"src/libGLESv2/Framebuffer.cpp",
"src/libGLESv2/Framebuffer.h",
"src/libGLESv2/FramebufferAttachment.cpp",
"src/libGLESv2/FramebufferAttachment.h",
"src/libGLESv2/HandleAllocator.cpp",
"src/libGLESv2/HandleAllocator.h",
"src/libGLESv2/Program.cpp",
Expand Down
2 changes: 1 addition & 1 deletion tools/gn/secondary/third_party/nss/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ if (is_linux) {
"nss/lib/freebl/dsa.c",
"nss/lib/freebl/ec.c",
"nss/lib/freebl/ec.h",
"nss/lib/freebl/ecdecode.c",
"nss/lib/freebl/ecl/ec2.h",
"nss/lib/freebl/ecl/ecl-curve.h",
"nss/lib/freebl/ecl/ecl-exp.h",
Expand Down Expand Up @@ -722,7 +723,6 @@ if (is_linux) {
"nss/lib/smime/cmsreclist.h",
"nss/lib/smime/cmst.h",
"nss/lib/smime/smime.h",
"nss/lib/softoken/ecdecode.c",
"nss/lib/softoken/fipsaudt.c",
"nss/lib/softoken/fipstest.c",
"nss/lib/softoken/fipstokn.c",
Expand Down

0 comments on commit 886323c

Please sign in to comment.