Skip to content

Commit

Permalink
Added missing frameworks on MacOs for vertex routine fuzzer
Browse files Browse the repository at this point in the history
Moved MacOS specific frameworks from swiftshader_libGLESv2 to
swiftshader_libGLESv2_static to make sure the static version
also links properly.

Bug chromium:905648

Change-Id: I7736009abc378d634313028eb51aa0bb221c6419
Reviewed-on: https://swiftshader-review.googlesource.com/c/22608
Tested-by: Alexis Hétu <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
  • Loading branch information
sugoi1 committed Nov 15, 2018
1 parent 3fc6893 commit 8f20452
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/OpenGL/libGLESv2/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ swiftshader_static_library("swiftshader_libGLESv2_static") {
"utilities.cpp",
]

if (is_mac) {
libs = [
"CoreFoundation.framework",
"IOSurface.framework",
]
}

configs = [ ":swiftshader_libGLESv2_private_config" ]

include_dirs = [
Expand Down Expand Up @@ -118,10 +125,6 @@ swiftshader_shared_library("swiftshader_libGLESv2") {
if (is_win) {
ldflags = [ "/DEF:" + rebase_path("libGLESv2.def", root_build_dir) ]
} else if (is_mac) {
libs = [
"CoreFoundation.framework",
"IOSurface.framework",
]
ldflags = [ "-Wl,-install_name,@rpath/libswiftshader_libGLESv2.dylib" ]
} else if (is_linux) {
ldflags =
Expand Down

0 comments on commit 8f20452

Please sign in to comment.