<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>> I'll have a similar Group item containing assembly</p>
    <p>Hi, seems, you need to use Properties item instead of Group item
      to use cpp.assemblerName .</p>
    <p>BR, Denis<br>
    </p>
    <br>
    <div class="moz-cite-prefix">14.12.2017 23:01, Ola Røer Thorsen
      пишет:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMEHBtMJUKT+PRgcm4RNuxkeUzNa-Wpy7o3obLAeBxOJuFJRMg@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">2017-12-14 18:02 GMT+01:00 Christian
            Kandeler <span dir="ltr"><<a
                href="mailto:christian.kandeler@qt.io" target="_blank"
                moz-do-not-send="true">christian.kandeler@qt.io</a>></span>:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">On Thu, 14 Dec 2017
              17:46:56 +0100<br>
              <span class="m_-5061074297372198219gmail-">Ola Røer
                Thorsen <<a href="mailto:ola@silentwings.no"
                  target="_blank" moz-do-not-send="true">ola@silentwings.no</a>>
                wrote:<br>
                <br>
              </span><span class="m_-5061074297372198219gmail-">>
                It's running when I tag the files with "asm", but using
                the assembler "as"<br>
                > instead of "nasm". Any way to override that here
                for this particular group<br>
                > of files? The source files are not compatible with
                "as".<br>
                <br>
              </span>You need to set cpp.assemblerName, either in the
              profile or in your product(s).<br>
              <div class="m_-5061074297372198219gmail-HOEnZb">
                <div class="m_-5061074297372198219gmail-h5"><br>
                </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>Right. I had only tried setting it inside the Group
              item, but that didn't have any effect. I need another
              Properties item instead to conditionally set the
              cpp.assemblerName then? </div>
            <div><br>
            </div>
            <div>Group {</div>
            <div>    name: "asm-linux-x86_64"</div>
            <div>    condition: qbs.architecture === "x86_64" </div>
            <div>    files: [ ...the .asm files ]</div>
            <div>    cpp.assemblerName: "nasm"</div>
            <div>}<br>
            </div>
            <div><br>
            </div>
            <div>I'll have a similar Group item containing assembly code
              for linux armv5t and yet another one for Windows, that's
              why I tried setting the cpp.assemblerName inside the
              group. </div>
            <div><br>
            </div>
            <div>Setting cpp.assemblerName outside the Group item makes
              qbs run nasm, but then it's using some options tailored
              for "as" (I guess) that won't work with nasm:<br>
            </div>
            <div>
              <div>nasm: error: unrecognised option `--64'</div>
              <div>type `nasm -h' for help</div>
            </div>
            <div><br>
            </div>
            <div>At this point I'm probably better of writing my own
              Rule item to process each of the .asm files using nasm, to
              have full control? (output artifacts tagged with "obj"?) </div>
            <div><br>
            </div>
            <div>Cheers,</div>
            <div>Ola</div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qbs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qbs@qt-project.org">Qbs@qt-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/qbs">http://lists.qt-project.org/mailman/listinfo/qbs</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>