equal
deleted
inserted
replaced
482 |
482 |
483 pymodules = [] |
483 pymodules = [] |
484 |
484 |
485 common_depends = ['mercurial/util.h'] |
485 common_depends = ['mercurial/util.h'] |
486 |
486 |
|
487 osutil_ldflags = [] |
|
488 |
|
489 if sys.platform == 'darwin': |
|
490 osutil_ldflags += ['-framework', 'ApplicationServices'] |
|
491 |
487 extmodules = [ |
492 extmodules = [ |
488 Extension('mercurial.base85', ['mercurial/base85.c'], |
493 Extension('mercurial.base85', ['mercurial/base85.c'], |
489 depends=common_depends), |
494 depends=common_depends), |
490 Extension('mercurial.bdiff', ['mercurial/bdiff.c'], |
495 Extension('mercurial.bdiff', ['mercurial/bdiff.c'], |
491 depends=common_depends), |
496 depends=common_depends), |
497 'mercurial/manifest.c', |
502 'mercurial/manifest.c', |
498 'mercurial/parsers.c', |
503 'mercurial/parsers.c', |
499 'mercurial/pathencode.c'], |
504 'mercurial/pathencode.c'], |
500 depends=common_depends), |
505 depends=common_depends), |
501 ] |
506 ] |
502 |
|
503 osutil_ldflags = [] |
|
504 |
|
505 if sys.platform == 'darwin': |
|
506 osutil_ldflags += ['-framework', 'ApplicationServices'] |
|
507 |
507 |
508 extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'], |
508 extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'], |
509 extra_link_args=osutil_ldflags, |
509 extra_link_args=osutil_ldflags, |
510 depends=common_depends)) |
510 depends=common_depends)) |
511 |
511 |