simplify the build process for development projects across different platforms. It automates the generation of Makefiles so that only a few lines of information are needed to create each Makefile. You can use qmake for any software project, whether it is written with Qt or not. • cmake ͱൺֱ͞ΕΔ͜ͱ͕͓͓ͦ͏? খྛ ࠀر (ؔ Debian ษڧձ) qmake ͳ Qt ΞϓϦͷ deb Λ࡞Ζ͏ͱͯ͠ࢼߦࡨޡͨ͠ 2017/02/26 14 / 47
method is based on qtchooser. Take a look at it’s man page for full details, but basically boils down to: • Exporting QT_SELECT with 4, qt4, 5 or qt5 as value in debian/rules. • Call the tool using the ’-qtx’ parameter, where x can be replaced with any of the options above. We have also provided qt4-[arch-triplet] and qt5-[arch-triplet] options for special cases, in case you might need them. Beware this should not be used to build packages for the Debian archive. খྛ ࠀر (ؔ Debian ษڧձ) qmake ͳ Qt ΞϓϦͷ deb Λ࡞Ζ͏ͱͯ͠ࢼߦࡨޡͨ͠ 2017/02/26 19 / 47
ͷهड़Λ৭ʑͱϞδϡʔϧԽͯ͠࠶ར༻Λૂͬͨ ͷ Switching to CDBS is easy. A simple debian/rules for an autotools-using C or C++ software with no extra rules would be written as this: #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk খྛ ࠀر (ؔ Debian ษڧձ) qmake ͳ Qt ΞϓϦͷ deb Λ࡞Ζ͏ͱͯ͠ࢼߦࡨޡͨ͠ 2017/02/26 29 / 47
- ͬͯͲ͏Α? • ެࣜճˣ Q: But wget | sh - is insecure! A: Of course, and you should never run such a command on your own machine. However, not only does Travis-CI build within throwaway containers that you are not responsible for, cannot trust, and generally don’t care about, there is zero expectation that the resulting .deb files are to be used or installed anywhere. ▶ ϏϧυͷνΣοΫ͚ͩͳΜ͔ͩΒؾʹ͢Δͳతͳճ খྛ ࠀر (ؔ Debian ษڧձ) qmake ͳ Qt ΞϓϦͷ deb Λ࡞Ζ͏ͱͯ͠ࢼߦࡨޡͨ͠ 2017/02/26 43 / 47