Skip to content

Commit

Permalink
Merge pull request #4362 from offline3/export_marco_to_qtcreator
Browse files Browse the repository at this point in the history
export define marco to qtcreator.config
  • Loading branch information
mmicko authored May 21, 2024
2 parents 24f9329 + f1672b2 commit 1790370
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -999,11 +999,12 @@ coverage:
genhtml coverage.info --output-directory coverage_html

qtcreator:
echo "$(CXXFLAGS)" | grep -o '\-D[^ ]*' | tr ' ' '\n' | sed 's/-D/#define /' | sed 's/=/ /'> qtcreator.config
{ for file in $(basename $(OBJS)); do \
for prefix in cc y l; do if [ -f $${file}.$${prefix} ]; then echo $$file.$${prefix}; fi; done \
done; find backends frontends kernel libs passes -type f \( -name '*.h' -o -name '*.hh' \); } > qtcreator.files
{ echo .; find backends frontends kernel libs passes -type f \( -name '*.h' -o -name '*.hh' \) -printf '%h\n' | sort -u; } > qtcreator.includes
touch qtcreator.config qtcreator.creator
touch qtcreator.creator

vcxsrc: $(GENFILES) $(EXTRA_TARGETS)
rm -rf yosys-win32-vcxsrc-$(YOSYS_VER){,.zip}
Expand Down

0 comments on commit 1790370

Please sign in to comment.