Currently when the build executes it copies things like .so files and the vulkan .icd file to the CMAKE_CURRENT_SOURCE_DIR/out/<platform> directory. This is fine in a normal swiftshader build but if you embed swiftshader into another project this ends up being something like: third_party/swiftshader/out/<platform> which is not what is desired. This CL changes the files to get written to the CMAKE_BINARY_DIR. This means it will go into the directory form which cmake was run. This means for a build setup as per the README, build/<platform>. This also allows generating different .icd and .so files for Release and Debug if you setup different build directories. Bug: b/123752208 Change-Id: If2e8c70ca2d35351c02f7bbe56ff77a04d538373 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27188 Presubmit-Ready: Ben Clayton <bclayton@google.com> Tested-by:Ben Clayton <bclayton@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .vscode | Loading commit data... | |
| build | Loading commit data... | |
| docs | Loading commit data... | |
| extensions | Loading commit data... | |
| include | Loading commit data... | |
| kokoro | Loading commit data... | |
| src | Loading commit data... | |
| tests | Loading commit data... | |
| third_party | Loading commit data... | |
| .dir-locals.el | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .gitmodules | Loading commit data... | |
| .travis.yml | Loading commit data... | |
| AUTHORS.txt | Loading commit data... | |
| Android.bp | Loading commit data... | |
| Android.mk | Loading commit data... | |
| BUILD.gn | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| CONTRIBUTING.txt | Loading commit data... | |
| CONTRIBUTORS.txt | Loading commit data... | |
| LICENSE.txt | Loading commit data... | |
| OWNERS | Loading commit data... | |
| README.md | Loading commit data... | |
| SwiftShader.sln | Loading commit data... |