Commit ff92cdec authored by Joerg Bornemann's avatar Joerg Bornemann Committed by hjk

add qbs files

Change-Id: If6bf71797ae81655d24a77e6badb86a77312af38
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 74da2172
import qbs.base 1.0
Product {
type: ["installed_content"]
name: "QtComponents"
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/"
fileTags: ["install"]
files: [
"Menu.qml",
"ScrollBar.qml",
"ContextMenu.qml",
"TextArea.qml",
"Switch.qml",
"Tab.qml",
"Slider.qml",
"TabFrame.qml",
"TextField.qml",
"TabBar.qml",
"MenuItem.qml",
"Dial.qml",
"ButtonRow.qml",
"ToolBar.qml",
"qmldir",
"ProgressBar.qml",
"RadioButton.qml",
"TableColumn.qml",
"GroupBox.qml",
"Button.qml",
"TableView.qml",
"Frame.qml",
"ToolButton.qml",
"ScrollArea.qml",
"SplitterRow.qml",
"ChoiceList.qml",
"CheckBox.qml",
"SpinBox.qml",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/images"
fileTags: ["install"]
files: [
"images/folder_new.png",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/custom/private"
fileTags: ["install"]
files: [
"custom/private/ChoiceListPopup.qml",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/custom/behaviors"
fileTags: ["install"]
files: [
"custom/behaviors/ButtonBehavior.qml",
"custom/behaviors/ModalPopupBehavior.qml",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/custom"
fileTags: ["install"]
files: [
"custom/ButtonGroup.js",
"custom/Slider.qml",
"custom/TextField.qml",
"custom/ButtonRow.qml",
"custom/qmldir",
"custom/BasicButton.qml",
"custom/ProgressBar.qml",
"custom/GroupBox.qml",
"custom/Button.qml",
"custom/ButtonColumn.qml",
"custom/SplitterRow.qml",
"custom/ChoiceList.qml",
"custom/CheckBox.qml",
"custom/SpinBox.qml",
]
}
}
import qbs.base 1.0
import qbs.fileinfo 1.0 as FileInfo
Module {
additionalProductFileTags: ["pluginSpec"]
property int ide_version_major: project.ide_version_major
property int ide_version_minor: project.ide_version_minor
property int ide_version_release: project.ide_version_release
property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
property string destdir: "lib/qtcreator/plugins/Nokia/"
FileTagger {
pattern: "*.in"
fileTags: ["pluginSpecIn"]
}
Rule {
inputs: ["pluginSpecIn"]
Artifact {
fileTags: ["pluginSpec"]
fileName: {
var destdir = input.modules.pluginspec.destdir;
if (!destdir.match(/\/$/))
destdir += "/";
return destdir + input.fileName.replace(/\.[^\.]*$/,'');
}
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "prepare " + FileInfo.fileName(output.fileName);
cmd.highlight = "codegen";
cmd.qtcreator_version = product.module.qtcreator_version;
cmd.ide_version_major = product.module.ide_version_major;
cmd.ide_version_minor = product.module.ide_version_minor;
cmd.ide_version_release = product.module.ide_version_release;
cmd.sourceCode = function() {
var i;
var vars = {};
var inf = new TextFile(input.fileName);
var all = inf.readAll();
// replace quoted quotes
all = all.replace(/\\\"/g, "\"");
// replace config vars
vars['QTCREATOR_VERSION'] = qtcreator_version;
vars['IDE_VERSION_MAJOR'] = ide_version_major;
vars['IDE_VERSION_MINOR'] = ide_version_minor;
vars['IDE_VERSION_RELEASE'] = ide_version_release;
for (i in vars) {
all = all.replace(new RegExp('\\\$\\\$' + i.toUpperCase() + '(?!\w)', 'g'), vars[i]);
}
var file = new TextFile(output.fileName, TextFile.WriteOnly);
file.truncate();
file.write(all);
file.close();
}
return cmd;
}
}
}
import qbs.base 1.0
import qbs.fileinfo 1.0 as FileInfo
Project {
property string ide_version_major: '2'
property string ide_version_minor: '4'
property string ide_version_release: '81'
property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
property var additionalCppDefines: [ 'IDE_LIBRARY_BASENAME="lib"' ]
moduleSearchPaths: "qbs"
references: [
"lib/qtcreator/qtcomponents/qtcomponents.qbs",
"share/share.qbs",
"src/libs/3rdparty/botan/botan.qbs",
"src/libs/aggregation/aggregation.qbs",
"src/libs/cplusplus/cplusplus.qbs",
"src/libs/extensionsystem/extensionsystem.qbs",
"src/libs/glsl/glsl.qbs",
"src/libs/languageutils/languageutils.qbs",
"src/libs/qmleditorwidgets/qmleditorwidgets.qbs",
"src/libs/qmljs/qmljs.qbs",
"src/libs/qmljsdebugclient/qmljsdebugclient.qbs",
"src/libs/qtcomponents/styleitem/styleitem.qbs",
"src/libs/symbianutils/symbianutils.qbs",
"src/libs/utils/utils.qbs",
"src/plugins/analyzerbase/analyzerbase.qbs",
"src/plugins/bazaar/bazaar.qbs",
"src/plugins/bineditor/bineditor.qbs",
"src/plugins/bookmarks/bookmarks.qbs",
"src/plugins/classview/classview.qbs",
"src/plugins/cmakeprojectmanager/cmakeprojectmanager.qbs",
"src/plugins/coreplugin/coreplugin.qbs",
"src/plugins/cpaster/cpaster.qbs",
"src/plugins/cppeditor/cppeditor.qbs",
"src/plugins/cpptools/cpptools.qbs",
"src/plugins/cvs/cvs.qbs",
"src/plugins/debugger/debugger.qbs",
"src/plugins/designer/designer.qbs",
"src/plugins/fakevim/fakevim.qbs",
"src/plugins/find/find.qbs",
"src/plugins/genericprojectmanager/genericprojectmanager.qbs",
"src/plugins/git/git.qbs",
"src/plugins/glsleditor/glsleditor.qbs",
"src/plugins/helloworld/helloworld.qbs",
"src/plugins/help/help.qbs",
"src/plugins/imageviewer/imageviewer.qbs",
"src/plugins/locator/locator.qbs",
"src/plugins/macros/macros.qbs",
"src/plugins/madde/madde.qbs",
"src/plugins/mercurial/mercurial.qbs",
"src/plugins/perforce/perforce.qbs",
"src/plugins/projectexplorer/projectexplorer.qbs",
"src/plugins/qmljseditor/qmljseditor.qbs",
"src/plugins/qmljsinspector/qmljsinspector.qbs",
"src/plugins/qmljstools/qmljstools.qbs",
"src/plugins/qmlprofiler/qmlprofiler.qbs",
"src/plugins/qmlprojectmanager/qmlprojectmanager.qbs",
"src/plugins/qt4projectmanager/qt4projectmanager.qbs",
"src/plugins/qtsupport/qtsupport.qbs",
"src/plugins/remotelinux/remotelinux.qbs",
"src/plugins/resourceeditor/resourceeditor.qbs",
"src/plugins/subversion/subversion.qbs",
"src/plugins/tasklist/tasklist.qbs",
"src/plugins/texteditor/texteditor.qbs",
"src/plugins/valgrind/valgrind.qbs",
"src/plugins/vcsbase/vcsbase.qbs",
"src/plugins/welcome/welcome.qbs",
]
Product {
name: "app_version_header"
type: "hpp"
files: "src/app/app_version.h.in"
property string ide_version_major: project.ide_version_major
property string ide_version_minor: project.ide_version_minor
property string ide_version_release: project.ide_version_release
property string qtcreator_version: project.qtcreator_version
Transformer {
inputs: ["src/app/app_version.h.in"]
Artifact {
fileName: "app/app_version.h"
fileTags: "hpp"
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "generating app_version.h";
cmd.highlight = "codegen";
cmd.qtcreator_version = product.qtcreator_version;
cmd.ide_version_major = product.ide_version_major;
cmd.ide_version_minor = product.ide_version_minor;
cmd.ide_version_release = product.ide_version_release;
cmd.onWindows = (product.modules.qbs.targetOS == "windows");
cmd.sourceCode = function() {
var file = new TextFile(input.fileName);
var content = file.readAll();
// replace quoted quotes
content = content.replace(/\\\"/g, "\"");
// replace Windows line endings
if (onWindows)
content = content.replace(/\r\n/g, "\n");
// replace the magic qmake incantations
content = content.replace(/(\n#define IDE_VERSION) .+\n/, "$1 " + qtcreator_version + "\n");
content = content.replace(/(\n#define IDE_VERSION_MAJOR) .+\n/, "$1 " + ide_version_major + "\n")
content = content.replace(/(\n#define IDE_VERSION_MINOR) .+\n/, "$1 " + ide_version_minor + "\n")
content = content.replace(/(\n#define IDE_VERSION_RELEASE) .+\n/, "$1 " + ide_version_release + "\n")
file = new TextFile(output.fileName, TextFile.WriteOnly);
file.truncate();
file.write(content);
file.close();
}
return cmd;
}
}
}
Product {
name: "qtcreator"
type: ["application", "installed_content"]
destination: "bin"
cpp.rpaths: ["$ORIGIN/../lib"]
cpp.defines: project.additionalCppDefines
cpp.includePaths: [
"src",
"src/libs",
"src/shared/qtsingleapplication",
"src/shared/qtlockedfile",
buildDirectory
]
Depends { name: "app_version_header" }
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["gui", "network"] }
Depends { name: "utils" }
Depends { name: "extensionsystem" }
files: [
"src/app/main.cpp",
"src/shared/qtsingleapplication/qtsingleapplication.h",
"src/shared/qtsingleapplication/qtsingleapplication.cpp",
"src/shared/qtsingleapplication/qtlocalpeer.h",
"src/shared/qtsingleapplication/qtlocalpeer.cpp",
"src/shared/qtlockedfile/qtlockedfile.cpp"
]
Group {
files: "bin/qtcreator.sh"
fileTags: "install"
}
Group {
condition: qbs.targetOS == "linux" || qbs.targetOS == "macx"
files: [
"src/shared/qtlockedfile/qtlockedfile_unix.cpp"
]
}
Group {
condition: qbs.targetOS == "windows"
files: [
"src/shared/qtlockedfile/qtlockedfile_win.cpp"
]
}
}
}
This diff is collapsed.
import qbs.base 1.0
DynamicLibrary {
name: "botan"
destination: "lib"
Depends { name: "cpp" }
Depends { name: "qt"; submodules: 'core' }
cpp.includePaths: ["build", "src"]
cpp.staticLibraries: {
if (qbs.targetOS == 'windows') {
return [
"advapi32.lib",
"user32.lib"
]
}
}
cpp.dynamicLibraries: {
if (qbs.targetOS == 'linux' || qbs.targetOS == 'freebsd') {
return ['rt']
}
}
cpp.defines: {
var result = []
if (qbs.toolchain == 'msvc2005' || qbs.toolchain == 'msvc2005' || qbs.toolchain == 'msvc2008' || qbs.toolchain == 'msvc2010')
result.push('BOTAN_DLL=__declspec(dllexport)')
return result
}
// TODO: add those flags to mingw's compiler: -fpermissive -finline-functions -Wno-long-long
files: [
"src/algo_factory/algo_cache.h",
"src/algo_factory/algo_factory.h",
"src/alloc/allocate.h",
"src/alloc/mem_pool/mem_pool.h",
"src/alloc/secmem.h",
"src/alloc/system_alloc/defalloc.h",
"src/asn1/alg_id.h",
"src/asn1/asn1_int.h",
"src/asn1/asn1_obj.h",
"src/asn1/asn1_oid.h",
"src/asn1/ber_dec.h",
"src/asn1/der_enc.h",
"src/benchmark/benchmark.h",
"src/block/aes/aes.h",
"src/block/block_cipher.h",
"src/block/blowfish/blowfish.h",
"src/block/cast/cast128.h",
"src/block/cast/cast256.h",
"src/block/des/des.h",
"src/block/des/desx.h",
"src/block/gost_28147/gost_28147.h",
"src/block/idea/idea.h",
"src/block/kasumi/kasumi.h",
"src/block/lion/lion.h",
"src/block/lubyrack/lubyrack.h",
"src/block/mars/mars.h",
"src/block/misty1/misty1.h",
"src/block/noekeon/noekeon.h",
"src/block/rc2/rc2.h",
"src/block/rc5/rc5.h",
"src/block/rc6/rc6.h",
"src/block/safer/safer_sk.h",
"src/block/seed/seed.h",
"src/block/serpent/serpent.h",
"src/block/skipjack/skipjack.h",
"src/block/square/square.h",
"src/block/tea/tea.h",
"src/block/twofish/twofish.h",
"src/block/xtea/xtea.h",
"src/cert/x509/certstor.h",
"src/cert/x509/crl_ent.h",
"src/cert/x509/pkcs10.h",
"src/cert/x509/x509_ca.h",
"src/cert/x509/x509_crl.h",
"src/cert/x509/x509_ext.h",
"src/cert/x509/x509_obj.h",
"src/cert/x509/x509cert.h",
"src/cert/x509/x509find.h",
"src/cert/x509/x509self.h",
"src/cert/x509/x509stor.h",
"src/checksum/adler32/adler32.h",
"src/checksum/crc24/crc24.h",
"src/checksum/crc32/crc32.h",
"src/cms/cms_dec.h",
"src/cms/cms_enc.h",
"src/codec/base64/base64.h",
"src/codec/hex/hex.h",
"src/codec/openpgp/openpgp.h",
"src/codec/pem/pem.h",
"src/cryptobox/cryptobox.h",
"src/engine/def_engine/def_eng.h",
"src/engine/engine.h",
"src/entropy/entropy_src.h",
"src/filters/basefilt.h",
"src/filters/buf_filt.h",
"src/filters/data_snk.h",
"src/filters/data_src.h",
"src/filters/filter.h",
"src/filters/filters.h",
"src/filters/out_buf.h",
"src/filters/pbe.h",
"src/filters/pipe.h",
"src/filters/secqueue.h",
"src/hash/fork256/fork256.h",
"src/hash/gost_3411/gost_3411.h",
"src/hash/has160/has160.h",
"src/hash/hash.h",
"src/hash/md2/md2.h",
"src/hash/md4/md4.h",
"src/hash/md5/md5.h",
"src/hash/mdx_hash/mdx_hash.h",
"src/hash/par_hash/par_hash.h",
"src/hash/rmd128/rmd128.h",
"src/hash/rmd160/rmd160.h",
"src/hash/sha1/sha160.h",
"src/hash/sha2/sha2_32.h",
"src/hash/sha2/sha2_64.h",
"src/hash/skein/skein_512.h",
"src/hash/tiger/tiger.h",
"src/hash/whirlpool/whrlpool.h",
"src/kdf/kdf.h",
"src/kdf/kdf1/kdf1.h",
"src/kdf/kdf2/kdf2.h",
"src/kdf/mgf1/mgf1.h",
"src/kdf/ssl_prf/prf_ssl3.h",
"src/kdf/tls_prf/prf_tls.h",
"src/kdf/x942_prf/prf_x942.h",
"src/libstate/botan.h",
"src/libstate/init.h",
"src/libstate/libstate.h",
"src/libstate/look_pk.h",
"src/libstate/lookup.h",
"src/libstate/oid_lookup/oids.h",
"src/libstate/pk_engine.h",
"src/libstate/scan_name.h",
"src/mac/cbc_mac/cbc_mac.h",
"src/mac/cmac/cmac.h",
"src/mac/hmac/hmac.h",
"src/mac/mac.h",
"src/mac/ssl3mac/ssl3_mac.h",
"src/mac/x919_mac/x919_mac.h",
"src/math/bigint/bigint.h",
"src/math/bigint/divide.h",
"src/math/bigint/mp_core.h",
"src/math/bigint/mp_generic/mp_asm.h",
"src/math/bigint/mp_generic/mp_asmi.h",
"src/math/bigint/mp_types.h",
"src/math/numbertheory/blinding.h",
"src/math/numbertheory/def_powm.h",
"src/math/numbertheory/numthry.h",
"src/math/numbertheory/pow_mod.h",
"src/math/numbertheory/reducer.h",
"src/modes/cbc/cbc.h",
"src/modes/cfb/cfb.h",
"src/modes/ctr/ctr.h",
"src/modes/cts/cts.h",
"src/modes/eax/eax.h",
"src/modes/ecb/ecb.h",
"src/modes/mode_pad/mode_pad.h",
"src/modes/modebase.h",
"src/modes/ofb/ofb.h",
"src/modes/xts/xts.h",
"src/mutex/mutex.h",
"src/mutex/noop_mutex/mux_noop.h",
"src/pbe/get_pbe.h",
"src/pbe/pbes1/pbes1.h",
"src/pbe/pbes2/pbes2.h",
"src/pk_pad/eme.h",
"src/pk_pad/eme1/eme1.h",
"src/pk_pad/eme_pkcs/eme_pkcs.h",
"src/pk_pad/emsa.h",
"src/pk_pad/emsa1/emsa1.h",
"src/pk_pad/emsa1_bsi/emsa1_bsi.h",
"src/pk_pad/emsa2/emsa2.h",
"src/pk_pad/emsa3/emsa3.h",
"src/pk_pad/emsa4/emsa4.h",
"src/pk_pad/emsa_raw/emsa_raw.h",
"src/pk_pad/hash_id/hash_id.h",
"src/pubkey/dh/dh.h",
"src/pubkey/dh/dh_core.h",
"src/pubkey/dh/dh_op.h",
"src/pubkey/dl_algo/dl_algo.h",
"src/pubkey/dl_group/dl_group.h",
"src/pubkey/dlies/dlies.h",
"src/pubkey/dsa/dsa.h",
"src/pubkey/dsa/dsa_core.h",
"src/pubkey/dsa/dsa_op.h",
"src/pubkey/elgamal/elg_core.h",
"src/pubkey/elgamal/elg_op.h",
"src/pubkey/elgamal/elgamal.h",
"src/pubkey/if_algo/if_algo.h",
"src/pubkey/if_algo/if_core.h",
"src/pubkey/if_algo/if_op.h",
"src/pubkey/keypair/keypair.h",
"src/pubkey/nr/nr.h",
"src/pubkey/nr/nr_core.h",
"src/pubkey/nr/nr_op.h",
"src/pubkey/pk_algs.h",
"src/pubkey/pk_codecs/pkcs8.h",
"src/pubkey/pk_codecs/x509_key.h",
"src/pubkey/pk_filts.h",
"src/pubkey/pk_keys.h",
"src/pubkey/pubkey.h",
"src/pubkey/pubkey_enums.h",
"src/pubkey/rsa/rsa.h",
"src/pubkey/rw/rw.h",
"src/rng/auto_rng/auto_rng.h",
"src/rng/hmac_rng/hmac_rng.h",
"src/rng/randpool/randpool.h",
"src/rng/rng.h",
"src/rng/x931_rng/x931_rng.h",
"src/s2k/pbkdf1/pbkdf1.h",
"src/s2k/pbkdf2/pbkdf2.h",
"src/s2k/pgps2k/pgp_s2k.h",
"src/s2k/s2k.h",
"src/selftest/selftest.h",
"src/stream/arc4/arc4.h",
"src/stream/salsa20/salsa20.h",
"src/stream/stream_cipher.h",
"src/stream/turing/turing.h",
"src/stream/wid_wake/wid_wake.h",
"src/sym_algo/sym_algo.h",
"src/sym_algo/symkey.h",
"src/timer/timer.h",
"src/utils/bit_ops.h",
"src/utils/bswap.h",
"src/utils/buf_comp/buf_comp.h",
"src/utils/charset.h",
"src/utils/datastor/datastor.h",
"src/utils/exceptn.h",
"src/utils/loadstor.h",
"src/utils/mem_ops.h",
"src/utils/parsing.h",
"src/utils/rotate.h",
"src/utils/stl_util.h",
"src/utils/types.h",
"src/utils/ui.h",
"src/utils/util.h",
"src/utils/version.h",
"src/utils/xor_buf.h",
"src/utils/sharedpointer.h",
"src/algo_factory/algo_factory.cpp",
"src/algo_factory/prov_weight.cpp",
"src/alloc/mem_pool/mem_pool.cpp",
"src/alloc/system_alloc/defalloc.cpp",
"src/asn1/alg_id.cpp",
"src/asn1/asn1_alt.cpp",
"src/asn1/asn1_att.cpp",
"src/asn1/asn1_dn.cpp",
"src/asn1/asn1_int.cpp",
"src/asn1/asn1_oid.cpp",
"src/asn1/asn1_str.cpp",
"src/asn1/asn1_tm.cpp",
"src/asn1/ber_dec.cpp",
"src/asn1/der_enc.cpp",
"src/benchmark/benchmark.cpp",
"src/block/aes/aes.cpp",
"src/block/aes/aes_tab.cpp",
"src/block/blowfish/blfs_tab.cpp",
"src/block/blowfish/blowfish.cpp",
"src/block/cast/cast128.cpp",
"src/block/cast/cast256.cpp",
"src/block/cast/cast_tab.cpp",
"src/block/des/des.cpp",
"src/block/des/des_tab.cpp",
"src/block/des/desx.cpp",
"src/block/gost_28147/gost_28147.cpp",
"src/block/idea/idea.cpp",
"src/block/kasumi/kasumi.cpp",
"src/block/lion/lion.cpp",
"src/block/lubyrack/lubyrack.cpp",
"src/block/mars/mars.cpp",
"src/block/mars/mars_tab.cpp",
"src/block/misty1/misty1.cpp",
"src/block/noekeon/noekeon.cpp",
"src/block/rc2/rc2.cpp",
"src/block/rc5/rc5.cpp",
"src/block/rc6/rc6.cpp",
"src/block/safer/safe_tab.cpp",
"src/block/safer/safer_sk.cpp",
"src/block/seed/seed.cpp",
"src/block/seed/seed_tab.cpp",
"src/block/serpent/serpent.cpp",
"src/block/skipjack/skipjack.cpp",
"src/block/square/sqr_tab.cpp",
"src/block/square/square.cpp",
"src/block/tea/tea.cpp",
"src/block/twofish/two_tab.cpp",
"src/block/twofish/twofish.cpp",
"src/block/xtea/xtea.cpp",
"src/cert/x509/certstor.cpp",
"src/cert/x509/crl_ent.cpp",
"src/cert/x509/pkcs10.cpp",
"src/cert/x509/x509_ca.cpp",
"src/cert/x509/x509_crl.cpp",
"src/cert/x509/x509_ext.cpp",
"src/cert/x509/x509_obj.cpp",