diff options
| author | Martin Vejdarski <extrulm@gmail.com> | 2020-09-06 04:50:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-05 19:50:30 -0700 |
| commit | f7cd54fcd4d99be697b6cfb3d4edaf08c3412338 (patch) | |
| tree | 7615b9928eed51769b70fdc833628c3bba8c51e5 /scripts | |
| parent | fdac1fc5aa36e8edeb9f358f0fad041de2626215 (diff) | |
| download | vcpkg-f7cd54fcd4d99be697b6cfb3d4edaf08c3412338.tar.gz vcpkg-f7cd54fcd4d99be697b6cfb3d4edaf08c3412338.zip | |
[chromium-base] Add new port (#12396)
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Co-authored-by: Huahua <ihuahua@live.com>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/ci.baseline.txt | 2 | ||||
| -rw-r--r-- | scripts/cmake/vcpkg_find_acquire_program.cmake | 32 |
2 files changed, 34 insertions, 0 deletions
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index e19bcfbb8..58dc39266 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -200,6 +200,8 @@ chipmunk:x64-osx=fail chipmunk:x64-uwp=fail chmlib:arm-uwp=fail chmlib:x64-uwp=fail +# Chromium Base requires a recent version of Clang to be installed. +chromium-base:x64-linux=skip civetweb:arm64-windows = skip civetweb:arm-uwp = skip civetweb:x64-uwp = skip diff --git a/scripts/cmake/vcpkg_find_acquire_program.cmake b/scripts/cmake/vcpkg_find_acquire_program.cmake index 30809e32b..0a6158c77 100644 --- a/scripts/cmake/vcpkg_find_acquire_program.cmake +++ b/scripts/cmake/vcpkg_find_acquire_program.cmake @@ -16,6 +16,7 @@ ## - 7Z ## - ARIA2 (Downloader) ## - BISON +## - CLANG ## - DARK ## - DOXYGEN ## - FLEX @@ -284,6 +285,37 @@ function(vcpkg_find_acquire_program VAR) set(PATHS /usr/local/opt/bison/bin) endif() endif() + elseif(VAR MATCHES "CLANG") + set(PROGNAME clang) + set(SUBDIR "clang-10.0.0") + if(CMAKE_HOST_WIN32) + set(PATHS + # Support LLVM in Visual Studio 2019 + "$ENV{LLVMInstallDir}/x64/bin" + "$ENV{LLVMInstallDir}/bin" + "$ENV{VCINSTALLDIR}/Tools/Llvm/x64/bin" + "$ENV{VCINSTALLDIR}/Tools/Llvm/bin" + "${DOWNLOADS}/tools/${SUBDIR}-windows/bin" + "${DOWNLOADS}/tools/clang/${SUBDIR}/bin") + + if(DEFINED ENV{PROCESSOR_ARCHITEW6432}) + set(HOST_ARCH_ $ENV{PROCESSOR_ARCHITEW6432}) + else() + set(HOST_ARCH_ $ENV{PROCESSOR_ARCHITECTURE}) + endif() + + if(HOST_ARCH_ MATCHES "64") + set(URL "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/LLVM-10.0.0-win64.exe") + set(ARCHIVE "LLVM-10.0.0-win64.7z.exe") + set(HASH 3603a4be3548dabc7dda94f3ed4384daf8a94337e44ee62c0d54776c79f802b0cb98fc106e902409942e841c39bc672cc6d61153737ad1cc386b609ef25db71c) + else() + set(URL "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/LLVM-10.0.0-win32.exe") + set(ARCHIVE "LLVM-10.0.0-win32.7z.exe") + set(HASH 8494922b744ca0dc8d075a1d3a35a0db5a9287544afd5c4984fa328bc26f291209f6030175896b4895019126f5832045e06d8ad48072b549916df29a2228348b) + endif() + endif() + set(BREW_PACKAGE_NAME "llvm") + set(APT_PACKAGE_NAME "clang") elseif(VAR MATCHES "GPERF") set(PROGNAME gperf) set(GPERF_VERSION 3.0.1) |
