[Qbs] Ideas inspired by pro2cmake.py

Tobias Hunger tobias.hunger at gmail.com
Mon Sep 23 07:56:14 CEST 2019

Hi Vincent,

On Fri, Sep 20, 2019 at 4:15 PM Vincent Hui <vincenthk007 at gmail.com> wrote:
> There is an useful python script called pro2cmake.py. It can converse .pro files into CMakeLists.txt files.

This script is very specifically converting .pro-files from the Qt 5
qmake build infrastructure and produces CMakeLists.txt files that work
in the context of the Qt 6 cmake build system.

You might be able to salvage some parts when you want to convert from
another source context, but turning this script into something that
accepts arbitrary .pro-files and produces generic CMakeLists.txt files
is going to be a *lot* of extra work. Making it produce qbs instead of
cmake would probably be easy compared to that:-)

Best Regards,

More information about the Qbs mailing list