setup.py
changeset 36704 430fdb717549
parent 36636 c6061cadb400
child 36713 5f41e3418407
equal deleted inserted replaced
36703:c420792217c8 36704:430fdb717549
   845         osutil_cflags.append('-DHAVE_%s' % macro)
   845         osutil_cflags.append('-DHAVE_%s' % macro)
   846 
   846 
   847 if sys.platform == 'darwin':
   847 if sys.platform == 'darwin':
   848     osutil_ldflags += ['-framework', 'ApplicationServices']
   848     osutil_ldflags += ['-framework', 'ApplicationServices']
   849 
   849 
       
   850 xdiff_srcs = [
       
   851     'mercurial/thirdparty/xdiff/xdiffi.c',
       
   852     'mercurial/thirdparty/xdiff/xemit.c',
       
   853     'mercurial/thirdparty/xdiff/xmerge.c',
       
   854     'mercurial/thirdparty/xdiff/xprepare.c',
       
   855     'mercurial/thirdparty/xdiff/xutils.c',
       
   856 ]
       
   857 
       
   858 xdiff_headers = [
       
   859     'mercurial/thirdparty/xdiff/xdiff.h',
       
   860     'mercurial/thirdparty/xdiff/xdiffi.h',
       
   861     'mercurial/thirdparty/xdiff/xemit.h',
       
   862     'mercurial/thirdparty/xdiff/xinclude.h',
       
   863     'mercurial/thirdparty/xdiff/xmacros.h',
       
   864     'mercurial/thirdparty/xdiff/xprepare.h',
       
   865     'mercurial/thirdparty/xdiff/xtypes.h',
       
   866     'mercurial/thirdparty/xdiff/xutils.h',
       
   867 ]
       
   868 
   850 extmodules = [
   869 extmodules = [
   851     Extension('mercurial.cext.base85', ['mercurial/cext/base85.c'],
   870     Extension('mercurial.cext.base85', ['mercurial/cext/base85.c'],
   852               include_dirs=common_include_dirs,
   871               include_dirs=common_include_dirs,
   853               depends=common_depends),
   872               depends=common_depends),
   854     Extension('mercurial.cext.bdiff', ['mercurial/bdiff.c',
   873     Extension('mercurial.cext.bdiff', ['mercurial/bdiff.c',
   855                                        'mercurial/cext/bdiff.c'],
   874                                        'mercurial/cext/bdiff.c'] + xdiff_srcs,
   856               include_dirs=common_include_dirs,
   875               include_dirs=common_include_dirs,
   857               depends=common_depends + ['mercurial/bdiff.h']),
   876               depends=common_depends + ['mercurial/bdiff.h'] + xdiff_headers),
   858     Extension('mercurial.cext.diffhelpers', ['mercurial/cext/diffhelpers.c'],
   877     Extension('mercurial.cext.diffhelpers', ['mercurial/cext/diffhelpers.c'],
   859               include_dirs=common_include_dirs,
   878               include_dirs=common_include_dirs,
   860               depends=common_depends),
   879               depends=common_depends),
   861     Extension('mercurial.cext.mpatch', ['mercurial/mpatch.c',
   880     Extension('mercurial.cext.mpatch', ['mercurial/mpatch.c',
   862                                         'mercurial/cext/mpatch.c'],
   881                                         'mercurial/cext/mpatch.c'],