xpra icon
Bug tracker and wiki

Changeset 732 in xpra


Ignore:
Timestamp:
04/18/12 09:19:12 (3 years ago)
Author:
antoine
Message:

allow us to disable vpx and/or x264 using command line arguments: "--without-x264" and "--without-vpx"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/setup.py

    r724 r732  
    204204                ))
    205205x264_ENABLED = True
     206vpx_ENABLED = True
     207filtered_args = []
     208for arg in sys.argv:
     209    if arg == "--without-x264":
     210        x264_ENABLED = False
     211    elif arg == "--without-vpx":
     212        vpx_ENABLED = False
     213    else:
     214        filtered_args.append(arg)
     215sys.argv = filtered_args
     216
    206217if x264_ENABLED:
    207218    packages.append("xpra.x264")
     
    210221                **pkgconfig("x264", "libswscale", "libavcodec")
    211222                ))
    212 vpx_ENABLED = True
    213223if vpx_ENABLED:
    214224    packages.append("xpra.vpx")
     
    217227                **pkgconfig("vpx", "libswscale", "libavcodec")
    218228                ))
    219 
    220229
    221230
Note: See TracChangeset for help on using the changeset viewer.