forked from ultralight-ux/AppCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Deps.cmake
54 lines (48 loc) · 1.61 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
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 "6efe6ec0")
set(WEBCORE_REV "285d81b8")
set(ULTRALIGHT_REV "ccf75c87")
set(ULTRALIGHTCORE_DIR "${CMAKE_SOURCE_DIR}/deps/UltralightCore/")
set(WEBCORE_DIR "${CMAKE_SOURCE_DIR}/deps/WebCore/")
set(ULTRALIGHT_DIR "${CMAKE_SOURCE_DIR}/deps/Ultralight/")
if(${USE_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 ()