This commit is contained in:
Taku Kudo 2018-08-09 18:26:00 +09:00
Родитель ad967d7e10
Коммит 86c6faf717
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -40,7 +40,7 @@ def cmd(line):
# See: https://github.com/neulab/xnmt/issues/199
def cflags():
if sys.platform == 'win32':
return ['/MT', '/I..\\build\\root\\x64\\include']
return ['/MT', '/I..\\build\\root\\include']
args = ['-std=c++11']
if sys.platform == 'darwin':
args.append('-mmacosx-version-min=10.9')
@ -49,9 +49,9 @@ def cflags():
def libs():
if sys.platform == 'win32':
return ['..\\build\\root\\x64\\lib\\sentencepiece.lib',
'..\\build\\root\\x64\\lib\\sentencepiece_train.lib',
'..\\build\\root\\x64\\lib\\libprotobuf.lib']
return ['..\\build\\root\\lib\\sentencepiece.lib',
'..\\build\\root\\lib\\sentencepiece_train.lib',
'..\\build\\root\\lib\\libprotobuf.lib']
return cmd('pkg-config sentencepiece --libs')

Просмотреть файл

@ -6,7 +6,7 @@ if "%PLATFORM%"=="x64" set PLATFORM_PREFIX=-x64
set _CL_=/utf-8
set PATH=c:\Program Files\Git\usr\bin;c:\MinGW\bin;%PATH%
set CURRENT_PATH=%~dp0
set LIBRARY_PATH=%CURRENT_PATH%build\root\%PLATFORM%
set LIBRARY_PATH=%CURRENT_PATH%build\root
mkdir build
cd build
@ -24,7 +24,7 @@ ctest -C Release
cmake --build . --config Release --target install
cd ..\python
call :BuildPython C:\Python27%PLATFORM_PREFIX%
rem call :BuildPython C:\Python27%PLATFORM_PREFIX%
call :BuildPython C:\Python35%PLATFORM_PREFIX%
call :BuildPython C:\Python36%PLATFORM_PREFIX%
call :BuildPython C:\Python37%PLATFORM_PREFIX%