source: trunk/bindings/idl/build_win.bat @ 1822

Revision 975, 1.5 KB checked in by Mark Koennecke, 4 years ago (diff)
  • First commit of the new IDL binding refs #100
  • Fixed napi5.c bug #98
  • Fixed unreported NX5putslab issue
Line 
1@ECHO OFF
2REM  Copyright (c) 1988-2006, Research Systems Inc.  All rights reserved.
3REM  This software includes information which is proprietary to and a
4REM  trade secret of Research Systems, Inc.  It is not to be disclosed
5REM  to anyone outside of this organization. Reproduction by any means
6REM  whatsoever is  prohibited without express written permission.
7REM
8REM  MS Windows batch file to build the NeXusIDL-API DLM.
9REM
10REM  You may pass the location of the IDL directory to this file on the
11REM  command line: e.g., build_win d:\myidl\idl
12REM
13REM  You may also edit the default location below.
14
15SETLOCAL
16
17IF "%1" == "" GOTO SET_IDLDIR
18SET IDL_DIR=%1
19GOTO CONTINUE
20
21:SET_IDLDIR
22
23REM Set these directories to point
24
25SET IDL_DIR=c:\rsi\idl63
26SET NXS_DIR= "C:\Program Files\NeXus Data Format"
27
28:CONTINUE
29
30SET IDL_LIBDIR=%IDL_DIR%\bin\bin.x86
31SET NXS_LIBDIR=%NXS_DIR%\lib
32
33IF NOT EXIST %IDL_LIBDIR%\idl.lib GOTO NO_IDL_LIB
34IF NOT EXIST %IDL_DIR%\external\include/idl_export.h GOTO NO_EXPORT_H
35
36ECHO ON
37
38cl -I%IDL_DIR%\external\include -nologo -DWIN32_LEAN_AND_MEAN -DWIN32 -c NeXusIDL-API.c
39cl -I%IDL_DIR%\external\include -nologo -DWIN32_LEAN_AND_MEAN -DWIN32 -c handle.c
40
41link /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
46GOTO END
47
48:NO_IDL_LIB
49ECHO.
50ECHO Unable to locate %IDL_LIBDIR%\idl.lib.
51ECHO.
52GOTO END
53
54:NO_EXPORT_H
55ECHO.
56ECHO Unable to locate %IDL_DIR%\external\include\idl_export.h.
57ECHO.
58
59:END
60
61ENDLOCAL
62
63
Note: See TracBrowser for help on using the repository browser.