(isThirdParty)
| 61 | main(); |
| 62 | |
| 63 | function getChromiumSrcPath(isThirdParty) { |
| 64 | if (isThirdParty) { |
| 65 | // Assume we're in `chromium/src/third_party/devtools-frontend/src`. |
| 66 | return path.resolve(CURRENT_PATH, '..', '..', '..'); |
| 67 | } |
| 68 | // Assume we're in `devtools/devtools-frontend`, where `devtools` is |
| 69 | // on the same level as `chromium`. |
| 70 | const srcPath = path.resolve(CURRENT_PATH, '..', '..', 'chromium', 'src'); |
| 71 | if (!isDir(srcPath)) { |
| 72 | throw new Error( |
| 73 | `Chromium source directory not found at \`${srcPath}\`. ` + |
| 74 | 'Either move your standalone `devtools/devtools-frontend` checkout ' + |
| 75 | 'so that `devtools` is at the same level as `chromium` in ' + |
| 76 | '`chromium/src`, or use `--chromium-path`.', |
| 77 | ); |
| 78 | } |
| 79 | return srcPath; |
| 80 | } |
| 81 | |
| 82 | function getContentShellBinaryPath(dirPath) { |
| 83 | if (process.platform === 'linux') { |
no test coverage detected