source: project/http/http.setup @ 5902

Last change on this file since 5902 was 5902, checked in by Kon Lovett, 12 years ago

.html not part of distro

File size: 1.4 KB
Line 
1(define has-exports? (string>=? (chicken-version) "2.310"))
2
3(define libs
4  (if (eq? (build-platform) 'msvc)
5      "-lws2_32"
6      "") )
7
8(make (("http-client.so" ("http-client.scm")
9        (run (csc -s -O2 -d1
10              ,@(if has-exports? '(-check-imports -emit-exports http-client.exports) '())
11              http-client.scm ,libs)))
12       ("http-server.so" ("http-server.scm")
13        (run (csc -s -O2 -d1
14              ,@(if has-exports? '(-check-imports -emit-exports http-server.exports) '())
15              http-server.scm)))
16       ("http-utils.so" ("http-utils.scm")
17        (run (csc -s -O2 -d1
18               ,@(if has-exports? '(-check-imports -emit-exports http-utils.exports) '())
19               http-utils.scm))) )
20  '#("http-client.so" "http-server.so" "http-utils.so") )
21
22(install-extension
23 'http
24 '()
25 '((version 1.55)
26   (documentation "http.html") ) )
27
28(install-extension
29 'http-client
30 '("http-client.so")
31 `((version 1.55)
32         ,@(if has-exports? `((exports "http-client.exports")) '())
33   (documentation "http.html") ) )
34
35(install-extension
36 'http-server
37 '("http-server.so")
38 `((version 1.55)
39         ,@(if has-exports? `((exports "http-server.exports")) '())
40   (documentation "http.html") ) )
41
42(install-extension
43 'http-utils
44 '("http-utils.so")
45 `((version 1.55)
46         ,@(if has-exports? `((exports "http-utils.exports")) '())
47   (documentation "http.html") ) )
Note: See TracBrowser for help on using the repository browser.