Replies: 2 comments 2 replies
-
You could pass the runfiles path for the dependency into the test via |
Beta Was this translation helpful? Give feedback.
-
I finally got to work but here some additional notes to get it to work. I still hade to include the file in the cc_test's data attribute even though it was specified in the v8 lib's data attribute. I also aliased it so the alias with selects would resolve the correct platform specific path since you still needed. Without the file listed in the tests data attribute i would get the error expression is not a declared prerequisite of this rule. |
Beta Was this translation helpful? Give feedback.
-
I have a library that needs to include some files via data attribute that are divided into platform specific directories. Only the platform that is being built is include when run and i'd like for it to have a platform neutral name to refernce the real location when using Rlocation.
example in if i include lib/win-64-release/icu.dat it has the platform in the name used to look it up. I'd like to be able to just look it up as lib/icu.dat so the test code doesn't have to worry about what platform path to use.
I have a customzied version of the c++ runfiles that added a wildcard operators so it could just wildcard out the platform specific part but i'd like to drop the customization if there is a way to change the name used to look up the real location from the manifest file.
Beta Was this translation helpful? Give feedback.
All reactions