|
@@ -1,24 +1,26 @@
|
|
|
package("gn")
|
|
|
|
|
|
+ set_kind("binary")
|
|
|
set_homepage("https://gn.googlesource.com/gn")
|
|
|
set_description("GN is a meta-build system that generates build files for Ninja.")
|
|
|
- set_kind("binary")
|
|
|
|
|
|
if is_host("windows") then
|
|
|
if os.arch() == "x64" then
|
|
|
- add_urls("https://github.com/xmake-mirror/gn-releases/raw/v$(version)/gn-windows-amd64.zip")
|
|
|
- add_versions("20201128", "1cf7fbda62a585925391cc551053e0c6313a9c5aabc02c3c20c138c0ea6bc2bf")
|
|
|
+ add_urls("https://github.com/xmake-mirror/gn-releases/releases/download/v$(version)/gn-windows-amd64.zip")
|
|
|
+ add_versions("20211117", "517cdbfc1cbcc349d92781cd88ea34fb294b2a7f7b24c10678582eee587ee5b6")
|
|
|
end
|
|
|
elseif is_host("linux") then
|
|
|
- add_urls("https://github.com/xmake-mirror/gn-releases/raw/v$(version)/gn-linux-amd64.zip")
|
|
|
- add_versions("20201128", "756d6a88adcb157bd80eb4cea10df9e77fa1e7a328c67858b4c0cd0ab15c9f6e")
|
|
|
+ if os.arch() == "x86_64" then
|
|
|
+ add_urls("https://github.com/xmake-mirror/gn-releases/releases/download/v$(version)/gn-linux-amd64.zip")
|
|
|
+ add_versions("20211117", "6cc2da268a8402c0ac4f933fb06e8ac656a2450e5a4b645586b0b6a8b3e2944f")
|
|
|
+ end
|
|
|
elseif is_host("macosx") then
|
|
|
if os.arch() == "arm64" then
|
|
|
- add_urls("https://github.com/xmake-mirror/gn-releases/raw/v$(version)/gn-mac-arm64.zip")
|
|
|
- add_versions("20201128", "be0be7cc48ced8124f1da53fe3c571cefa6390ccd7f531144e3dffd4b51e1138")
|
|
|
+ add_urls("https://github.com/xmake-mirror/gn-releases/releases/download/v$(version)/gn-mac-arm64.zip")
|
|
|
+ add_versions("20211117", "5954adcaaf6ed69ab4c5270897ea389ce94d0584c709040257428f8604400211")
|
|
|
else
|
|
|
- add_urls("https://github.com/xmake-mirror/gn-releases/raw/v$(version)/gn-mac-amd64.zip")
|
|
|
- add_versions("20201128", "34dc4171ec89cf7839c8ada4fec80860109b4af936688a3bfe9373c464667573")
|
|
|
+ add_urls("https://github.com/xmake-mirror/gn-releases/releases/download/v$(version)/gn-mac-amd64.zip")
|
|
|
+ add_versions("20211117", "025d9d60da03e080603a78c94a885d5c864c859248a877b2684d808aa5987c86")
|
|
|
end
|
|
|
end
|
|
|
|