2

Anyone know of a way to create Visual Studio Projects from a build based on Jamfiles?

I'd settle for a jamfile -> XML-or-some-other-intermediate-format exporter tool, so I could write my own.

BIBD
  • 14,299
  • 24
  • 78
  • 130
Eddie Parker
  • 4,519
  • 2
  • 31
  • 40

3 Answers3

1

This jam distribution has a tool that does that:

http://redmine.jamplex.org/

See here:

http://redmine.jamplex.org/git/jamplus/docs/html/jamtoworkspace.html

Haven't used any of it myself yet, so I'm afraid I can't say anything about how well it works.

0

You might also consider CMake. CMake files are about as easy to write as Jamfiles, and CMake can generate projects for Visual Studio, Xcode, and Unix Makefiles automatically. I used to use Jam for all my Linux projects, but once I discovered CMake, I haven't gone back.

Randall Cook
  • 6,320
  • 4
  • 28
  • 65
  • What CMake has in common with Visual Studio? – Robert.K Apr 23 '13 at 09:22
  • CMake can generate Visual Studio projects (in addition to Xcode and Unix Makefiles) from its project files. If you are developing cross-platform code, it's essentially a cross-platform project system, and much easier to use than maintaining parallel projects on each platform. – Randall Cook Apr 23 '13 at 17:03
  • @Robert.K, why the downvote? According to http://stackoverflow.com/privileges/vote-down, "Use your downvotes whenever you encounter an egregiously sloppy, no-effort-expended post, or an answer that is clearly and perhaps dangerously incorrect." My answer provides an alternative way of generating a Visual Studio project that people might find informative. It may not be the answer the OP was looking for, and perhaps should be a comment instead, but it is not sloppy, lacking effort, or incorrect. – Randall Cook Apr 23 '13 at 18:38
  • I can remove downvote. But still the question was about jamfiles and Visual Studio. I don't find you answer particularly helpful. Why even mention about CMake? What would you say if someone put information about any other tool that exports to Visual Studio project format? – Robert.K Apr 24 '13 at 12:12
  • @Robert.K, I'm sorry you didn't find my answer helpful. I was merely trying to spread information that people interested in converting projects to Visual Studio might find useful. If someone mentioned another tool that exports to Visual Studio, I would thank them for making me a little more informed. – Randall Cook Apr 24 '13 at 18:35
0

JamPlus has a built-in workspace generator that reads a project's Jamfiles and exports an IDE workspace. http://jamplus.org/git/jamplus/docs/html/jamtoworkspace.html

Robert.K
  • 506
  • 5
  • 18