()
| 143 | |
| 144 | let vcpkgRoot: string | undefined; |
| 145 | export function getVcpkgRoot(): string { |
| 146 | if (!vcpkgRoot && vcpkgRoot !== "") { |
| 147 | vcpkgRoot = ""; |
| 148 | // Check for vcpkg instance. |
| 149 | if (checkFileExistsSync(getVcpkgPathDescriptorFile())) { |
| 150 | let vcpkgRootTemp: string = fs.readFileSync(getVcpkgPathDescriptorFile()).toString(); |
| 151 | vcpkgRootTemp = vcpkgRootTemp.trim(); |
| 152 | if (checkDirectoryExistsSync(vcpkgRootTemp)) { |
| 153 | vcpkgRoot = path.join(vcpkgRootTemp, "/installed").replace(/\\/g, "/"); |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | return vcpkgRoot; |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * This is a fuzzy determination of whether a uri represents a header file. |
nothing calls this directly
no test coverage detected