-
Notifications
You must be signed in to change notification settings - Fork 196
/
Deps.cmake
executable file
·84 lines (73 loc) · 2.5 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)
set(ARCHITECTURE "x64")
if (PORT MATCHES "UltralightLinux")
set(PLATFORM "linux")
elseif (PORT MATCHES "UltralightMac")
set(PLATFORM "mac")
elseif (PORT MATCHES "UltralightWin")
if (CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
set(PLATFORM "win-uwp")
else ()
set(PLATFORM "win")
endif ()
endif ()
set(ULTRALIGHTCORE_REV "41a04e01")
set(WEBCORE_REV "e9fa2251")
set(ULTRALIGHT_REV "561bd7be")
set(APPCORE_REV "5f88113")
set(ULTRALIGHTCORE_DIR "${CMAKE_CURRENT_BINARY_DIR}/deps/UltralightCore/")
set(WEBCORE_DIR "${CMAKE_CURRENT_BINARY_DIR}/deps/WebCore/")
set(ULTRALIGHT_DIR "${CMAKE_CURRENT_BINARY_DIR}/deps/Ultralight/")
set(APPCORE_DIR "${CMAKE_CURRENT_BINARY_DIR}/deps/AppCore/")
set(ULTRALIGHTCORE_BUCKET "ultralightcore-bin")
set(WEBCORE_BUCKET "webcore-bin")
set(ULTRALIGHT_BUCKET "ultralight-bin")
set(APPCORE_BUCKET "appcore-bin")
if(${GET_DBG_DEPS})
set(WEBCORE_BUCKET "webcore-bin-dbg")
set(APPCORE_BUCKET "appcore-bin-dbg")
endif ()
set(S3_DOMAIN ".sfo2.cdn.digitaloceanspaces.com")
if(${USE_LOCAL_DEPS})
add_custom_target(UltralightCoreBin)
add_custom_target(WebCoreBin)
add_custom_target(UltralightBin)
add_custom_target(AppCoreBin)
else()
ExternalProject_Add(UltralightCoreBin
URL https://${ULTRALIGHTCORE_BUCKET}${S3_DOMAIN}/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_BUCKET}${S3_DOMAIN}/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_BUCKET}${S3_DOMAIN}/ultralight-bin-${ULTRALIGHT_REV}-${PLATFORM}-${ARCHITECTURE}.7z
SOURCE_DIR "${ULTRALIGHT_DIR}"
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
if (PLATFORM MATCHES "win-uwp")
add_custom_target(AppCoreBin)
else ()
ExternalProject_Add(AppCoreBin
URL https://${APPCORE_BUCKET}${S3_DOMAIN}/appcore-bin-${APPCORE_REV}-${PLATFORM}-${ARCHITECTURE}.7z
SOURCE_DIR "${APPCORE_DIR}"
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
endif ()
endif()