Pierre-Andre Galmes wrote:
* Jürgen Schmidt <[EMAIL PROTECTED]> [050715 09:37]:

Pierre-Andre Galmes wrote:

Hello,


Hello Jürgen,

I apologize for the delay answering, but as you may know, in France last
days were non-working days, so no internet connection for me. ^_^
In this mail, I will just focus on the idea of a new tool like "qmake".


I - The context :


- How are the Makefile in the exemples of the SDK created ? By hand ?


yes[...]


- How do you generate the makefiles in general ? Do you use
automake/autoconf or any other tool ?

no, as i said the makefiles are created by hand. OO itself used a build environment based on dmake. The SDK build env. was mainly introduced to build the examples easily on all platforms.


II - A new tool :


- Is there a tool like qmake for QT that generates the Makefile for us
from the files in the project directory ?

no, but it would be nice to have it.


I think it would be nice too, in particular, now that the URE will be
released as a separate component of OpenOffice.org. That way, new
projects could be managed really easily. It could really help newcomers
to OpenOffice to start understanding the API, and developers to earn
time !

III - Short description for the tool :

For example, such a tool by just typing commands like would generate
everything to be done (IDL transformation, compilation...) in a
transparent way for the developper.


$ ooomake -project              // (1)
$ ooomake                       // (2)
$ make                          // (3)

(1) - Generates a file containing the dependencies the source files.
Example :

TEMPLATE = my_app
DEPENDPATH += . INCLUDEPATH += .
OOO  += writer          // project depends on the writer API.

# Input
HEADERS += hello.h
SOURCES += hello.cpp
SOURCES += main.cpp

(2) - generates the Makefile

(3) - launches the Makefile

IV - links -
qmake tutorial - http://doc.trolltech.com/4.0/qmake-tutorial.html
qmake doc - http://doc.trolltech.com/4.0/qmake-manual.html


Do you think it would be a good idea try to develop such a "tool" ? I
suppose that ooomake could mainly call other tools (idlc...), to get the
work done. Would it be useful to add a feature request for such a tool ?

I am not sure. For Java i would say that users will probably use an IDE which is most often ANT based and so it should be no problem to create or adapt an ANT script with some OO specific tasks (e.g. IDL compilation, ...). ANT is the de facto standard for Java projects. In the long term i would like to define dependencies on service level or at least on UNO package level. That means that a dependency as you suggested (OOO += writer) would make sense when writer means a package providing writer functionality (with the necessary API's) with maybe more dependencies on other packages. So i wouldn't introduce a new build system, i would integrate in existing tools\IDE's (e.g. MS Dev integration, Eclipse and NetBeans integration and others) That would have the advantage that people who are already familar with the normal IDE can easily use that IDE for OO specific projects without learning a new build system. Using gnu make was more or less a decision based on the resources we have had, i am not sure if we would that again ;-)

Juergen



Juergen


Regards,
Pierre-Andre

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to