Author Topic: Project Importer plugin patch  (Read 10505 times)

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Project Importer plugin patch
« on: November 25, 2010, 09:56:09 pm »
Hello,

I have bad news and good news.
The bad news:
   1 - the project importer plugin does not correctly imports workspace dependencies between projects for MSVC > version 6
   2 - the additionnal include directories are not imported as well.

The good news:
I have corrected these 2 problems in the patch attached.

I have tested it with MSVC8 projects & workspaces files from OpenCascade

Sebastien

PS: this plugin is VERY useful ! Since many open sources projects have VC project files, it is much faster than MSYS ./configure & make, and more convenient too. And for your information, it works better for importing MSVC 6 project files than the newest Visual Studio...
PS2: I plan to extend its functionnality to MSVC 10 projects & workspaces


Offline reckless

  • Regular
  • ***
  • Posts: 353
Re: Project Importer plugin patch
« Reply #1 on: November 26, 2010, 01:28:18 am »
noticed it had some problems importing all the dependencies from VC projects so good job :).

MSVC10 support would indeed be nice to have in also.

if i can help let me know but im no super coder (especially not in c++).

mostly doing hobby work porting gnu utilities to windows and managing my own port of a quake engine (uses cb btw) which is also the reason why c++ newer caught onto me (quake uses c and asm).


Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: Project Importer plugin patch
« Reply #2 on: November 26, 2010, 06:11:19 pm »
I have started MSVC10 support.
Here is the second patch.

Warning: the MSVC10 is not completed yet. It is more a "stub" than anything else (it recognizes configurations and create appropriate targets. I still have to parse all the rest...)

It is not really difficult: it is XML format, and straightforward.
The ".sln" workspace file has not changed => I use the same as for MSVC7

The changes in FileFilters and Globals are minimal: it is just the addition of .vcxproj file extension

if i can help let me know

For now, it is OK: it is mainly a small class to implement. I will continue to work on it tonight and tomorrow.
« Last Edit: November 26, 2010, 06:16:09 pm by seb_seb0 »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Project Importer plugin patch
« Reply #3 on: January 05, 2011, 08:02:01 am »
For now, it is OK: it is mainly a small class to implement. I will continue to work on it tonight and tomorrow.
BTW: The patch is missing the most important two files: msvc10loader.cpp and msvc10loader.h. Without these there is not much I (we) can do... ;-)

I tried the first patch in the meantime. This seems to work OK.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: Project Importer plugin patch
« Reply #4 on: January 06, 2011, 09:12:56 pm »
For now, it is OK: it is mainly a small class to implement. I will continue to work on it tonight and tomorrow.
BTW: The patch is missing the most important two files: msvc10loader.cpp and msvc10loader.h. Without these there is not much I (we) can do... ;-)

I tried the first patch in the meantime. This seems to work OK.

oops. Here they are.
I am sorry if I leave this topic opened: I have received a lot of work recently, and it sucks up all my time...
Hopefully I will be able to finish it one day.

However, you should keep in mind that the plugin extension is currently not functionnal for MSVC10. It is currently mainly a "stub". I would be very surprised if they worked at all.
I attach also a few simple MSVC10 projects, for testing.

Sebastien

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Project Importer plugin patch
« Reply #5 on: January 07, 2011, 06:26:25 am »
However, you should keep in mind that the plugin extension is currently not functionnal for MSVC10. It is currently mainly a "stub". I would be very
Ah - ok. I didn't realise that. But the first patch (without the VC10 stuff) works fine here. That was OK?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: Project Importer plugin patch
« Reply #6 on: January 07, 2011, 10:19:25 pm »
However, you should keep in mind that the plugin extension is currently not functionnal for MSVC10. It is currently mainly a "stub". I would be very
Ah - ok. I didn't realise that. But the first patch (without the VC10 stuff) works fine here. That was OK?

Yes, 1st patch is OK.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Project Importer plugin patch
« Reply #7 on: April 03, 2011, 11:34:22 am »
...any news on that topic btw? I just stumbled across the stub again in my sources. I've modified it quite a bit meanwhile. However, you might have updates yourself to share?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: Project Importer plugin patch
« Reply #8 on: April 03, 2011, 05:39:37 pm »
...any news on that topic btw? I just stumbled across the stub again in my sources. I've modified it quite a bit meanwhile. However, you might have updates yourself to share?
Hi,

no, sorry, no improvement on my side.
I am stuck in a very big project for my work, and I do not have time (until end of April at least).
So if you have something, go ahead !