Skip to main content

qworktree

qworktree is a simple tool to permit to manage a qt worktree without managing the main xxx.pro.

It is designed to create the main pro file at the root path of the tree (where you execute it it.

It have some containts that I does not arrive to remove:

  • need to declate the MK_FEATURE element
  • generate 2 file in the root directory

[![Badge](https://badge.fury.io/py/qworktree.png](https://pypi.python.org/pypi/qworktree)

Instructions

This tool is to create the main .pro file of your worktree

qworktree is under a FREE license that can be found in the LICENSE file. Any contribution is more than welcome ;)

git repository

http://github.com/HeeroYui/qworktree/

Installation

Requirements: Python >= 2.7 and pip

Just run:

pip install qworktree

Install pip on debian/ubuntu:

sudo apt-get install pip

Install pip on ARCH-linux:

sudo pacman -S pip

Install pip on MacOs:

sudo easy_install pip

Usage

Download your worktree and run the command

qworktree
export QMAKEFEATURES=`pwd`/mkfeatures
mkdir build
cd build
qmake ..

the qworktree will generate local files

folder_name.pro ==> the file of the worktree description
defines.prf ==> a file that define a list of dependency macro

Creating the needed elements

1: Need a mkfeature to add an include to determine the main root worktree: mkfeatures/root_directory.prf

ROOT_DIRETORY += $${PWD}/..
ROOT_DEFINES += $${PWD}/../defines.prf
load(../defines.prf)

2: Create a file in your library/plugin/application folder: folderName/qworktree_folderName.py

#!/usr/bin/python
# -*- coding: utf-8 -*-
depend_on = [
"depend_worktree_lib1_name",
"depend_worktree_lib2_name"
	]

3: Create a file in your worktree with the dependency property: folderName/dependencies.pri

INCLUDEPATH += $$PWD
LIBS *= -llibraryName

4: Import the library elements:

  load(root_directory.prf)
  # request include properties
  include($$ROOT_DIRETORY/$$LIB_DECLARE_DEPENDENCIES_FOLDERNAME1)
  include($$ROOT_DIRETORY/$$LIB_DECLARE_DEPENDENCIES_MYLIB2)

Note that the define is generate in the file defines.prf

License (MPL v2.0)

Copyright qworktree Edouard DUPIN

Licensed under the Mozilla Public License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.mozilla.org/MPL/2.0/

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Metadata

Release files for qworktree 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qworktree 0.6.1
File Size Uploaded
qworktree-0.6.1.tar.gz 12.9 kB Details

Release files / qworktree-0.6.1.tar.gz

Download URL qworktree-0.6.1.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
193855332ee75dad32427629e29601ae7405860463448e03339dd2dc711e4dc4
BLAKE2b-256 checksum
How to use checksums
b803ada43ad4c1609e50abb5ae20df50af23b98b9d5f983750ead99054655aee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.6.1 This release

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page