diff options
author | Pete Batard <pbatard@gmail.com> | 2010-09-20 23:51:39 +0100 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-09-20 23:51:39 +0100 |
commit | 46c16ccbf7957e39b3e2322ff9c633418e906b69 (patch) | |
tree | 69fd2790b2fcc44193b117a2996039a92f39f43f /autogen.sh | |
parent | 6a3c5a6fa427395371ef792815d17e061b309bb1 (diff) | |
download | libusb-46c16ccbf7957e39b3e2322ff9c633418e906b69.tar.gz |
fixed .def generation broken by previous commitpbr303
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -6,7 +6,8 @@ create_def() echo "rebuidling libusb-1.0.def file" echo "LIBRARY" > libusb/libusb-1.0.def echo "EXPORTS" >> libusb/libusb-1.0.def - sed -n -e "s/.*API_EXPORTED.*\([[:blank:]]\)\(.*\)(.*/ \2/p" libusb/*.c >> libusb/libusb-1.0.def + sed -n -e "s/.*API_EXPORTED.*\([[:blank:]]\)\(libusb.*\)(.*/ \2/p" libusb/*.c >> libusb/libusb-1.0.def + sed -n -e "s/.*LIBUSB_CALL.*\([[:blank:]]\)\(libusb.*\)(.*/ \2/p" libusb/*.c >> libusb/libusb-1.0.def # We need to manually define a whole set of DLL aliases if we want the MS # DLLs to be usable with dynamically linked MinGW executables. This is # because it is not possible to avoid the @ decoration from import WINAPI @@ -15,7 +16,8 @@ create_def() # Currently, the maximum size is 32 and all sizes are multiples of 4 for i in 4 8 12 16 20 24 28 32 do - sed -n -e "s/.*API_EXPORTED.*\([[:blank:]]\)\(.*\)(.*/ \2@$i = \2/p" libusb/*.c >> libusb/libusb-1.0.def + sed -n -e "s/.*API_EXPORTED.*\([[:blank:]]\)\(libusb.*\)(.*/ \2@$i = \2/p" libusb/*.c >> libusb/libusb-1.0.def + sed -n -e "s/.*LIBUSB_CALL.*\([[:blank:]]\)\(libusb.*\)(.*/ \2@$i = \2/p" libusb/*.c >> libusb/libusb-1.0.def done } |