source: proiecte/swift/trunk/lib/hoard-371/src/compile-dll.cmd @ 176

Last change on this file since 176 was 176, checked in by (none), 14 years ago
  • imported repo from "guagal"
File size: 741 bytes
Line 
1@echo off
2echo Building libhoard.dll and libhoard.lib (ignore linker warnings).
3: We need to execute this if we change libhoard.cpp.
4@echo off
5cl /Iheaplayers /Iheaplayers/util /c /Zi /DNDEBUG /MD /Ox /Zp8 /Oy libhoard.cpp
6nm -g libhoard.obj > @@@.@@@ 2>NUL
7grep ' T ?' @@@.@@@ > @@@.@@1 2>NUL
8grep ' T \_' @@@.@@@ > @@@.@@2 2>NUL
9echo EXPORTS > libhoard.def
10sed 's/.* T //' @@@.@@1 | grep -v DllMain >> libhoard.def 2>NUL
11sed 's/.* T \_//' @@@.@@2 | grep -v DllMain >> libhoard.def 2>NUL
12erase @@@.@@@
13erase @@@.@@1
14erase @@@.@@2
15cl /Iheaplayers /Iheaplayers/util /c /MD /DNDEBUG /Ox /Zp8 /Oy libhoard.cpp
16cl /Zi /LD libhoard.obj /o libhoard.dll /Ox /link /def:libhoard.def /force:multiple /subsystem:console /entry:_DllMainCRTStartup@12
17 
Note: See TracBrowser for help on using the repository browser.