Changeset 729 for soft


Ignore:
Timestamp:
Nov 21, 2015, 2:55:01 PM (8 years ago)
Author:
alain
Message:

Introduce application mjpeg in genmap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_python/genmap

    r673 r729  
    3636# - display
    3737# - gameoflife
     38# - mjpeg
    3839# - ocean
    3940# - raycast
     
    130131                   help = 'map the "gameoflife" application for the GietVM' )
    131132
     133parser.add_option( '--mjpeg', action = 'store_true', dest = 'mjpeg',
     134                   default = False,
     135                   help = 'map the "mjpeg" application for the GietVM' )
     136
    132137parser.add_option( '--ocean', action = 'store_true', dest = 'ocean',     
    133138                   default = False,
     
    185190map_display    = options.display     # map "display" application if True
    186191map_gameoflife = options.gameoflife  # map "gameoflife" application if True
     192map_mjpeg      = options.mjpeg       # map "mjpeg" application if True
    187193map_ocean      = options.ocean       # map "ocean" application if True
    188194map_raycast    = options.raycast     # map "raycast" application if True
     
    244250    print '[genmap] application "gameoflife" will be loaded'
    245251
     252if ( map_mjpeg ):
     253    appli = __import__( 'mjpeg' )
     254    appli.extend( mapping )
     255    print '[genmap] application "mjpeg" will be loaded'
     256
    246257if ( map_ocean ):
    247258    appli = __import__( 'ocean' )
Note: See TracChangeset for help on using the changeset viewer.