On 10/5/16, arnoldemu <[email protected]> wrote:
>
> I see that fossil can be built with a batch file "buildmsvc.bat" which uses
> the command-line visual studio compiler. It uses some kind of custom build
> where the headers which are needed are added to the files and output into a
> separate directory. I don't really understand fully how this works and is a
> guess from what I have seen so far.

To build using msvc from the command-line:

    cd win
    nmake /f makefile.msc

A description of the build process is found in
https://www.fossil-scm.org/fossil/doc/trunk/www/makefile.wiki

Fossil uses a great deal of generated code.  IDEs such as Visual
Studio, on the other hand, are usually built around the assumption
that all code is hand-written.  Generated code is a more powerful
concept, and ultimately makes development easier and less error prone.
But since IDEs do not support it well, I think you will have
difficulty putting together a "solution" for Fossil.

You can run Fossil in the visual studio debugger.  Joe showed me how
to do that once.  I could probably fumble my way through doing it
again, but I'm not comfortable trying to describe the process.  But
basically, you build the fossil.exe using nmake, then you fire up
Visual Studio to single-step through the code.  This gives you the
best of both worlds.  You can use powerful generated code techniques
from the command-line to construct the executable.  Then you can use
your nice GUI interface for single-stepping through the code to figure
out why it isn't working.

>
> I want to make a solution for fossil so I can build fossil under visual
> studio itself from the IDE itself. I can then use the IDE's debugger. I
> tried to add all the source files from inside the src directory but that
> didn't work. So I then ran the batch file, waited for it to build and then
> used the source files from the msvcbld and that didn't seem to work either.
>
> So I have failed so far and wondered if anyone has made a solution and if
> they did, how did they do it?
>
> The second question was:
> - Is there a way I can modify (or pass a parameter) to the buildmsvc.bat to
> make a "debug" build without the compiler doing optimisations and with it
> generating a debug pdb. I could also debug fossil from within visual studio
> this way.
>
> Thanks
>
> Kevin
>
>
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>


-- 
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to