1 CPPSHARP_DIR = CppSharp
3 CPPSHARP_REFS = -r:$(CPPSHARP_DIR)/CppSharp.dll \
4 -r:$(CPPSHARP_DIR)/CppSharp.AST.dll \
5 -r:$(CPPSHARP_DIR)/CppSharp.Parser.CSharp.dll \
6 -r:$(CPPSHARP_DIR)/CppSharp.Generator.dll
10 MONO_OPTIONS_SRC = $(SRC_ROOT)/mono/mcs/class/Mono.Options/Mono.Options/Options.cs
13 @if [ ! -d $(CPPSHARP_DIR) ]; then \
14 git clone git@github.com:xamarin/CppSharpBinaries.git $(CPPSHARP_DIR); \
18 MonoAotOffsetsDumper.exe: .stamp-clone MonoAotOffsetsDumper.cs $(MONO_OPTIONS_SRC)
19 mcs MonoAotOffsetsDumper.cs /debug /nowarn:0436 $(MONO_OPTIONS_SRC) $(CPPSHARP_REFS)
23 rm MonoAotOffsetsDumper.exe
25 dump: MonoAotOffsetsDumper.exe
26 MONO_PATH=$(CPPSHARP_DIR) mono MonoAotOffsetsDumper.exe
29 @if [ -f object-offsets.h ]; then rm object-offsets.h; fi;
31 echo "Processing $$f.."; \
32 echo "#include \"$$f\"" >> object-offsets1.h; \
34 @cp *.h ../mono/metadata
37 $(CPPSHARP_DIR)/premake5 vs2012
39 all: MonoAotOffsetsDumper.exe