summaryrefslogtreecommitdiff
path: root/indra/cmake/CEFPlugin.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-08-09 18:16:17 +0800
committerErik Kundiman <erik@megapahit.org>2024-08-09 18:16:17 +0800
commit8276e835d15c2c6295b00890f9a4765eddac2a0d (patch)
tree6c5654b8bd44958a49afcce47984084b51fb8c38 /indra/cmake/CEFPlugin.cmake
parent7c716d6d516f99628655352a0e679455263924e2 (diff)
Automatically download and install Dullahan
For now it still downloads even though the builder has downloaded the files before. You could temporarily comment out the relevant use_prebuilt_binary calls to skip all the re-downloads and re-installs.
Diffstat (limited to 'indra/cmake/CEFPlugin.cmake')
-rw-r--r--indra/cmake/CEFPlugin.cmake19
1 files changed, 17 insertions, 2 deletions
diff --git a/indra/cmake/CEFPlugin.cmake b/indra/cmake/CEFPlugin.cmake
index 7b0a945bc4..14359b4622 100644
--- a/indra/cmake/CEFPlugin.cmake
+++ b/indra/cmake/CEFPlugin.cmake
@@ -5,8 +5,23 @@ include(Prebuilt)
include_guard()
add_library( ll::cef INTERFACE IMPORTED )
-#use_prebuilt_binary(dullahan)
-target_include_directories( ll::cef SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include ${LIBS_PREBUILT_DIR}/include/cef)
+if (CMAKE_OSX_ARCHITECTURES MATCHES arm64)
+ execute_process(COMMAND curl
+ -O
+ https://megapahit.net/downloads/dullahan-1.14.0.202312131437_118.7.1_g99817d2_chromium-118.0.5993.119-darwin64-242070244.tar.bz2
+ WORKING_DIRECTORY $ENV{HOME}/Downloads
+ )
+ execute_process(COMMAND tar
+ xf
+ $ENV{HOME}/Downloads/dullahan-1.14.0.202312131437_118.7.1_g99817d2_chromium-118.0.5993.119-darwin64-242070244.tar.bz2
+ WORKING_DIRECTORY ${AUTOBUILD_INSTALL_DIR}
+ RESULT_VARIABLE dullahan_installed
+ )
+else ()
+use_prebuilt_binary(dullahan)
+endif ()
+
+target_include_directories( ll::cef SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/cef)
if (WINDOWS)
target_link_libraries( ll::cef INTERFACE