Commit ce53376a authored by Ghislain MARY's avatar Ghislain MARY

Add prepare.py option to enable build with all codecs.

parent 937c4c86
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment