Use prebuilt binaries.
()
| 269 | |
| 270 | |
| 271 | def prebuilt_cef(): |
| 272 | """Use prebuilt binaries.""" |
| 273 | |
| 274 | # TODO: Option to download CEF prebuilt binaries from GitHub Releases, |
| 275 | # eg. tag 'upstream-cef47'. |
| 276 | |
| 277 | # Find cef_binary directory in the build directory |
| 278 | postfix2 = CEF_POSTFIX2 |
| 279 | if Options.x86: |
| 280 | postfix2 = get_cef_postfix2_for_arch("32bit") |
| 281 | if Options.cef_version: |
| 282 | cef_binary = os.path.join(Options.build_dir, |
| 283 | "cef_binary_{cef_version}_{os}{sep}" |
| 284 | .format(cef_version=Options.cef_version, |
| 285 | os=postfix2, |
| 286 | sep=os.sep)) |
| 287 | else: |
| 288 | cef_binary = os.path.join(Options.build_dir, |
| 289 | "cef_binary_3.{cef_branch}.*_{os}{sep}" |
| 290 | .format(cef_branch=Options.cef_branch, |
| 291 | os=postfix2, |
| 292 | sep=os.sep)) |
| 293 | dirs = glob.glob(cef_binary) |
| 294 | if len(dirs) == 1: |
| 295 | Options.cef_binary = dirs[0] |
| 296 | else: |
| 297 | print("ERROR: Could not find prebuilt binaries in the build dir:") |
| 298 | print(" {cef_binary}".format(cef_binary=cef_binary)) |
| 299 | sys.exit(1) |
| 300 | |
| 301 | build_cef_projects() |
| 302 | create_prebuilt_binaries() |
| 303 | |
| 304 | |
| 305 | def create_cef_directories(): |
no test coverage detected