Added vcxproj_files.txt to MXE "make dist"
authorClifford Wolf <clifford@clifford.at>
Fri, 17 Oct 2014 14:00:28 +0000 (16:00 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 17 Oct 2014 14:05:00 +0000 (16:05 +0200)
Makefile

index c500e655ec72bcda72706223e7aacf65e872b08b..5fa871d49b53d7c0b4b7cc4762630622953de28a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -324,12 +324,14 @@ ifeq ($(ENABLE_ABC),1)
 endif
        echo -en 'This is Yosys $(YOSYS_VER) for Win32.\r\n' > yosys-win32-$(YOSYS_VER)/readme.txt
        echo -en 'Documentation at http://www.clifford.at/yosys/.\r\n' >> yosys-win32-$(YOSYS_VER)/readme.txt
-       find backends frontends kernel libs passes techlibs -name '*.d' | xargs
-       sed -e 's,^[^ ]*:,,; s, ,\n,g; s, *\\,,; s,/[^/]*/\.\./,/,g; s,'"$$PWD/"',,' $(addsuffix .d,$(basename $(OBJS))) \
-                       | sort -u | sed '/^[^/]/ ! d; s,$$,\r,;' > srcfiles.txt
-       zip yosys-win32-$(YOSYS_VER)/genfiles.zip $(GENFILES) srcfiles.txt
+       sed -e 's,^[^ ]*:,,; s, ,\n,g; s, *\\,,; s,/[^/]*/\.\./,/,g; s,'"$$PWD/"',,' \
+                       $(addsuffix .d,$(basename $(OBJS))) | sort -u | grep '^[^/]' > srcfiles.txt
+       { egrep '\.(h|hh|hpp|inc)$$' srcfiles.txt | sed 's,.*,<ClInclude Include="../yosys/&" />,'; echo; \
+               egrep -v '\.(h|hh|hpp|inc)$$' srcfiles.txt | sed 's,.*,<ClCompile Include="../yosys/&" />,'; } > vcxproj_files.txt
+       sed -i 's/$$/\r/' srcfiles.txt vcxproj_files.txt
+       zip yosys-win32-$(YOSYS_VER)/genfiles.zip $(GENFILES) srcfiles.txt vcxproj_files.txt
        zip -r yosys-win32-$(YOSYS_VER).zip yosys-win32-$(YOSYS_VER)/
-       rm -f srcfiles.txt
+       rm -f srcfiles.txt vcxproj_files.txt
 endif
 
 config-clean: clean