Ignore:
Timestamp:
10/23/13 05:49:54 (8 years ago)
Author:
Ivan Raikov
Message:

9ML-toolkit: improvements to deployment support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/9ML-toolkit/trunk/9ML-toolkit.setup

    r29901 r29946  
    44  (make-pathname #f fn ##sys#load-dynamic-extension))   
    55
    6 (define version "2.0")
     6(define version "2.1")
    77
    88(use make)
     9
    910
    1011(make (
     
    7475       ((dynld-name "9ML-toolkit.import") ("9ML-toolkit.import.scm")
    7576        (compile  -s 9ML-toolkit.import.scm))
    76 
    77        ("9ML-report"
    78         ("NineMLcore.scm" "NineMLreal.scm" "NineMLrandom.scm" "NineMLsignal.scm" "NineMLdiagram.scm"
    79          "report.scm" )
    80         (compile -O -d2 -S report.scm -o 9ML-report ))
    81 
    82        ("9ML-ivp"
    83         ("NineMLcore.scm" "NineMLreal.scm" "NineMLrandom.scm" "NineMLsignal.scm" "NineMLdiagram.scm"
    84          "NineMLivp.scm" 
    85          "ivp.scm" )
    86         (compile -O -d2 -S ivp.scm -o 9ML-ivp ))
    87 
    88        ("9ML-shell"
    89         ("NineMLcore.scm" "NineMLreal.scm" "NineMLrandom.scm" "NineMLsignal.scm" "NineMLdiagram.scm"
    90          "shell.scm" )
    91         (compile -O -d2 -S shell.scm -o 9ML-shell ))
    92 
    93        ("9ML-network"
    94         ("NineMLcore.scm" "NineMLreal.scm" "NineMLrandom.scm" "NineMLsignal.scm" "NineMLdiagram.scm"
    95          "network.scm" )
    96         (compile -O -d2 -S network.scm -o 9ML-network ))
    9777
    9878       )
     
    10787        (dynld-name "9ML-ivp-octave-mlton") (dynld-name "9ML-ivp-octave-mlton.import")
    10888        (dynld-name "9ML-ivp-lib")     (dynld-name "9ML-ivp-lib.import")
    109         "9ML-report" "9ML-ivp" "9ML-shell" "9ML-network" )
     89        )
    11090
    11191  )
     
    222202
    223203
    224 (install-program
    225  '9ML-report
    226  
    227  `("9ML-report" )
    228 
    229   ; Assoc list with properties for the program:
    230   `((version ,version)))
    231 
    232 
    233 (install-program
    234  '9ML-ivp
    235  
    236  `("9ML-ivp" )
    237 
    238   ; Assoc list with properties for the program:
    239   `((version ,version)))
    240 
    241 
    242 (install-program
    243  '9ML-shell
    244  
    245  `("9ML-shell" )
    246 
    247   ; Assoc list with properties for the program:
    248   `((version ,version)))
    249 
    250 (install-program
    251  '9ML-network
    252  
    253  `("9ML-network" )
    254 
    255   ; Assoc list with properties for the program:
    256   `((version ,version)))
    257 
    258 
    259 (include "setup-helper")
     204(if (deployment-mode)
     205
     206    (compile -deploy -uses files -O -d2 report.scm
     207             -o ,(make-pathname (installation-prefix) "bin/9ML-report"))
     208
     209    (begin
     210      (make (
     211             ("9ML-report"
     212              ("NineMLcore.scm" "NineMLreal.scm" "NineMLrandom.scm" "NineMLsignal.scm" "NineMLdiagram.scm"
     213               "report.scm" )
     214              (compile -O -d2 -S report.scm -o 9ML-report ))
     215             )
     216        "9ML-report")
     217
     218      (install-program
     219       '9ML-report
     220       
     221       `("9ML-report" )
     222       
     223       `((version ,version)))
     224      )
     225    )
     226
     227
     228(if (deployment-mode)
     229
     230    (compile -deploy -uses files -O -d2 ivp.scm -verbose
     231             -o ,(make-pathname (installation-prefix) "/bin/9ML-ivp"))
     232
     233    (begin
     234      (make (
     235             
     236             ("9ML-ivp"
     237              ("NineMLcore.scm" "NineMLreal.scm" "NineMLrandom.scm" "NineMLsignal.scm" "NineMLdiagram.scm"
     238               "ivp.scm" )
     239              (compile -O -d2 -S ivp.scm -o 9ML-ivp ))
     240             )
     241        "9ML-ivp")
     242     
     243      (install-program
     244       '9ML-ivp
     245       
     246       `("9ML-ivp" )
     247       
     248       `((version ,version)))
     249      )
     250    )
     251
     252
     253(if (deployment-mode)
     254
     255    (compile -deploy -uses files -O -d2 shell.scm
     256             -o ,(make-pathname (installation-prefix) "/bin/9ML-shell"))
     257
     258    (begin
     259      (make (
     260             ("9ML-shell"
     261              ("NineMLcore.scm" "NineMLreal.scm" "NineMLrandom.scm" "NineMLsignal.scm" "NineMLdiagram.scm"
     262               "shell.scm" )
     263              (compile -O -d2 -S shell.scm -o 9ML-shell ))
     264             )
     265        "9ML-shell")
     266
     267      (install-program
     268       '9ML-shell
     269       
     270       `("9ML-shell" )
     271       
     272       `((version ,version)))
     273      )
     274    )
     275
     276
     277(if (deployment-mode)
     278
     279    (compile -deploy -uses files -O -d2 network.scm
     280             -o ,(make-pathname (installation-prefix) "/bin/9ML-network"))
     281
     282    (begin
     283      (make (
     284             ("9ML-network"
     285              ("NineMLcore.scm" "NineMLreal.scm" "NineMLrandom.scm" "NineMLsignal.scm" "NineMLdiagram.scm"
     286               "network.scm" )
     287              (compile -O -d2 -S network.scm -o 9ML-network ))
     288             )
     289        "9ML-network")
     290
     291      (install-program
     292       '9ML-network
     293       
     294       `("9ML-network" )
     295       
     296       `((version ,version)))
     297      )
     298    )
     299
     300(define (installation-chicken-home)
     301  (if (not (installation-prefix)) (chicken-home)
     302    (make-pathname `(,(installation-prefix) "share") "chicken") ) )
     303
    260304(define SHARED-DIR (installation-chicken-home))
     305
    261306(define 9ML-DIR (make-pathname SHARED-DIR "9ML"))
    262307
     
    271316
    272317(if (not (file-exists? 9ML-DIR))
    273     (create-directory 9ML-DIR))
     318    (create-directory/parents 9ML-DIR))
    274319
    275320
Note: See TracChangeset for help on using the changeset viewer.