summaryrefslogtreecommitdiff
path: root/packages/komodo/antara-gaming-sdk.scm
blob: 956cdb24a9091c8dc1084ee18f16d95d446bb420 (about) (plain)
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
(define-module (antara-gaming-sdk)
  #:use-module (gnu packages llvm)
  #:use-module (guix build-system cmake)
  #:use-module (guix git-download)
  #:use-module ((guix licenses)
		#:prefix license:)
  #:use-module (guix packages))

;;; BOTTOM LAYER

(define antara-gaming-sdk-configure-flags
  '(list "-DFETCHCONTENT_FULLY_DISCONNECTED=ON"
	 "-Wno-dev"))

(define antara-gaming-sdk-github
  "https://github.com/KomodoPlatform/antara-gaming-sdk")

(define antara-gaming-sdk-hash
  (content-hash "12jqg0y92y86lm0516k06x81zrargfgvby10kxmhj1vaxkf71ig6"))

(define antara-gaming-sdk-version "1.1.0-alpha")

;;; ABSTRACTION LAYER -1

(define antara-gaming-sdk-git-reference
  (git-reference (url antara-gaming-sdk-github)
		 (commit antara-gaming-sdk-version)))

;;; ABSTRACTION LAYER 0

(define antara-gaming-sdk-arguments
  (list #:configure-flags antara-gaming-sdk-configure-flags))

(define antara-gaming-sdk-origin
  (origin (uri antara-gaming-sdk-git-reference)
	  (method git-fetch)
	  (hash antara-gaming-sdk-hash)))

;;; SURFACE LAYER

(define antara-gaming-sdk-blueprint
  (package (name "antara-gaming-sdk-blueprint")
	   (version antara-gaming-sdk-version)
	   (source antara-gaming-sdk-origin)
	   (build-system cmake-build-system)
	   (arguments antara-gaming-sdk-arguments)
	   (synopsis "Komodo Gaming Software Development Kit")
	   (description "Komodo Gaming Software Development Kit")
	   (license license:cc-by-sa4.0)
	   (home-page antara-gaming-sdk-github)))

(define antara-gaming-sdk/clang-toolchain
  (package-with-c-toolchain antara-gaming-sdk-blueprint
			    `(("clang-toolchain" ,clang-toolchain-17))))

(define-public antara-gaming-sdk
  (package (inherit antara-gaming-sdk/clang-toolchain)
	   (name "antara-gaming-sdk")))