Christian Damus(deleted)
|
Re: EXTRA_SILENT_VARIANTS overwrite in common.mk when build
|
Christian Damus(deleted)
11/10/2010 8:47 AM
post74194
|
Re: EXTRA_SILENT_VARIANTS overwrite in common.mk when build
Hi, Christophe,
To work around this, you can redefine the VARIANT_TAG macro used by the
recursive makefiles to compute the output binary name. This macro filters
out the EXTRA_SILENT_VARIANTS, so the redefinition just removes that filter.
Insert the following between the inclusion of qmacros.mk and
.qnx_internal.mk:
# Redefine the variant tag to exclude the EXTRA_SILENT_VARIANTS
VARIANT_TAG=$(subst $(space),,$(foreach var,$(filter-out
$(silent_variants),$(all_variants)),-$(var)))$(foreach var,$(filter g,
$(VARIANT_LIST)),_$(var))$(foreach var,$(filter shared, $(VARIANT_LIST)),S)
(the VARIANT_TAG definition should all be on one line)
The resulting makefile should look like the example I attached. The IDE
will continue to overwrite the EXTRA_SILENT_VARIANTS, but it will not
disturb the VARIANT_TAG definition.
I have logged the issue internally in our database. Thanks for the report!
Cheers,
Christian
On 10-11-09 10:32 AM, "Christophe Hannoyer" <community-noreply@qnx.com>
wrote:
> Hi,
>
> I create a new project (QNX 6.5, IDE 4.7). I add on the Variants a new one.
> Automatically in the common.mk here is a new line:
> EXTRA_SILENT_VARIANTS+=myVariant
>
> But I want that the variant name appear in the result binary. Then I remove
> this line. After that I build again and the line was again added.
>
> It was not the case with the IDE 4.6.
> Perhaps this problem was introduced with this :
> http://community.qnx.com/sf/wiki/do/viewPage/projects.ide/wiki/DownloadIDE4.7
> # [76353] Fixed accidental removal of user-defined variants from the the
> EXTRA_SILENT_VARIANTS in common.mk
>
>
> Do you have a solution to workaround this problem?
>
> Thank you,
> Christophe
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post74032
>
>
--
Christian W. Damus
Software Developer, IDE Team
QNX Software Systems <http://www.qnx.com/>
|
|
|