-
Notifications
You must be signed in to change notification settings - Fork 24
/
Deps.cmake
63 lines (57 loc) · 2.14 KB
/
Deps.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
set(ARCHITECTURE "x64")
else ()
set(ARCHITECTURE "x86")
endif ()
if (PORT MATCHES "UltralightLinux")
set(PLATFORM "linux")
elseif (PORT MATCHES "UltralightMac")
set(PLATFORM "mac")
elseif (PORT MATCHES "UltralightWin")
set(PLATFORM "win")
endif ()
set(ULTRALIGHTCORE_REV "41a04e01")
set(WEBCORE_REV "e9fa2251")
set(ULTRALIGHT_REV "561bd7be")
get_filename_component(ULTRALIGHTCORE_DIR "${CMAKE_CURRENT_LIST_DIR}/deps/UltralightCore" REALPATH)
get_filename_component(WEBCORE_DIR "${CMAKE_CURRENT_LIST_DIR}/deps/WebCore" REALPATH)
get_filename_component(ULTRALIGHT_DIR "${CMAKE_CURRENT_LIST_DIR}/deps/Ultralight" REALPATH)
if (${ALLINONE_BUILD})
message("Using local deps from all-in-one build.")
get_filename_component(ULTRALIGHTCORE_DIR "${CMAKE_INSTALL_PREFIX}" REALPATH)
get_filename_component(WEBCORE_DIR "${CMAKE_INSTALL_PREFIX}" REALPATH)
get_filename_component(ULTRALIGHT_DIR "${CMAKE_INSTALL_PREFIX}" REALPATH)
add_custom_target(UltralightCoreBin)
add_custom_target(WebCoreBin)
add_custom_target(UltralightBin)
elseif(${USE_LOCAL_DEPS})
message("Using local deps.")
add_custom_target(UltralightCoreBin)
add_custom_target(WebCoreBin)
add_custom_target(UltralightBin)
else ()
ExternalProject_Add(UltralightCoreBin
URL https://ultralightcore-bin.sfo2.digitaloceanspaces.com/ultralightcore-bin-${ULTRALIGHTCORE_REV}-${PLATFORM}-${ARCHITECTURE}.7z
SOURCE_DIR "${ULTRALIGHTCORE_DIR}"
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
ExternalProject_Add(WebCoreBin
URL https://webcore-bin.sfo2.digitaloceanspaces.com/webcore-bin-${WEBCORE_REV}-${PLATFORM}-${ARCHITECTURE}.7z
SOURCE_DIR "${WEBCORE_DIR}"
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
ExternalProject_Add(UltralightBin
URL https://ultralight-bin.sfo2.digitaloceanspaces.com/ultralight-bin-${ULTRALIGHT_REV}-${PLATFORM}-${ARCHITECTURE}.7z
SOURCE_DIR "${ULTRALIGHT_DIR}"
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
endif ()