[QBS] qbs code style?

joerg.bornemann at nokia.com joerg.bornemann at nokia.com
Mon Jun 18 07:49:57 CEST 2012


Yes those string literals are identical.

BR,

Jörg

________________________________
From: qbs-bounces+joerg.bornemann=nokia.com at qt-project.org [qbs-bounces+joerg.bornemann=nokia.com at qt-project.org] on behalf of ext Loaden [loaden at gmail.com]
Sent: 17 June 2012 06:35
To: qbs at qt-project.org
Subject: Re: [QBS] qbs code style?

If I understand correctly, This code:
    cpp.defines: [
        "PID_FILE=\"/tmp/mdnsd.pid\"",
        "MDNS_UDS_SERVERPATH=\"/tmp/mdnsd\"",
        "MDNS_DEBUGMSGS=0",
        "HAVE_IPV6"
    ]
Should same with:
    cpp.defines: [
        'PID_FILE="/tmp/mdnsd.pid"',
        'MDNS_UDS_SERVERPATH="/tmp/mdnsd"',
        "MDNS_DEBUGMSGS=0",
        "HAVE_IPV6"
    ]

2012/6/17 Loaden <loaden at gmail.com<mailto:loaden at gmail.com>>
Hi, qbs list!
I am now study Creator's qbs files, and fine some different style.
I want to know this is the best style?
e.g.
condition: qbs.targetOS == "linux" || qbs.targetOS == "macx"
or:
condition: qbs.targetOS == 'linux' || qbs.targetOS == 'macx'
or:
condition: qbs.targetOS === "linux" || qbs.targetOS === "macx"

And:
Depends { name: "Qt"; submodules: ["widgets", "network"] }
or:
Depends { name: "Qt"; submodules: ['widgets', 'network'] }

Who is the best one?
Any docs about this?
Thanks!

--
Please don't ask where I come from, It's a shame!
Best Regards
Yuchen




--
Please don't ask where I come from, It's a shame!
Best Regards
Yuchen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20120618/a1e783ec/attachment.html>


More information about the Qbs mailing list