Show More
@@ -423,14 +423,21 b" packages = ['mercurial', 'mercurial.hgwe" | |||||
423 |
|
423 | |||
424 | pymodules = [] |
|
424 | pymodules = [] | |
425 |
|
425 | |||
|
426 | common_depends = ['mercurial/util.h'] | |||
|
427 | ||||
426 | extmodules = [ |
|
428 | extmodules = [ | |
427 |
Extension('mercurial.base85', ['mercurial/base85.c'] |
|
429 | Extension('mercurial.base85', ['mercurial/base85.c'], | |
428 | Extension('mercurial.bdiff', ['mercurial/bdiff.c']), |
|
430 | depends=common_depends), | |
429 |
Extension('mercurial.diff |
|
431 | Extension('mercurial.bdiff', ['mercurial/bdiff.c'], | |
430 | Extension('mercurial.mpatch', ['mercurial/mpatch.c']), |
|
432 | depends=common_depends), | |
|
433 | Extension('mercurial.diffhelpers', ['mercurial/diffhelpers.c'], | |||
|
434 | depends=common_depends), | |||
|
435 | Extension('mercurial.mpatch', ['mercurial/mpatch.c'], | |||
|
436 | depends=common_depends), | |||
431 | Extension('mercurial.parsers', ['mercurial/dirs.c', |
|
437 | Extension('mercurial.parsers', ['mercurial/dirs.c', | |
432 | 'mercurial/parsers.c', |
|
438 | 'mercurial/parsers.c', | |
433 |
'mercurial/pathencode.c'] |
|
439 | 'mercurial/pathencode.c'], | |
|
440 | depends=common_depends), | |||
434 | ] |
|
441 | ] | |
435 |
|
442 | |||
436 | osutil_ldflags = [] |
|
443 | osutil_ldflags = [] | |
@@ -443,7 +450,8 b" if sys.platform == 'win32' and sys.versi" | |||||
443 | pymodules.append('mercurial.pure.osutil') |
|
450 | pymodules.append('mercurial.pure.osutil') | |
444 | else: |
|
451 | else: | |
445 | extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'], |
|
452 | extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'], | |
446 |
extra_link_args=osutil_ldflags |
|
453 | extra_link_args=osutil_ldflags, | |
|
454 | depends=common_depends)) | |||
447 |
|
455 | |||
448 | # the -mno-cygwin option has been deprecated for years |
|
456 | # the -mno-cygwin option has been deprecated for years | |
449 | Mingw32CCompiler = cygwinccompiler.Mingw32CCompiler |
|
457 | Mingw32CCompiler = cygwinccompiler.Mingw32CCompiler | |
@@ -467,7 +475,8 b" if sys.platform.startswith('linux') and " | |||||
467 | if hasfunction(cc, 'inotify_add_watch'): |
|
475 | if hasfunction(cc, 'inotify_add_watch'): | |
468 | inotify = Extension('hgext.inotify.linux._inotify', |
|
476 | inotify = Extension('hgext.inotify.linux._inotify', | |
469 | ['hgext/inotify/linux/_inotify.c'], |
|
477 | ['hgext/inotify/linux/_inotify.c'], | |
470 |
['mercurial'] |
|
478 | ['mercurial'], | |
|
479 | depends=common_depends) | |||
471 | inotify.optional = True |
|
480 | inotify.optional = True | |
472 | extmodules.append(inotify) |
|
481 | extmodules.append(inotify) | |
473 | packages.extend(['hgext.inotify', 'hgext.inotify.linux']) |
|
482 | packages.extend(['hgext.inotify', 'hgext.inotify.linux']) |
General Comments 0
You need to be logged in to leave comments.
Login now