aboutsummaryrefslogtreecommitdiff
path: root/project.janet
blob: 646fc4fde223c2b1c1fa1b9edce6dce0aa327eb4 (plain) (blame)
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
(declare-project
  :name "date"
  :description "C99 date library for Janet"
  :author "Chloe Kudryavtsev <toast@bunkerlabs.net>"
  :license "Unlicense"
  :repo "https://github.com/CosmicToast/janet-date.git"
  :url  "https://github.com/CosmicToast/janet-date.git")

(declare-source
  :source ["date"])

(def tz-source ["tz/localtime.c"
                "tz/asctime.c"
                "tz/difftime.c"
                "tz/strftime.c"])

(declare-native
  :name "date/native"
  :source ["src/main.c"
           "src/polyfill.c"
           "src/time.c"
           "src/tm.c"
           "src/util.c"

           ;(if (= :windows (os/which)) [] tz-source)])