Commit 42d64617 by Tom Anderson Committed by Thomas Anderson

Move libvk_swiftshader.lds from sources to inputs

Needed to fix this build error with ToT gn: https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8911014495686240880/+/steps/analyze/0/stdout Gn does not know how to add a "*.lds" file in sources, and adding "libvk_swiftshader.lds" to sources does not have any effect on the generated ninja files. With ToT gn, this becomes an error. This CL changes the file to be added to inputs, which will cause the target to get relinked when the file changes. BUG=chromium:964411 R=capn Change-Id: Ib931f3ec886f06ad53cdc3b89d78e973e6b0aae3 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/32628Tested-by: 's avatarThomas Anderson <thomasanderson@chromium.org> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 85035be3
......@@ -78,6 +78,9 @@ swiftshader_shared_library("swiftshader_libEGL") {
if (use_x11) {
sources += [ "../../Main/libX11.cpp" ]
}
inputs = [
"libEGL.lds",
]
ldflags =
[ "-Wl,--version-script=" + rebase_path("libEGL.lds", root_build_dir) ]
}
......
......@@ -127,6 +127,9 @@ swiftshader_shared_library("swiftshader_libGLESv2") {
if (is_mac) {
ldflags = [ "-Wl,-install_name,@rpath/libswiftshader_libGLESv2.dylib" ]
} else if (is_linux) {
inputs = [
"libGLESv2.lds",
]
ldflags = [ "-Wl,--version-script=" +
rebase_path("libGLESv2.lds", root_build_dir) ]
}
......
......@@ -99,7 +99,6 @@ swiftshader_shared_library("swiftshader_libvulkan") {
"VulkanPlatform.h",
"libVulkan.cpp",
"libvk_swiftshader.def",
"libvk_swiftshader.lds",
"main.cpp",
"resource.h",
]
......@@ -109,8 +108,10 @@ swiftshader_shared_library("swiftshader_libvulkan") {
output_name = "libvulkan"
output_dir = "$root_out_dir/swiftshader"
if (is_linux)
{
if (is_linux) {
inputs = [
"libvk_swiftshader.lds",
]
ldflags = [ "-Wl,--version-script=" +
rebase_path("libvk_swiftshader.lds", root_build_dir) ]
}
......
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