forked from k-ujihara/build-rdkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_win.bat
More file actions
43 lines (31 loc) · 671 Bytes
/
build_win.bat
File metadata and controls
43 lines (31 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@where /Q python
@if errorlevel 1 goto :PYTHONERROR
@where /Q swig
@if errorlevel 1 goto :SWIGERROR
goto :GOEXEC
:PYTHONERROR
echo Python is not installed.
exit /b 1
:SWIGERROR
echo SWIG is not installed.
exit /b 1
:GOEXEC
@pushd %~dp0
@where /Q cl
@if errorlevel 1 goto :CL_NOT_FOUND
nmake -f Makefile.win rdkit_native PLATFORM=x86
@if errorlevel 1 goto :ERROREND
nmake -f Makefile.win rdkit_native PLATFORM=x64
@if errorlevel 1 goto :ERROREND
@goto :END
:ERROREND
@echo Something error happened.
goto :ERROREXIT
:CL_NOT_FOUND
@echo cl is not found. Execute 'Developer Command Prompt for VS 2019' first.
goto :ERROREXIT
:ERROREXIT
@popd
exit /b 1
:END
@popd