Skip to content

Commit

Permalink
Fix vk_swiftshader_icd.json not copied in cef_artifcats
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed Dec 6, 2024
1 parent 676fcd7 commit 8391b67
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions addons/gdcef/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,36 +483,34 @@ def copy_cef_assets():
build_path = CEF_ARTIFACTS_BUILD_PATH
mkdir(build_path)

### Get all CEF compiled artifacts needed for your application
### Get all CEF compiled artifacts needed for your application.
### Note: We do not copy the chrome-sandbox since it is not needed for GDCEF.
info("Installing Chromium Embedded Framework to " + build_path + " ...")
locales = os.path.join(build_path, "locales")
mkdir(locales)
if OSTYPE == "Linux":
# cp THIRDPARTY_CEF_PATH/build/tests/cefsimple/*.pak *.dat *.so locales/* build_path
S = os.path.join(THIRDPARTY_CEF_PATH, "build", "tests", "cefsimple", CEF_TARGET)
copyfile(os.path.join(S, "v8_context_snapshot.bin"), build_path)
if OSTYPE == "Linux" or OSTYPE == "Windows":
# gdcef/addons/gdcef/thirdparty/cef_binary/Resources
S = os.path.join(THIRDPARTY_CEF_PATH, "Resources")
copyfile(os.path.join(S, "icudtl.dat"), build_path)
for f in glob.glob(os.path.join(S, "*.pak")):
copyfile(f, build_path)
for f in glob.glob(os.path.join(S, "locales/*")):
copyfile(f, locales)
for f in glob.glob(os.path.join(S, "*.so")):
copyfile(f, build_path)
for f in glob.glob(os.path.join(S, "*.so.*")):
copyfile(f, build_path)
elif OSTYPE == "Windows":
# cp THIRDPARTY_CEF_PATH/Release/*.bin THIRDPARTY_CEF_PATH/Release/*.dll build_path

# Either: gdcef/addons/gdcef/thirdparty/cef_binary/Release
# or: gdcef/addons/gdcef/thirdparty/cef_binary/Debug
S = os.path.join(THIRDPARTY_CEF_PATH, CEF_TARGET)
copyfile(os.path.join(S, "v8_context_snapshot.bin"), build_path)
for f in glob.glob(os.path.join(S, "*.dll")):
copyfile(f, build_path)
# cp THIRDPARTY_CEF_PATH/Resources/*.pak *.dat locales/* build_path
S = os.path.join(THIRDPARTY_CEF_PATH, "Resources")
copyfile(os.path.join(S, "icudtl.dat"), build_path)
for f in glob.glob(os.path.join(S, "*.pak")):
copyfile(os.path.join(S, "vk_swiftshader_icd.json"), build_path)
for f in glob.glob(os.path.join(S, "*snapshot*.bin")):
copyfile(f, build_path)
for f in glob.glob(os.path.join(S, "locales/*")):
copyfile(f, locales)
if OSTYPE == "Linux":
for f in glob.glob(os.path.join(S, "*.so")):
copyfile(f, build_path)
for f in glob.glob(os.path.join(S, "*.so.*")):
copyfile(f, build_path)
else:
for f in glob.glob(os.path.join(S, "*.dll")):
copyfile(f, build_path)
elif OSTYPE == "Darwin":
S = os.path.join(THIRDPARTY_CEF_PATH, "build", "tests", "cefsimple", CEF_TARGET, "cefsimple.app")
shutil.copytree(S, build_path + "/cefsimple.app")
Expand Down

0 comments on commit 8391b67

Please sign in to comment.