You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@quickstep.apache.org by "Jianqiao Zhu (JIRA)" <ji...@apache.org> on 2018/04/28 02:05:00 UTC

[jira] [Created] (QUICKSTEP-124) Add a python script to auto fix CMakeLists files

Jianqiao Zhu created QUICKSTEP-124:
--------------------------------------

             Summary: Add a python script to auto fix CMakeLists files
                 Key: QUICKSTEP-124
                 URL: https://issues.apache.org/jira/browse/QUICKSTEP-124
             Project: Apache Quickstep
          Issue Type: New Feature
            Reporter: Jianqiao Zhu


This PR adds a script that intends to help improve developer productivity by automatically fixing {{CMakeLists.txt}} files for the Quickstep project (with best effort).

The script will do the following things:
 * Scan the repo's subdirectories and collect {{#include}} information from all source code files.
 * Parse existing {{CMakeLists.txt}} files and convert all "recognized" commands into proper intermediate representations -- the "unrecognized" part will be kept as "verbal" lines.
 * Resolve subdirectories, targets and link dependencies. Add / delete / update the corresponding entries.
 * Convert the intermediate representations back to {{CMakeLists.txt}} files.

*NOTE:* Currently the script is at its initial stage and will not update tests or conditional targets (i.e. those within cmake {{if}} commands). It is likely to work well if you just create/delete some files or add/remove some {{#include}}'s -- otherwise additional manual fixes may need to be done after applying the script.

*NOTE*: This is an auxiliary tool that is not part of Quickstep source code.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)