Skip to content

Commit 9e2aaea

Browse files
Merge pull request #9 from CICM/dev/v0.1.2
Dev/v0.1.2
2 parents 569140a + 20c1b59 commit 9e2aaea

14 files changed

+142
-77
lines changed

.travis.yml

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,52 @@ matrix:
1313
env: release_arch=Darwin-amd64-32
1414
install:
1515
- git submodule update --init --recursive
16-
- curl -o ./llvm.zip -L https://github.com/CICM/pd-faustgen/releases/download/v0.0.0/llvm-macos-x64.zip
17-
- tar xzf ./llvm.zip && mv llvm-macos-x64 llvm
16+
- curl -o ./llvm.tar.xz -L https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-darwin-apple.tar.xz
17+
- tar xzf ./llvm.tar.xz && mv clang+llvm-9.0.0-x86_64-darwin-apple llvm
1818
script:
1919
- mkdir build && cd build
2020
- cmake .. -GXcode -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
2121
- cmake --build . --config Release --target faustgen_tilde_project
22+
before_deploy:
23+
- cd $TRAVIS_BUILD_DIR
24+
- cp -r faust/libraries external/libs
25+
- cp -r src/ external/sources
26+
- cp README.md external/README.txt
27+
- cp LICENSE external/LICENSE.txt
28+
- chmod 0444 external/.default.dsp
29+
- curl -o ./external/faust-quick-reference.pdf http://faust.grame.fr/images/faust-quick-reference.pdf
30+
- mv external faustgen~
31+
- zip -r "faustgen_tilde-$release_arch-sources.zip" faustgen~
2232
- os: linux
2333
compiler: gcc
34+
addons:
35+
apt:
36+
sources: ubuntu-toolchain-r-test
37+
packages: g++-4.9
2438
env: release_arch=Linux-amd64-32
2539
install:
40+
- export CXX=g++-4.9
41+
- export CC=gcc-4.9
2642
- git submodule update --init --recursive
2743
- sudo apt-get install -y pkg-config libedit-dev
28-
- curl -o ./llvm.tar.gz http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz
29-
- tar xvf ./llvm.tar.gz && mv clang+llvm-5.0.0-linux-x86_64-ubuntu14.04 llvm
44+
- curl -o ./llvm.tar.xz https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
45+
- tar xvf ./llvm.tar.xz && mv clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04 llvm
3046
script:
3147
- mkdir build && cd build
3248
- cmake .. -DCMAKE_C_FLAGS=-m64 -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm
3349
-DCMAKE_BUILD_TYPE=Release
3450
- cmake --build . --config Release --target faustgen_tilde_project
35-
before_deploy:
36-
- cd $TRAVIS_BUILD_DIR
37-
- cp -r faust/libraries external/libs
38-
- cp -r src/ external/sources
39-
- cp README.md external/README.txt
40-
- cp LICENSE external/LICENSE.txt
41-
- chmod 0444 external/.default.dsp
42-
- curl -o ./external/faust-quick-reference.pdf http://faust.grame.fr/images/faust-quick-reference.pdf
43-
- mv external faustgen~
44-
- zip -r "faustgen_tilde-$release_arch-sources.zip" faustgen~
51+
before_deploy:
52+
- cd $TRAVIS_BUILD_DIR
53+
- cp -r faust/libraries external/libs
54+
- cp -r src/ external/sources
55+
- cp README.md external/README.txt
56+
- cp LICENSE external/LICENSE.txt
57+
- chmod 0444 external/.default.dsp
58+
- curl -o ./external/faust-quick-reference.pdf http://faust.grame.fr/images/faust-quick-reference.pdf
59+
- mv external faustgen~
60+
- zip -r "faustgen_tilde-$release_arch-sources.zip" faustgen~
61+
- ./make-dist.sh
4562
deploy:
4663
provider: releases
4764
skip_cleanup: true
@@ -51,8 +68,11 @@ deploy:
5168
name: ${TRAVIS_TAG}
5269
tag_name: ${TRAVIS_TAG}
5370
api_key:
54-
secure: dT+n95s+gMM1iZ2G91S6zRKb/bQLxeOANy3AIh2PO/7cOCJ/MoFGjNv69qhn0B17RbPwrpbHjw+aXNS3BSuQ6uWzK6YT8Xr+vS45mIYxq/QTnyn+zWu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p5y3jVUHlHpwxMukH35ScJaauEzzPqu0CbR/bx5+nGNIllkT7yzeOI+YMq6deLnakG/4iBqmWfgtTnTUDq1Q+hm+RtYjS0JQ5LKMKjMui+/UFSGZ1ZTer+NWhmL2sWXtYyYOPwLWY+AdDAHGOq386CsohMQ36seAiU3X5bC1icBK3tG93nrJEIucgVmDeAvsrHHX41FHW8dL4=
72+
file_glob: true
73+
file:
74+
- "faustgen_tilde-$release_arch-sources.zip"
75+
- '*.tar.gz'
5676
on:
5777
repo: CICM/pd-faustgen
5878
tags: true

CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,6 @@ if(UNIX AND NOT APPLE)
1313
set(FAUST_LIBS "stdc++" CACHE STRING "FAUST LIBRARIES" FORCE)
1414
endif()
1515

16-
## For Windows use static runtime instead of default dynamic runtime
17-
if(MSVC)
18-
set(CMAKE_CXX_FLAGS_RELEASE "/MT" CACHE STRING "FORCE CXX FLAGS" FORCE)
19-
set(CMAKE_C_FLAGS_RELEASE "/MT" CACHE STRING "FORCE C FLAGS" FORCE)
20-
set(CMAKE_CXX_FLAGS_DEBUG "/MTd" CACHE STRING "FORCE CXX FLAGS" FORCE)
21-
set(CMAKE_C_FLAGS_DEBUG "/MTd" CACHE STRING "FORCE C FLAGS" FORCE)
22-
set(CompilerFlags
23-
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
24-
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE)
25-
foreach(CompilerFlag ${CompilerFlags})
26-
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
27-
endforeach()
28-
endif()
29-
3016
include(FaustLib.cmake)
3117
## Create Faust~
3218
message(STATUS "faustgen~ external")

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### v0.1.2
2+
- Update Faust (2.72.2)
3+
- Update LLVM (>= 9.0.0)
4+
15
### v0.1.1
26
- Fix the method to open the FAUST file on Windows when the path contains a space
37

FaustLib.cmake

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
## Create Faust Lib
22
message(STATUS "Faust Library")
33

4-
## For Windows use static runtime instead of default dynamic runtime
5-
if(MSVC)
6-
set(CompilerFlags
7-
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
8-
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE)
9-
foreach(CompilerFlag ${CompilerFlags})
10-
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
11-
endforeach()
12-
endif()
134

145
## Save the llvm directory and change it for subdirectory
156
if(DEFINED LLVM_DIR)
@@ -18,11 +9,12 @@ if(DEFINED LLVM_DIR)
189
endif()
1910

2011
## Hardcoded targets for faust
21-
set(INCLUDE_STATIC ON CACHE STRING "Include static library" FORCE)
22-
set(INCLUDE_EXECUTABLE OFF CACHE STRING "Include runtime executable" FORCE)
23-
set(INCLUDE_DYNAMIC OFF CACHE STRING "Include dynamic library" FORCE)
24-
set(INCLUDE_OSC OFF CACHE STRING "Include Faust OSC library" FORCE)
25-
set(INCLUDE_HTTP OFF CACHE STRING "Include Faust HTTPD library" FORCE)
12+
set(MSVC_STATIC ON CACHE STRING "Use static runtimes with MSVC" FORCE)
13+
set(INCLUDE_STATIC ON CACHE STRING "Include static library" FORCE)
14+
set(INCLUDE_EXECUTABLE OFF CACHE STRING "Include runtime executable" FORCE)
15+
set(INCLUDE_DYNAMIC OFF CACHE STRING "Include dynamic library" FORCE)
16+
set(INCLUDE_OSC OFF CACHE STRING "Include Faust OSC library" FORCE)
17+
set(INCLUDE_HTTP OFF CACHE STRING "Include Faust HTTPD library" FORCE)
2618

2719
## Hardcoded backends for faust
2820
set(ASMJS_BACKEND OFF CACHE STRING "Include ASMJS backend" FORCE)

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,27 @@ The **faustgen~** object is an external with the [FAUST](http://faust.grame.fr/a
3232

3333
## Compilation
3434

35-
The FAUST compiler requires LLVM 5.0.0 backend (or higher - 6.0.0). Once LLVM is installed on your machine, you can use CMake to generate a project that will compile both the FAUST library and the Pure Data external. Then you can use Deken to release the external.
35+
The FAUST compiler requires LLVM 9.0.0 backend (or higher). Once LLVM is installed on your machine, you can use CMake to generate a project that will compile both the FAUST library and the Pure Data external. Then you can use Deken to release the external.
3636

3737
#### Installing LLVM
3838

3939
The fastest solution to install LLVM is to download the precompiled binaries from the [LLVM website](http://releases.llvm.org). For example, on the Travis CI for MacOS, we assume that the binaries are installed in the llvm folder at the root of the project:
4040

4141
```
42-
curl -o ./llvm.tar.gz http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-x86_64-apple-darwin.tar.xz
43-
tar zxvf ./llvm.tar.gz && mv clang+llvm-5.0.0-x86_64-apple-darwin llvm
42+
curl -o ./llvm.tar.xz -L https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-darwin-apple.tar.xz
43+
tar xzf ./llvm.tar.xz && mv clang+llvm-9.0.0-x86_64-darwin-apple llvm
4444
```
4545
or a for a linux system
4646
```
47-
curl -o ./llvm.tar.gz http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz
48-
tar xvf ./llvm.tar.gz && mv clang+llvm-5.0.0-linux-x86_64-ubuntu14.04 llvm
47+
curl -o ./llvm.tar.gz https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
48+
tar xvf ./llvm.tar.gz && mv clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04 llvm
4949
```
5050
You can also use HomeBrew or MacPorts on macOS or APT on Linux the compilation of the sources last around 50 minutes and in this case, you change the LLVM_DIR with the proper location.
5151

5252
On Windows, you must compile from sources using the static runtime library. Compiling LLVM with the Microsoft Visual Compiler requires to use the static runtime library, for example:
5353
```
54-
cd llvm-6.0.0.src && mkdir build && cd build
55-
cmake .. -G "Visual Studio 14 2015 Win64" -DLLVM_USE_CRT_DEBUG=MTd -DLLVM_USE_CRT_RELEASE=MT -DLLVM_BUILD_TESTS=Off -DCMAKE_INSTALL_PREFIX="./llvm" -Thost=x64
54+
cd llvm-9.0.0.src && mkdir build && cd build
55+
cmake .. -G "Visual Studio 16 2019" -DLLVM_USE_CRT_DEBUG=MTd -DLLVM_USE_CRT_RELEASE=MT -DLLVM_BUILD_TESTS=Off -DCMAKE_INSTALL_PREFIX="./llvm" -Thost=x64
5656
cmake --build . --target ALL_BUILD (--config Debug/Release)
5757
cmake --build . --target INSTALL (optional)
5858
```

ToDoList.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

appveyor.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
os: Visual Studio 2015
1+
os: Visual Studio 2019
22

33
environment:
44
matrix:
55
#- platform: Win32
66
# compiler: "Visual Studio 14 2015"
77
# configuration: Debug
88
- platform: x64
9-
compiler: "Visual Studio 14 2015 Win64"
9+
compiler: "Visual Studio 16 2019"
1010
configuration: Release
1111
release_arch: "Windows-amd64-32"
1212

1313
install:
1414
- git submodule update --init --recursive
15-
- curl -L https://github.com/CICM/pd-faustgen/releases/download/v0.0.0/llvm-windows-x64-mt.zip -o llvm.zip
15+
- curl -L https://github.com/CICM/pd-faustgen/releases/download/v0.0.0/llvm-9.0.0-windows-x64-mt.zip -o llvm.zip
1616
- 7z x llvm.zip
17-
- rename llvm-windows-x64-mt llvm
1817
- curl http://faust.grame.fr/images/faust-quick-reference.pdf -o ./external/faust-quick-reference.pdf
1918
build_script:
2019
- mkdir build && cd build
21-
- cmake .. -G "%compiler%" -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm
20+
- cmake .. -G "%compiler%" -A x64 -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm
2221
- msbuild faustgen~.sln /nologo /p:config=%configuration% /p:plateform=%platform%
2322
after_build:
2423
- cd %APPVEYOR_BUILD_FOLDER%
@@ -44,7 +43,7 @@ deploy:
4443
overwrite: true
4544
draft: true
4645
auth_token:
47-
secure: 0Vv/0e24P2Oa/R/obFQBd824WDpAolXToTc1B0xOjM8TdXXkFdRkfRkPHDgCtoCR
46+
secure: n/wNzOYdawEQPTt9OaxXu59bO9PKjKjzeZulk0yrmQduH6SLI7c0CduPQXBwjI1B
4847
artifact: /.*\.zip/
4948
on:
5049
appveyor_repo_tag: true

faust

Submodule faust updated 1441 files

make-dist.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#! /bin/bash
2+
3+
# Copyright (c) 2020 Albert Gräf <aggraef@gmail.com>. Distributed under the
4+
# MIT license, please check the toplevel LICENSE file for details.
5+
6+
# Create a self-contained distribution tarball from the source, including all
7+
# the submodules.
8+
9+
# Invoke this in the toplevel directory as `./make-dist.sh`. It will leave the
10+
# tarball as pd-faustgen-<version>.tar.gz in the toplevel directory. Temporary
11+
# data is written to the pd-faustgen-<version> directory, which is
12+
# automatically deleted afterwards. The version number is extracted from
13+
# src/faustgen_tilde.c, so make sure to keep that up-to-date.
14+
15+
# NOTE: git and tar need to be installed to make this work. As a side-effect,
16+
# all submodules will be checked out recursively, using `git submodule update
17+
# --init --recursive`.
18+
19+
# This may need adjusting if the file is edited and the macro name changes.
20+
version=$(grep "#define FAUSTGEN_VERSION_STR" src/faustgen_tilde.c | sed 's|^#define *FAUSTGEN_VERSION_STR *"\(.*\)".*|\1|')
21+
22+
# Distribution basename and name of the source tarball.
23+
dist=pd-faustgen-$version
24+
src=$dist.tar.gz
25+
26+
# Make sure that the submodules are initialized.
27+
git submodule update --init --recursive
28+
29+
# List of submodules to include in the package. This requires git version
30+
# 1.7.8 or later to work.
31+
submodules=$(find . -mindepth 2 -name '.git' -type f -print | xargs grep -l "gitdir" | sed -e 's/^\.\///' -e 's/\.git$//')
32+
33+
# Remove any left-over temp directory and previous tarball.
34+
rm -rf $dist $src
35+
# Grab the main source.
36+
git archive --format=tar.gz --prefix=$dist/ HEAD | tar xfz -
37+
# Grab the submodules.
38+
for x in $submodules; do (cd $dist && git -C ../$x archive --format=tar.gz --prefix=$x HEAD | tar xfz -); done
39+
40+
# Create the source tarball.
41+
tar cfz $src $dist
42+
rm -rf $dist

0 commit comments

Comments
 (0)