Building JUCE projects using CMake made easy

Overview

Contributor Covenant Code of Conduct AppVeyor build status Azure Pipelines build status Documentation status

FRUT

FRUT makes it easy to build JUCE projects using CMake instead of Projucer. It enables more flexibility in project architecture, simplified CI setup, and easier integration with other JUCE and non-JUCE projects. Converting an existing JUCE project to FRUT is easy, and you don't need to be a CMake expert to use it!

In short

Table of Contents

Background

JUCE comes with its own project generation tool, Projucer, which is very useful when starting a JUCE project. However, Projucer doesn't scale well when you want to make some aspects of your project configurable, when you want to add external libraries, when you want to use Continuous Integration, or when you want to manage several projects at once.

FRUT was created to overcome these limitations, while making it very easy to migrate an existing JUCE project that uses Projucer. Since FRUT is based on CMake, you also get access to many great features of CMake, including testing and packaging utilities.

Contents

FRUT currently contains:

Requirements

  • CMake, version 3.4 minimum
  • JUCE, version 4.2.0 minimum

Supported Projucer exporters

Jucer2CMake and Reprojucer.cmake support the following Projucer exporters (also known as "export targets"):

Supported Exporter CMake requirements and options Missing features
✔️ Xcode (MacOSX) 2 unsupported Xcode exporter settings
✔️ Xcode (iOS) version 3.14 minimum
-G Xcode -DCMAKE_SYSTEM_NAME=iOS
✔️ Visual Studio 2019 version 3.14 minimum
✔️ Visual Studio 2017 version 3.7 minimum
(3.13.3 when VS 2019 is installed)
✔️ Visual Studio 2015
✔️ Visual Studio 2013
✔️ Linux Makefile
Android
✔️ Code::Blocks (Windows)
✔️ Code::Blocks (Linux)

Documentation

You can read the documentation of FRUT on Read the Docs: https://frut.readthedocs.io

Getting started

Let's consider that you have a copy of JUCE, a copy of FRUT and a JUCE project called MyGreatProject following this folder structure:

 
  
├── FRUT/
├── JUCE/
└── MyGreatProject/
    ├── Source/
    └── MyGreatProject.jucer

 

We first build and install FRUT with CMake:

$ cd 
  /FRUT/

$ mkdir build && cd build/

$ cmake .. -DCMAKE_INSTALL_PREFIX="../prefix" -DJUCE_ROOT="../../JUCE"
...
-- Configuring done
-- Generating done
-- Build files have been written to: 
  
   /FRUT/build

$ cmake --build . --target install
# or
$ cmake --build . --target install --parallel  # with CMake 3.12 or later
...

  
 

If it fails to build and install, please report the problem by creating a new issue on GitHub: https://github.com/McMartin/FRUT/issues/new.

Then we convert MyGreatProject.jucer to a new CMakeLists.txt file:

$ cd 
  /MyGreatProject/

$ ../FRUT/prefix/FRUT/bin/Jucer2CMake reprojucer MyGreatProject.jucer ../FRUT/prefix/FRUT/cmake/Reprojucer.cmake


  
   /MyGreatProject/CMakeLists.txt has been successfully generated.

  
 

Now we can build MyGreatProject using CMake:

$ cd 
  /MyGreatProject/

$ mkdir build && cd build/

$ cmake .. -G
  
   
...
-- Configuring done
-- Generating done
-- Build files have been written to: 
   
    /MyGreatProject/build

$ cmake --build .
# or
$ cmake --build . -- -parallelizeTargets  # when 
    
      is Xcode
# or
$ cmake --build . --parallel  # with CMake 3.12 or later
...

    
   
  
 

can be one of many CMake Generators supported by your platform, including Ninja, NMake Makefiles (on Windows), Unix Makefiles (on Linux and macOS), Visual Studio 2013, 2015, 2017 and 2019 (on Windows), and Xcode (on macOS).

Contributing

Contributions to FRUT are very welcomed and you can contribute even if you don't know anything about CMake. See the CONTRIBUTING.md file for more details.

Contributors

FRUT follows the all-contributors specification and is brought to you by these awesome contributors:


Alain Martin

💻 👀 📖

Matthieu Talbot

👀 💻 🐛

Florian Goltz

💻

Fabien Roussel

🐛 👀

Xavier Jouvenot

🐛 👀

Nikolai Wuttke

👀

Dominik Grzelak

🐛

Dennis Scheffer

🐛 💻

Scott Wheeler

💻 🐛

Iqra Shahzad

🐛

Romain Clement

🐛

Stijn Frishert

🐛

Jerry Chan

🐛 👀

Frank Lange

🐛

Johannes Elliesen

🐛 💻

David Holland

💻

Dimitri Sudell

🐛

Dan Raviv

🐛 👀

Rory Walsh

🐛

Eyal Amir

🐛

Michael Hetrick

🐛

Alex

💻 👀

Alexey Romanoff

🐛

Benedikt Sailer

🐛

Steve Baker

🐛

David Crome

🐛

JF Castel-Branco

🐛

Butch Warns

🐛

License

GNU General Public License

FRUT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

FRUT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for more details.

the blessed package to manage your versions by scm tags

setuptools_scm setuptools_scm handles managing your Python package versions in SCM metadata instead of declaring them as the version argument or in a

Python Packaging Authority 671 Jan 08, 2023
The Pants Build System

Pants Build System Pants is a scalable build system for monorepos: codebases containing multiple projects, often using multiple programming languages

Pants Build 2.5k Jan 07, 2023
Python-based project scripting.

Paver - Easy Scripting for Software Projects Web: https://pythonhosted.org/Paver/ Download: https://pypi.python.org/pypi/Paver/ Source: https://github

Paver community 452 Dec 09, 2022
A pynt of Python build.

A pynt of Python build. Raghunandan Rao Features Easy to learn. Build tasks are just python funtions. Manages dependencies between tasks. Automaticall

Raghunandan Rao 154 Jan 04, 2023
Buildout is a deployment automation tool written in and extended with Python

Buildout Buildout is a project designed to solve 2 problems: Application-centric assembly and deployment Assembly runs the gamut from stitching togeth

buildout 552 Nov 26, 2022
Utilities for interacting with PyPI

twine Twine is a utility for publishing Python packages on PyPI. It provides build system independent uploads of source and binary distribution artifa

Python Packaging Authority 1.4k Jan 05, 2023
PyPacker: a dumb little script for turning Python apps into standalone executable packages on Windows

PyPacker: a dumb little script for turning Python apps into standalone executable packages on Windows PyPacker is my attempt at creating a way to make

Serdar Yegulalp 9 Mar 15, 2022
SCons - a software construction tool

SCons - a software construction tool Welcome to the SCons development tree. The real purpose of this tree is to package SCons for production distribut

SCons Project 1.6k Jan 03, 2023
PlatformIO is a professional collaborative platform for embedded development :alien: A place where Developers and Teams have true Freedom! No more vendor lock-in!

PlatformIO Quick Links: Web | PlatformIO IDE | Project Examples | Docs | Donate | Contact Us Social: LinkedIn | Twitter | Facebook | Community Forums

PlatformIO 6.5k Jan 08, 2023
Building JUCE projects using CMake made easy

FRUT makes it easy to build JUCE projects using CMake instead of Projucer. It enables more flexibility in project architecture, simplified CI setup, a

Alain Martin 341 Jan 08, 2023
bitbake tool

Bitbake ======= BitBake is a generic task execution engine that allows shell and Python tasks to be run efficiently and in parallel while working wit

openembedded 336 Dec 27, 2022
This is a python helper package for Telebirr H5 Web payment integration helper.

Project Glow Greetings, I see you have stumbled upon project glow. Project glow is an open source bot worked on by many people to create a good and sa

24 Dec 13, 2022
task management & automation tool

README doit - automation tool doit comes from the idea of bringing the power of build-tools to execute any kind of task Sample Code Define functions r

doit 1.5k Dec 30, 2022
Program for convert py & js file to exe

Converter JS & PY to Exe Converter Coded by Lamp Requirements : Node.js Python How to Use : Install latest python Dont forget to add path Install node

5 Oct 04, 2021
The official binary distribution format for Python

wheel This library is the reference implementation of the Python wheel packaging standard, as defined in PEP 427. It has two different roles: A setupt

Python Packaging Authority 368 Dec 23, 2022
A small clone of GNU Make based on file checksums

Pyke This weekend project is a small clone (most of the code is in a single file of just about 200LoC) of GNU Make with the twist that it rebuilds a t

Antonio De Lucreziis 3 Nov 24, 2021
Smaller, easier, more powerful, and more reliable than make. An implementation of djb's redo.

redo - a recursive build system Smaller, easier, more powerful, and more reliable than make. This is an implementation of Daniel J. Bernstein's redo b

1.7k Jan 04, 2023
Dev is a Makefile replacement for modern development environments

Dev Dev is a Makefile replacement for modern development environments. Dev let's

Mason Data 9 Dec 09, 2022
The Meson Build System

Meson® is a project to create the best possible next-generation build system. Status Dependencies Python (version 3.6 or newer) Ninja (version 1.8.2 o

The Meson Build System 4.4k Jan 02, 2023
Python program for installing many tools automatically

Tool Installer is a script made with python which help user in installing tools automatically

Spider Anongreyhat 6 Mar 13, 2022