mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
edd57d380d
- Fixes the IPC bug - Fixes the terminfo bug - Moves the OSX SDK out of our nixcrpkgs fork. - Vendor nixcrpkgs instead of having it be a submodule.
32 lines
703 B
Bash
32 lines
703 B
Bash
source $setup
|
|
|
|
cp --no-preserve=mode -r $src/usb/usbview .
|
|
|
|
cd usbview
|
|
rm usbschema.hpp xmlhelper.cpp
|
|
for patch in $patches; do
|
|
echo applying patch $patch
|
|
patch -p1 -i $patch
|
|
done
|
|
cp $my_xmlhelper_c .
|
|
cd ..
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
$host-windres ../usbview/uvcview.rc rc.o
|
|
|
|
# TODO: after fixing bug with selectany in GCC, remove -DINITGUID
|
|
|
|
$host-gcc -mwindows -std=gnu99 -O2 \
|
|
-Iinclude \
|
|
-DNTDDI_VERSION=0x06020000 -D_WIN32_WINNT=0x0602 \
|
|
-DSTRSAFE_NO_DEPRECATE -Doffsetof=__builtin_offsetof \
|
|
../usbview/*.c rc.o \
|
|
-lcomctl32 -lcomdlg32 -lsetupapi -lshell32 -lshlwapi -lole32 -lgdi32 \
|
|
-o usbview.exe
|
|
|
|
mkdir -p $out/bin $out/license
|
|
cp usbview.exe $out/bin
|
|
cp $src/LICENSE $out/license
|