Skip to content

Commit

Permalink
Add MSVC-docker Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mephi42 committed Aug 18, 2022
1 parent 99fc163 commit 2d2ad3e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
iidfile
32 changes: 32 additions & 0 deletions Makefile.MSVC-docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.PHONY: all
all: bin/dwarfexport64.dll

deps/libdwarf/configure:
git clone https://github.com/davea42/libdwarf-code.git deps/libdwarf
cd deps/libdwarf && git checkout 988618dc8be8

deps/libelf-0.8.13/configure:
curl https://fossies.org/linux/misc/old/libelf-0.8.13.tar.gz | \
tar -C deps -xz

deps/msvc-wine/Dockerfile:
git clone https://github.com/mstorsjo/msvc-wine.git deps/msvc-wine
cd deps/msvc-wine && git checkout 34d9736591b6

iidfile: deps/msvc-wine/Dockerfile
docker build --iidfile=$@ deps/msvc-wine

bin/dwarfexport64.dll: \
deps/libdwarf/configure \
deps/libelf-0.8.13/configure \
iidfile
docker run \
--interactive \
--tty \
--rm \
--volume="$(PWD):$(PWD)" \
--volume="$(IDA_PATH)":/ida \
--volume="$(IDASDK_PATH)":/idasdk \
--workdir="$(PWD)" \
$(shell cat iidfile) \
bash -c 'export PATH=/opt/msvc/bin/x64:$$PATH && exec nmake /f Makefile.MSVC IDA_PATH=z:\\ida IDASDK_PATH=z:\\idasdk PLATFORM=x64'

0 comments on commit 2d2ad3e

Please sign in to comment.