mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Add prepare.py option to enable build with all codecs.
This commit is contained in:
parent
937c4c86ea
commit
ce53376aee
1 changed files with 16 additions and 1 deletions
17
prepare.py
17
prepare.py
|
|
@ -164,6 +164,8 @@ def main(argv=None):
|
|||
argv = sys.argv
|
||||
argparser = argparse.ArgumentParser(
|
||||
description="Prepare build of Linphone and its dependencies.")
|
||||
argparser.add_argument(
|
||||
'-ac', '--all-codecs', help="Enable all codecs, including the non-free ones", action='store_true')
|
||||
argparser.add_argument(
|
||||
'-c', '-C', '--clean', help="Clean a previous build instead of preparing a build.", action='store_true')
|
||||
argparser.add_argument(
|
||||
|
|
@ -197,6 +199,9 @@ def main(argv=None):
|
|||
if args.minimal:
|
||||
additional_args += ["-DENABLE_VIDEO=NO",
|
||||
"-DENABLE_MKV=NO",
|
||||
"-DENABLE_AMRNB=NO",
|
||||
"-DENABLE_AMRWB=NO",
|
||||
"-DENABLE_G729=NO",
|
||||
"-DENABLE_GSM=NO",
|
||||
"-DENABLE_ILBC=NO",
|
||||
"-DENABLE_ISAC=NO",
|
||||
|
|
@ -208,6 +213,16 @@ def main(argv=None):
|
|||
"-DENABLE_WASAPI=NO",
|
||||
"-DENABLE_PACKAGING=NO"]
|
||||
|
||||
if args.all_codecs:
|
||||
additional_args += ["-DENABLE_NON_FREE_CODECS=YES",
|
||||
"-DENABLE_AMRNB=YES",
|
||||
"-DENABLE_AMRWB=YES",
|
||||
"-DENABLE_G729=YES",
|
||||
"-DENABLE_H263=YES",
|
||||
"-DENABLE_H263P=YES",
|
||||
"-DENABLE_MPEG4=YES",
|
||||
"-DENABLE_OPENH264=YES"]
|
||||
|
||||
if check_tools() != 0:
|
||||
return 1
|
||||
|
||||
|
|
@ -220,7 +235,7 @@ def main(argv=None):
|
|||
print("Could not clone tunnel. Please see http://www.belledonne-communications.com/voiptunnel.html")
|
||||
return 1
|
||||
print("Tunnel enabled.")
|
||||
additional_args += ["-DENABLE_TUNNEL=ON"]
|
||||
additional_args += ["-DENABLE_TUNNEL=YES"]
|
||||
|
||||
# install_git_hook()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue