Re: C/C++ Object Suffix to include source names
Bill Deegan <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAEyG4CGCbCWaCjV3ea2qZ2Xv91iJL8fDuXL6kvaXztpmWE4PZw@mail.gmail.com> |
A) That's really bad practice.. (but I'm sure you know that)
B) You can change SHOBJSUFFIX to be a generator that looks at the source
file's suffix and does what you're sugguesting.
I think that should work.
-Bill
On Thu, Dec 6, 2018 at 5:46 PM Hua Yanghao <[email protected]> wrote:
> For example:
> I can set OBJSUFFIX to ".${CC}.o", which produces test.gcc.o, however
> I cannot do set OBJSUFFIX to ".${SOURCE}.o", which produce "test..o"
> So what are the existing variables OBJSUFFIX could reference? Or how
> is the TARGET get generated and is there a way to hijack this?
> I could write a new builder to achieve what I want but I am really
> wondering if scons already have some easier way for this.
> On Thu, Dec 6, 2018 at 11:15 PM Hua Yanghao <[email protected]> wrote:
> >
> > Dear Scons Users,
> > I recently encountered an issue that we have a existing code base that
> > comes with multiple files of the same name but different suffixes:
> > e.g. test.c, test.cpp, test.S.
> >
> > The problem is they are in the same folder (hence will end up in the
> > same build dir), and all builds to test.o (StaticObject). Is there a
> > easy/straightforward way in scons that having them to build in a
> > target name with the full original names, e.g. test.c.o, test.cpp.o,
> > test.S.o?
> >
> > Thanks,
> > Yanghao
> _______________________________________________
> Scons-users mailing list
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users