mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
hg: build cstore on Windows
Summary: This is not conditional on Posix now! Differential Revision: D7555762 fbshipit-source-id: 63976ea24f28fbe3f84140a3246afa159af650b0
This commit is contained in:
parent
546943a322
commit
2c984a6b29
53
setup.py
53
setup.py
@ -1019,35 +1019,36 @@ extmodules = [
|
||||
]),
|
||||
Extension('hgext.fsmonitor.pywatchman.bser',
|
||||
['hgext/fsmonitor/pywatchman/bser.c']),
|
||||
Extension('hgext.extlib.cstore',
|
||||
sources=[
|
||||
'hgext/extlib/cstore/datapackstore.cpp',
|
||||
'hgext/extlib/cstore/deltachain.cpp',
|
||||
'hgext/extlib/cstore/py-cstore.cpp',
|
||||
'hgext/extlib/cstore/pythonutil.cpp',
|
||||
'hgext/extlib/cstore/pythondatastore.cpp',
|
||||
'hgext/extlib/cstore/uniondatapackstore.cpp',
|
||||
'hgext/extlib/ctreemanifest/manifest.cpp',
|
||||
'hgext/extlib/ctreemanifest/manifest_entry.cpp',
|
||||
'hgext/extlib/ctreemanifest/manifest_fetcher.cpp',
|
||||
'hgext/extlib/ctreemanifest/manifest_ptr.cpp',
|
||||
'hgext/extlib/ctreemanifest/treemanifest.cpp',
|
||||
],
|
||||
include_dirs=include_dirs,
|
||||
library_dirs=[
|
||||
'build/' + distutils_dir_name('lib'),
|
||||
] + library_dirs,
|
||||
libraries=[
|
||||
'datapack',
|
||||
'lz4',
|
||||
'mpatch',
|
||||
SHA1_LIBRARY,
|
||||
],
|
||||
extra_compile_args=filter(None, [STDCPP0X, WALL] + cflags),
|
||||
),
|
||||
]
|
||||
|
||||
if not iswindows:
|
||||
extmodules += [
|
||||
Extension('hgext.extlib.cstore',
|
||||
sources=[
|
||||
'hgext/extlib/cstore/datapackstore.cpp',
|
||||
'hgext/extlib/cstore/deltachain.cpp',
|
||||
'hgext/extlib/cstore/py-cstore.cpp',
|
||||
'hgext/extlib/cstore/pythonutil.cpp',
|
||||
'hgext/extlib/cstore/pythondatastore.cpp',
|
||||
'hgext/extlib/cstore/uniondatapackstore.cpp',
|
||||
'hgext/extlib/ctreemanifest/manifest.cpp',
|
||||
'hgext/extlib/ctreemanifest/manifest_entry.cpp',
|
||||
'hgext/extlib/ctreemanifest/manifest_fetcher.cpp',
|
||||
'hgext/extlib/ctreemanifest/manifest_ptr.cpp',
|
||||
'hgext/extlib/ctreemanifest/treemanifest.cpp',
|
||||
],
|
||||
include_dirs=include_dirs,
|
||||
library_dirs=[
|
||||
'build/' + distutils_dir_name('lib'),
|
||||
] + library_dirs,
|
||||
libraries=[
|
||||
'datapack',
|
||||
'lz4',
|
||||
'mpatch',
|
||||
SHA1_LIBRARY,
|
||||
],
|
||||
extra_compile_args=filter(None, [STDCPP0X, WALL] + cflags),
|
||||
),
|
||||
Extension('hgext.extlib.cfastmanifest',
|
||||
sources=['hgext/extlib/cfastmanifest.c',
|
||||
'hgext/extlib/cfastmanifest/bsearch.c',
|
||||
|
Loading…
Reference in New Issue
Block a user