Debian Codegraph @

bindings/idl/build_win.bat

raw
1 @ECHO OFF
2 REM Copyright (c) 1988-2006, Research Systems Inc. All rights reserved.
3 REM This software includes information which is proprietary to and a
4 REM trade secret of Research Systems, Inc. It is not to be disclosed
5 REM to anyone outside of this organization. Reproduction by any means
6 REM whatsoever is prohibited without express written permission.
7 REM
8 REM MS Windows batch file to build the NeXusIDL-API DLM.
9 REM
10 REM You may pass the location of the IDL directory to this file on the
11 REM command line: e.g., build_win d:\myidl\idl
12 REM
13 REM You may also edit the default location below.
14
15 SETLOCAL
16
17 IF "%1" == "" GOTO SET_IDLDIR
18 SET IDL_DIR=%1
19 GOTO CONTINUE
20
21 :SET_IDLDIR
22
23 REM Set these directories to point
24
25 SET IDL_DIR=c:\rsi\idl63
26 SET NXS_DIR= "C:\Program Files\NeXus Data Format"
27
28 :CONTINUE
29
30 SET IDL_LIBDIR=%IDL_DIR%\bin\bin.x86
31 SET NXS_LIBDIR=%NXS_DIR%\lib
32
33 IF NOT EXIST %IDL_LIBDIR%\idl.lib GOTO NO_IDL_LIB
34 IF NOT EXIST %IDL_DIR%\external\include/idl_export.h GOTO NO_EXPORT_H
35
36 ECHO ON
37
38 cl -I%IDL_DIR%\external\include -nologo -DWIN32_LEAN_AND_MEAN -DWIN32 -c NeXusIDL-API.c
39 cl -I%IDL_DIR%\external\include -nologo -DWIN32_LEAN_AND_MEAN -DWIN32 -c handle.c
40
41 link /DLL /OUT:NeXusIDL-API.dll /DEF:NeXusIDL-API.def /IMPLIB:NeXusIDL-API.lib NeXusIDL-API.obj handle.obj %IDL_LIBDIR%\idl.lib %NXS_LIBDIR%\libNeXus.dll.lib
42
43
44 @ECHO OFF
45
46 GOTO END
47
48 :NO_IDL_LIB
49 ECHO.
50 ECHO Unable to locate %IDL_LIBDIR%\idl.lib.
51 ECHO.
52 GOTO END
53
54 :NO_EXPORT_H
55 ECHO.
56 ECHO Unable to locate %IDL_DIR%\external\include\idl_export.h.
57 ECHO.
58
59 :END
60
61 ENDLOCAL
62
63