From 71452e98334eaac603bf542d159e24788a46bebb Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 22 Oct 2016 02:02:42 -0400 Subject: [PATCH] 3rdparty/qtcreator: Totally new version of the create_project_file script. Qt Creator now has a "generic project" mode, in which it just acts as an auto-completing code editor. I tried using it on the entire Haiku project at once, but it's just too much for Qt Creator to handle. So instead, I created a script which generates project files for any given directory in the tree, as well as sets up the proper include directories. The project files themselves are .gitignore'd; use the script to create them. Works on Haiku. Did not test on Linux with a crosstools setup; but it should work there too. --- 3rdparty/qtcreator/.gitignore | 5 + 3rdparty/qtcreator/create_project_file.sh | 27 ++++++ 3rdparty/qtcreator/create_project_files.pl | 106 --------------------- 3 files changed, 32 insertions(+), 106 deletions(-) create mode 100644 3rdparty/qtcreator/.gitignore create mode 100755 3rdparty/qtcreator/create_project_file.sh delete mode 100644 3rdparty/qtcreator/create_project_files.pl diff --git a/3rdparty/qtcreator/.gitignore b/3rdparty/qtcreator/.gitignore new file mode 100644 index 0000000000..e0f75dc325 --- /dev/null +++ b/3rdparty/qtcreator/.gitignore @@ -0,0 +1,5 @@ +# Ignore everything in this directory... +* +# Except for this file, and the script. +!.gitignore +!create_project_file.sh diff --git a/3rdparty/qtcreator/create_project_file.sh b/3rdparty/qtcreator/create_project_file.sh new file mode 100755 index 0000000000..ce9fb8a857 --- /dev/null +++ b/3rdparty/qtcreator/create_project_file.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +if [ "$#" -ne 2 ]; then + echo "This script creates project files for Qt Creator to develop Haiku with." + echo "It should only be used on a per-project basis, as Qt Creator is too slow" + echo "when used on all of Haiku at once." + echo "" + echo "THIS SCRIPT *MUST* BE RUN FROM THE REPOSITORY ROOT." + echo "" + echo "Usage: