summaryrefslogtreecommitdiff
path: root/etc/import/TARGETS.git2
blob: b712223e785a6d938c384a9d1ccccd559ce4b66d (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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
{ "git2":
  { "type": "export"
  , "target": "libgit2configured"
  , "doc": ["The Git linkable library"]
  , "flexible_config":
    [ "OS"
    , "ARCH"
    , "TARGET_ARCH"
    , "TOOLCHAIN_CONFIG"
    , "DEBUG"
    , "CC"
    , "CFLAGS"
    , "ADD_CFLAGS"
    , "CXX"
    , "CXXFLAGS"
    , "ADD_CXXFLAGS"
    , "AR"
    , "ENV"
    , "USE_SYSTEM_LIBS"
    , "DEBUG_POOL"
    , "USE_THREADS"
    , "REGEX_BACKEND"
    , "WINHTTP"
    , "USE_ICONV"
    , "USE_NSEC"
    , "USE_SSH"
    , "USE_NTLMCLIENT"
    , "USE_GSSAPI"
    , "USE_SHA1"
    , "USE_SHA256"
    , "USE_HTTPS"
    , "USE_HTTP_PARSER"
    , "USE_BUNDLED_ZLIB"
    , "PKG_CONFIG_ARGS"
    ]
  , "config_doc":
    { "REGEX_BACKEND":
      [ "\"regcomp_l\": compile against regcomp_l (always from system)"
      , "\"regcomp\": compile against regcomp (always from system)"
      , "\"pcre\": link against libpcre (from system or open name)"
      , "\"pcre2\": link against libpcre2 (from system or open name)"
      , "\"builtin\"|null: compile and link bundled pcre (./deps/pcre)"
      ]
    , "USE_GSSAPI":
      [ "true: use \"GSS.framework\" for ~OS==\"darwin\"~ or else \"gssapi\""
      , "false: Disable GSS"
      , "\"GSS.framework\": Link against GSS framework (system or open name)"
      , "\"gssapi\": Link against libgssapi (system or open name)"
      ]
    , "USE_HTTPS":
      [ "true: use \"WinHTTP\" if ~WINHTTP~ and ~OS==\"windows\"~"
      , "\"SecureTransport\": link against Security framework (from system or open name)"
      , "\"WinHTTP\": link against Windows' libwinhttp (always from system)"
      , "\"OpenSSL\": link against OpenSSL (from system or open name)"
      , "\"mbedTLS\": link against mbedTLS (from system or open name)"
      , "false|null: Disable HTTPS"
      ]
    , "USE_HTTP_PARSER":
      [ "\"system\": link against libhttp_parser (from system or open name)"
      , "<other>: compile and link bundled http_parser (./deps/http-parser)"
      ]
    , "USE_SHA1":
      [ "true: use \"CollisionDetection\""
      , "\"CollisionDetection\": build with shipped SHA1DC implementation"
      , "\"OpenSSL\": link against OpenSSL compat library (from system or open name)"
      , "\"mbedTLS\": link against mbedTLS (from system or open name)"
      , "\"Win32\": link against Windows' SHA1 implementation (always from system)"
      , "\"CommonCrypto\": build with shipped common_crypto implementation"
      , "\"HTTPS\": inherit from ~USE_HTTPS~, or fall back to \"CollisionDetection\""
      ]
    , "USE_SHA256":
      [ "true: use \"Builtin\""
      , "\"Builtin\": build with shipped RFC 6234 implementation"
      , "\"OpenSSL\": link against OpenSSL compat library (from system or open name)"
      , "\"mbedTLS\": link against mbedTLS (from system or open name)"
      , "\"Win32\": link against Windows' SHA1 implementation (always from system)"
      , "\"CommonCrypto\": build with shipped common_crypto implementation"
      , "\"HTTPS\": inherit from ~USE_HTTPS~, or fall back to \"Builtin\""
      ]
    , "WINHTTP": ["boolean. use \"WinHTTP\" if \"USE_HTTPS\" is true"]
    }
  }
, "libgit2configured":
  { "type": "configure"
  , "arguments_config":
    [ "OS"
    , "ARCH"
    , "TARGET_ARCH"
    , "USE_SYSTEM_LIBS"
    , "DEBUG_POOL"
    , "USE_THREADS"
    , "REGEX_BACKEND"
    , "WINHTTP"
    , "USE_ICONV"
    , "USE_NSEC"
    , "USE_SSH"
    , "USE_NTLMCLIENT"
    , "USE_GSSAPI"
    , "USE_SHA1"
    , "USE_SHA256"
    , "USE_HTTPS"
    , "USE_HTTP_PARSER"
    , "USE_BUNDLED_ZLIB"
    ]
  , "target": ["./", "src", "libgit2"]
  , "config":
    { "type": "let*"
    , "bindings":
      [ [ "check that architecture is set"
        , { "type": "var"
          , "name": "TARGET_ARCH"
          , "default":
            { "type": "var"
            , "name": "ARCH"
            , "default":
              {"type": "fail", "msg": "Required variable 'ARCH' is not set."}
            }
          }
        ]
      , [ "OS"
        , { "type": "var"
          , "name": "OS"
          , "default":
            {"type": "fail", "msg": "Required variable 'OS' is not set."}
          }
        ]
      , [ "USE_THREADS"
        , {"type": "var", "name": "USE_THREADS", "default": true}
        ]
      , ["USE_SSH", {"type": "var", "name": "USE_SSH", "default": true}]
      , ["USE_GSSAPI", {"type": "var", "name": "USE_GSSAPI", "default": true}]
      , ["USE_SHA1", {"type": "var", "name": "USE_SHA1", "default": true}]
      , ["USE_SHA256", {"type": "var", "name": "USE_SHA256", "default": true}]
      , ["USE_HTTPS", {"type": "var", "name": "USE_HTTPS", "default": true}]
      , [ "WINHTTP"
        , { "type": "var"
          , "name": "WINHTTP"
          , "default":
            { "type": "=="
            , "$1": {"type": "var", "name": "OS"}
            , "$2": "windows"
            }
          }
        ]
      , [ "USE_HTTPS"
        , { "type": "case*"
          , "expr": {"type": "var", "name": "USE_HTTPS"}
          , "case":
            [ [ true
              , { "type": "case*"
                , "expr": {"type": "var", "name": "OS"}
                , "case":
                  [ [ "windows"
                    , { "type": "if"
                      , "cond": {"type": "var", "name": "WINHTTP"}
                      , "then": "WinHTTP"
                      , "else": true
                      }
                    ]
                  ]
                , "default": true
                }
              ]
            ]
          , "default": {"type": "var", "name": "USE_HTTPS"}
          }
        ]
      , [ "USE_GSSAPI"
        , { "type": "case*"
          , "expr": {"type": "var", "name": "USE_GSSAPI"}
          , "case":
            [ [ true
              , { "type": "case*"
                , "expr": {"type": "var", "name": "OS"}
                , "case": [["darwin", "GSS.framework"]]
                , "default": "gssapi"
                }
              ]
            ]
          , "default": {"type": "var", "name": "USE_GSSAPI"}
          }
        ]
      , [ "USE_SHA1"
        , { "type": "case*"
          , "expr": {"type": "var", "name": "USE_SHA1"}
          , "case":
            [ [true, "CollisionDetection"]
            , [ "HTTPS"
              , { "type": "case*"
                , "expr": {"type": "var", "name": "USE_HTTPS"}
                , "case":
                  [ ["SecureTransport", "CommonCrypto"]
                  , ["WinHTTP", "Win32"]
                  , [false, "CollisionDetection"]
                  , [null, "CollisionDetection"]
                  ]
                , "default": {"type": "var", "name": "USE_HTTPS"}
                }
              ]
            ]
          , "default": {"type": "var", "name": "USE_SHA1"}
          }
        ]
      , [ "USE_SHA256"
        , { "type": "case*"
          , "expr": {"type": "var", "name": "USE_SHA256"}
          , "case":
            [ [true, "Builtin"]
            , [ "HTTPS"
              , { "type": "case*"
                , "expr": {"type": "var", "name": "USE_HTTPS"}
                , "case":
                  [ ["SecureTransport", "CommonCrypto"]
                  , ["WinHTTP", "Win32"]
                  , [false, "Builtin"]
                  , [null, "Builtin"]
                  ]
                , "default": {"type": "var", "name": "USE_HTTPS"}
                }
              ]
            ]
          , "default": {"type": "var", "name": "USE_SHA256"}
          }
        ]
      ]
    , "body":
      { "type": "env"
      , "vars":
        [ "USE_SYSTEM_LIBS"
        , "DEBUG_POOL"
        , "USE_THREADS"
        , "REGEX_BACKEND"
        , "USE_ICONV"
        , "USE_NSEC"
        , "USE_SSH"
        , "USE_NTLMCLIENT"
        , "USE_GSSAPI"
        , "USE_SHA1"
        , "USE_SHA256"
        , "USE_HTTPS"
        , "USE_HTTP_PARSER"
        , "USE_BUNDLED_ZLIB"
        ]
      }
    }
  }
}