How to import a list of git projects into eclipse and custom build them all together?

The product that I am working on contains multiple git projects. I work mostly on only one of them and they are all built together. How can I import all the projects and build them together with a custom build script?