Commit 9db8df4c by Nico Weber Committed by Commit Bot

Slightly simplify .def file use.

From `gn help sources`: As a special case, a file ending in ".def" will be treated as a Windows module definition file. It will be appended to the link line with a preceding "/DEF:" string. This makes the code slightly shorter, and also gives ninja a chance of re-running the link when the .def file changes since it now knows about this file. No intended behavior change. Change-Id: I5fecb22752508880b726482f7c3da5a75180e446 Reviewed-on: https://chromium-review.googlesource.com/c/1396499Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org>
parent e4109f27
......@@ -680,8 +680,7 @@ shared_library("libGLESv2${angle_libs_suffix}") {
}
if (is_win) {
ldflags = [ "/DEF:" + rebase_path("src/libGLESv2/libGLESv2_autogen.def",
root_build_dir) ]
sources += [ "src/libGLESv2/libGLESv2_autogen.def" ]
}
if (is_mac && !is_component_build) {
......@@ -830,7 +829,7 @@ shared_library("libEGL${angle_libs_suffix}") {
}
if (is_win) {
ldflags = [ "/DEF:" + rebase_path("src/libEGL/libEGL.def", root_build_dir) ]
sources += [ "src/libEGL/libEGL.def" ]
}
if (is_mac && !is_component_build) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment