Qt-interest Archive, March 2008
multi-platform project best practices
Message 1 in thread
hi all,
i apologize if this information is somewhere, but i have been unable to
find it. i'm looking for recommended directory and file organization
for a project that is built on windows using eclipse and mingw and
built on mac with either xcode or eclipse.
i can get it to work just fine all in one directory, but this seems a
bit disorganized. also, the eclipse project files cannot be checked
into svn since they are not compatible with the mac. this implies that
the eclipse project files might have to be in separate directories in
svn.
thoughts? i'd love to hear how other people have organized their
project directories.
thanks,
christopher skogen
gizmolabs, inc.
--
[ signature omitted ]
Message 2 in thread
On Sat, Mar 1, 2008 at 7:18 PM, Christopher Skogen
<cskogen@xxxxxxxxxxxxx> wrote:
> i can get it to work just fine all in one directory, but this seems a
> bit disorganized. also, the eclipse project files cannot be checked
> into svn since they are not compatible with the mac. this implies that
> the eclipse project files might have to be in separate directories in
> svn.
Our projects mostly looks like this
projectdir/
project.pri
project.pro
src/
We don't allow IDE-specific file such as Visual Studio, Eclipse or
Xcode in the central repository, these stay ignore locally on each
developers account. As the developers almost always sync the pri-files
we don't have any build problems across the different platforms.
--
[ signature omitted ]
Message 3 in thread
On 2008-03-02 06:35:38 -0500, "Robin Helgelin" <lobbin@xxxxxxxxx> said:
> On Sat, Mar 1, 2008 at 7:18 PM, Christopher Skogen
> <cskogen@xxxxxxxxxxxxx> wrote:
>> i can get it to work just fine all in one directory, but this seems a
>> bit disorganized. also, the eclipse project files cannot be checked
>> into svn since they are not compatible with the mac. this implies that
>> the eclipse project files might have to be in separate directories in
>> svn.
>
> Our projects mostly looks like this
>
> projectdir/
> project.pri
> project.pro
> src/
>
> We don't allow IDE-specific file such as Visual Studio, Eclipse or
> Xcode in the central repository, these stay ignore locally on each
> developers account. As the developers almost always sync the pri-files
> we don't have any build problems across the different platforms.
that makes sense. i was coming to that conclusion during my
experiments. it seems that all that shoudl go into source control is
working .pro file and source. (since i'm still fairly new, what's a
.pri file? )
thanks
chris
--
[ signature omitted ]
Message 4 in thread
On Sun, Mar 2, 2008 at 3:12 PM, Christopher Skogen
<cskogen@xxxxxxxxxxxxx> wrote:
> that makes sense. i was coming to that conclusion during my
> experiments. it seems that all that shoudl go into source control is
> working .pro file and source. (since i'm still fairly new, what's a
> .pri file? )
It's an include file. We keep our SOURCES, FORMS, RESOURCES, HEADERS,
etc in the .pri file, and the rest of the project information in the
.pro file.
At the end of the .pro file we have: include( project.pri )
--
[ signature omitted ]
Message 5 in thread
I am using Emacs, cmake, and minGW(Win),gcc4(linux)
It is pretty much same interfaces among multiple platforms.
Sam
-----Original Message-----
From: Christopher Skogen [mailto:cskogen@xxxxxxxxxxxxx]
Sent: Saturday, March 01, 2008 1:18 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: multi-platform project best practices
hi all,
i apologize if this information is somewhere, but i have been unable to
find it. i'm looking for recommended directory and file organization
for a project that is built on windows using eclipse and mingw and
built on mac with either xcode or eclipse.
i can get it to work just fine all in one directory, but this seems a
bit disorganized. also, the eclipse project files cannot be checked
into svn since they are not compatible with the mac. this implies that
the eclipse project files might have to be in separate directories in
svn.
thoughts? i'd love to hear how other people have organized their
project directories.
thanks,
christopher skogen
gizmolabs, inc.
--
[ signature omitted ]