• Home
  • Raw
  • Download

Lines Matching +full:configure +full:- +full:args

4 # Use of this source code is governed by a BSD-style license that can be
19 # 2. Apply the patch in src: patch -p1 <../chromium/foo.patch
32 # a. sudo apt-get install libicu-dev
48 # a. third_party/libxml/chromium/roll.py --linux /path/to/libxml2
58 # b. third_party\libxml\chromium\roll.py --win32
63 # b. third_party/libxml/chromium/roll.py --mac --icu4c_path=~/homebrew/opt/icu4c
68 # The --linuxfast argument is an alternative to --linux which also deletes
70 # the end of the --mac run, but if you want to run the roll script and get to
71 # the final state without running the configure scripts on all three platforms,
75 'libxml2-2.9.4-security-xpath-nodetab-uaf.patch',
76 'undo-sax-deprecation.patch',
80 # See libxml2 configure.ac and win32/configure.js to learn what
90 ('--with-html', 'html=yes'),
91 ('--with-icu', 'icu=yes'),
92 ('--with-output', 'output=yes'),
93 ('--with-push', 'push=yes'),
94 ('--with-python', 'python=yes'),
95 ('--with-reader', 'reader=yes'),
96 ('--with-sax1', 'sax1=yes'),
97 ('--with-threads', 'threads=yes'),
98 ('--with-tree', 'tree=yes'),
99 ('--with-writer', 'writer=yes'),
100 ('--with-xpath', 'xpath=yes'),
102 ('--without-c14n', 'c14n=no'),
103 ('--without-catalog', 'catalog=no'),
104 ('--without-debug', 'xml_debug=no'),
105 ('--without-ftp', 'ftp=no'),
106 ('--without-http', 'http=no'),
107 ('--without-iconv', 'iconv=no'),
108 ('--without-iso8859x', 'iso8859x=no'),
109 ('--without-legacy', 'legacy=no'),
110 ('--without-lzma', 'lzma=no'),
111 ('--without-mem-debug', 'mem_debug=no'),
112 ('--without-modules', 'modules=no'),
113 ('--without-pattern', 'pattern=no'),
114 ('--without-regexps', 'regexps=no'),
115 ('--without-schemas', 'schemas=no'),
116 ('--without-schematron', 'schematron=no'),
117 ('--without-valid', 'valid=no'),
118 ('--without-xinclude', 'xinclude=no'),
119 ('--without-xptr', 'xptr=no'),
120 ('--without-xptr-locs', 'xptr_locs=no'),
121 ('--without-zlib', 'zlib=no'),
125 # These options are only available in configure.ac for Linux and Mac.
127 '--without-fexceptions',
128 '--without-minimum',
129 '--without-readline',
130 '--without-history',
134 # These options are only available in win32/configure.js for Windows.
159 'src/README.cvs-commits',
174 'src/configure',
188 'src/install-sh',
214 'src/win32/configure.js',
218 'src/xml2-config.in',
256 def git(*args): argument
263 args: The arguments to pass to git.
265 command = ['git'] + list(args)
288 git('rm', '-rf', '--ignore-unmatch', *files_to_remove)
298 # OS X's sed requires -e
299 subprocess.check_call(['sed', '-i', '-e', program, input_filename])
315 Args:
338 ['git', 'log', '-n', '1', '--pretty=format:%H',
341 'git archive HEAD | tar -x -C "%s"' % temp_src_path,
348 'patch -p1 --fuzz=0 < %s' % os.path.join(
355 subprocess.check_call(['make', 'dist-all'])
360 '''END {printf("%s-%s.tar.xz", p, v)}' Makefile''',
382 'tar xJf %s --strip-components=1' % tar_file,
404 git('commit', '-am', '%s libxml, linux' % commit)
413 # Run the configure script.
416 ['cscript', '//E:jscript', 'configure.js', 'compiler=msvc'] +
425 git('commit', '--allow-empty', '-m', 'Windows')
426 git('clean', '-f')
432 os.environ["LDFLAGS"] = "-L" + os.path.join(icu4c_path, 'lib')
433 os.environ["CPPFLAGS"] = "-I" + os.path.join(icu4c_path, 'include')
440 subprocess.check_call(['autoreconf', '-i', '../src'])
441 os.chmod('../src/configure',
442 os.stat('../src/configure').st_mode | stat.S_IXUSR)
443 subprocess.check_call(['../src/configure'] + XML_CONFIGURE_OPTIONS)
452 git('commit', '-am', commit_message)
459 '-s']).decode('ascii')
473 platform.add_argument('--linux', action='store_true')
474 platform.add_argument('--win32', action='store_true')
475 platform.add_argument('--mac', action='store_true')
476 platform.add_argument('--linuxfast', action='store_true')
483 '--icu4c_path',
485 args = parser.parse_args()
487 if args.linux or args.linuxfast:
488 libxml2_repo_path = args.libxml2_repo_path
493 roll_libxml_linux(src_dir, libxml2_repo_path, args.linuxfast)
494 elif args.win32:
496 elif args.mac:
497 icu4c_path = args.icu4c_path
499 print('Specify the path to the homebrew installation of icu4c with --icu4c_path.')
500 print(' ex: roll.py --mac --icu4c_path=~/homebrew/opt/icu4c')