Windows build question: Filesystem layout
Anton Lundin
glance at acc.umu.se
Fri Jan 27 07:22:54 PST 2017
On 27 January, 2017 - Stefan Fuchs wrote:
> Am 27.01.2017 um 16:05 schrieb Dirk Hohndel:
> >
> >>>> beside my real issue I have one other question:
> >>>>
> >>>> I followed the directions in INSTALL and mxe-based-build.sh and I now
> >>>> have the following filesystem layout:
> >>>>
> >>>>
> >>>> └── src
> >>>> ├── grantlee
> >>>> ├── install-root
> >>>> ├── libdivecomputer
> >>>> ├── libgit2
> >>>> ├── marble-source
> >>>> ├── subsurface <-- source from git
> >>>> └── win
> >>>> ├── grantlee <-- copy from one level above
> >>>> ├── libcurl
> >>>> ├── libdc
> >>>> ├── libdivecomputer <-- copy from one level above
> >>>> ├── libgit2 <-- copy from one level above
> >>>> ├── libssh2
> >>>> ├── marble-source <-- copy from one level above
> >>>> ├── mxe
> >>>> ├── subsurface <-- source from git
> >>>> └── win32 <-- windows build dir
> >>>>
> >>>> So I have a few things twice like subsurface branch, libdivecomputer,
> >>>> libgit2,... and I need to maintain also the source code twice.
> >>>> But a comment in mxe-based-build.sh is saying:
> >>>>
> >>>> # This makes some assumption about the filesystem layout based
> >>>> # on the way things are setup on my system so I can build Ubuntu PPA,
> >>>> # OBS and Windows out of the same sources.
> >>>>
> >>>>
> >>>> What did I do wrong? What is maybe obsolete or wrong in my filesystem
> >>>> layout?
> >>> Doesn't seem wrong to me. The directories under 'src' are the sources,
> >>> the ones under 'win' are the build directories.
> >>>
> >> But isn't it that "win32" is the build directory and I have the source
> >> (from git) two times? I added more specificly what I have above in the
> >> tree...
> > Sorry, you are (mostly) correct. Again, this script is based on a layout
> > that I use, and when I check on the server I do indeed have duplications
> > in there - I could try claiming that this was to be able to have different
> > versions of these libraries for Windows, but I think it was mostly so that
> > I had a self-contained set of directories that I could try and build from.
> >
> >
> Ok, understood.
> So that means it is also ok to merge everything more flat together to
> really have only one source for both linux and windows?
>
> Like this:
>
> └── src
> ├── grantlee
> ├── install-root
> ├── libdivecomputer
> ├── libgit2
> ├── libcurl
> ├── libssh2
> ├── marble-source
> ├── subsurface <-- source from git
> ├── mxe
> └── win32 <-- windows build dir
>
A bit OT, but anyway.
We could unify the infrastructure a bit between the different build
environments.
There is quite a bit of duplication between those. IE, only one file
containing versions of our 3pp, and only download one source tar-ball.
It might be a fools eran, but for a autobuilder setup, it would probably
help.
//Anton
--
Anton Lundin +46702-161604
More information about the subsurface
mailing list