forked from OSSInnovation/mindspore
add gitee repo for third_party download
This commit is contained in:
parent
36a8013b0a
commit
9c1a0c796b
|
@ -15,11 +15,19 @@ endif()
|
|||
|
||||
set(tiff_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
|
||||
if (ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/libtiff/repository/archive/v4.1.0.tar.gz")
|
||||
set(MD5 "76b951159c8bdf47dba4803659c232d1")
|
||||
else()
|
||||
set(REQ_URL "https://gitlab.com/libtiff/libtiff/-/archive/v4.1.0/libtiff-v4.1.0.tar.gz")
|
||||
set(MD5 "21de8d35c1b21ac82663fa9f56d3350d")
|
||||
endif ()
|
||||
|
||||
mindspore_add_pkg(tiff
|
||||
VER 4.1.0
|
||||
LIBS tiff
|
||||
URL https://gitlab.com/libtiff/libtiff/-/archive/v4.1.0/libtiff-v4.1.0.tar.gz
|
||||
MD5 21de8d35c1b21ac82663fa9f56d3350d
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -Djbig=OFF -Dlzma=OFF -Djpeg12=OFF -Dzstd=OFF -Dpixarlog=OFF
|
||||
-Dold-jpeg=OFF -Dwebp=OFF -DBUILD_SHARED_LIBS=OFF)
|
||||
message("tiff include = ${tiff_INC}")
|
||||
|
|
|
@ -1,12 +1,21 @@
|
|||
if (ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/sentencepiece/repository/archive/v0.1.92.tar.gz")
|
||||
set(MD5 "618f5590c99884866c01cb773096c523")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/google/sentencepiece/archive/v0.1.92.tar.gz")
|
||||
set(MD5 "5dfd2241914b5598a68b2a8542ed8e91")
|
||||
endif ()
|
||||
|
||||
|
||||
if (WIN32)
|
||||
set(sentencepiece_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -Wno-stringop-overflow -Wno-format-extra-args -Wno-format")
|
||||
set(sentencepiece_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
mindspore_add_pkg(sentencepiece
|
||||
VER 0.1.92
|
||||
LIBS sentencepiece sentencepiece_train
|
||||
URL https://github.com/google/sentencepiece/archive/v0.1.92.tar.gz
|
||||
URL ${REQ_URL}
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -DSPM_USE_BUILTIN_PROTOBUF=ON
|
||||
MD5 5dfd2241914b5598a68b2a8542ed8e91
|
||||
MD5 ${MD5}
|
||||
)
|
||||
else ()
|
||||
set(sentencepiece_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -Wno-sign-compare")
|
||||
|
@ -14,9 +23,9 @@ else ()
|
|||
mindspore_add_pkg(sentencepiece
|
||||
VER 0.1.92
|
||||
LIBS sentencepiece sentencepiece_train
|
||||
URL https://github.com/google/sentencepiece/archive/v0.1.92.tar.gz
|
||||
URL ${REQ_URL}
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -DSPM_USE_BUILTIN_PROTOBUF=OFF -DSPM_ENABLE_SHARED=OFF -DPROTOBUF_INC=${protobuf_INC}
|
||||
MD5 5dfd2241914b5598a68b2a8542ed8e91
|
||||
MD5 ${MD5}
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/sentencepiece/sentencepiece.patch001
|
||||
)
|
||||
endif ()
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
if (ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/sqlite/repository/archive/version-3.32.2.tar.gz")
|
||||
set(MD5 "0e085913eba4a8227924545043a08b28")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/sqlite/sqlite/archive/version-3.32.2.tar.gz")
|
||||
set(MD5 "ea6d3b3289b4ac216fb06081a01ef101")
|
||||
endif ()
|
||||
|
||||
|
||||
if (WIN32)
|
||||
mindspore_add_pkg(sqlite
|
||||
VER 3.32.2
|
||||
|
@ -20,8 +29,8 @@ else ()
|
|||
mindspore_add_pkg(sqlite
|
||||
VER 3.32.2
|
||||
LIBS sqlite3
|
||||
URL https://github.com/sqlite/sqlite/archive/version-3.32.2.tar.gz
|
||||
MD5 ea6d3b3289b4ac216fb06081a01ef101
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/sqlite/sqlite.patch001
|
||||
CONFIGURE_COMMAND ./configure --enable-shared=no --disable-tcl --disable-editline --enable-json1)
|
||||
endif ()
|
||||
|
|
Loading…
Reference in New Issue