Skip to content

Vendor libprojectM in projectm-sys crate #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
72c5a8b
Use git submodule reference to libprojectM
revmischa Mar 10, 2024
69700a8
v4.1.0
revmischa Mar 10, 2024
04341cb
bump
revmischa Mar 10, 2024
3359b15
bump
revmischa Mar 10, 2024
f90e3fb
oops
revmischa Mar 10, 2024
a36a964
oops
revmischa Mar 10, 2024
1820e46
projectm-4.1.2
revmischa Oct 23, 2024
470705c
projectm-4.1.2
revmischa Oct 23, 2024
4399b86
projectm-4.1.2
revmischa Oct 23, 2024
65be551
projectm-4.1.2
revmischa Oct 23, 2024
8805c9e
ignore
revmischa Oct 23, 2024
6c698d6
exclude
revmischa Oct 23, 2024
64f88f7
make package smaller
revmischa Oct 23, 2024
946b74f
version updates
revmischa Oct 23, 2024
a35b603
improve packaging of libprojectM source
revmischa Oct 31, 2024
807bb6d
improve packaging of libprojectM source
revmischa Oct 31, 2024
5d28d57
fix package include files list
revmischa Oct 31, 2024
414bf18
bump versions
revmischa Oct 31, 2024
fdcd0aa
update bindgen
revmischa Oct 31, 2024
4f69094
bump versions
revmischa Oct 31, 2024
bce7df3
build paths
revmischa Oct 31, 2024
ec5881e
rc
revmischa Oct 31, 2024
12579f6
bump versions
revmischa Oct 31, 2024
6c9480a
fmt
revmischa Oct 31, 2024
edea9fb
update submodules when cloning
revmischa Oct 31, 2024
fb8bc84
versions
revmischa Oct 31, 2024
9333b16
merge master
revmischa Oct 31, 2024
5a3c3e8
add vcpkg stuff back
revmischa Oct 31, 2024
d9230fe
restore platform-specific build steps
revmischa Oct 31, 2024
9bf061b
use static linking on windows/emscripten
revmischa Oct 31, 2024
17e567b
vcpkg root
revmischa Oct 31, 2024
8b506ac
bump versions
revmischa Oct 31, 2024
9b624cc
bump versions
revmischa Oct 31, 2024
ab92a6b
rustfmt
revmischa Oct 31, 2024
ca72a3c
bump versions
revmischa Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build_emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup EMSDK
uses: mymindstorm/setup-emsdk@v14
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:

steps:
- uses: actions/checkout@v4

with:
submodules: recursive

- name: Install Packages
run: |
sudo apt-get update
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Update Local Toolchain
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:

steps:
- uses: actions/checkout@v4

with:
submodules: recursive

- name: Install Dependencies
run: vcpkg --triplet=x64-windows-static-md install glew

- name: Update Local Toolchain
run: |
rustup update
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish_crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Packages
run: |
Expand Down Expand Up @@ -52,6 +54,6 @@ jobs:

- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo publish --token $CARGO_REGISTRY_TOKEN
4 changes: 3 additions & 1 deletion .github/workflows/publish_sys_crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Packages
run: |
Expand Down Expand Up @@ -45,7 +47,7 @@ jobs:

- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cd projectm-sys
cargo publish --token $CARGO_REGISTRY_TOKEN
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

.DS_Store

.idea/
5 changes: 5 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[submodule "projectm-sys/libprojectM"]
path = projectm-sys/libprojectM
url = https://github.com/projectM-visualizer/projectm.git
[submodule "libprojectM"]
branch = v4.1.2
15 changes: 8 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
[package]
name = "projectm"
version = "2.0.1-alpha"
version = "2.0.2"
edition = "2021"
rust-version = "1.65"
authors = ["AnomieVision <[email protected]>"]
authors = ["AnomieVision <[email protected]>", "Mischa Spiegelmock <[email protected]>"]
description = "Bindings for ProjectM"
license = " LGPL-3.0-or-later"
repository = "https://github.com/projectM-visualizer/projectm-rs" #https://github.com/anomievision/projectm-rs
keywords = ["visualization", "audio", "sound", "projectm"]
keywords = ["visualization", "audio", "sound", "projectm"]
categories = ["multimedia", "multimedia::video", "multimedia::audio"]
readme = "README.md"

[dependencies]
libc = "0.2.147"
projectm-sys = { path = "projectm-sys", version = "1.0.8", features = ["playlist"] }
rand = "0.8.5"
libc = "0.2"
#projectm-sys = { path = "projectm-sys", version = "1.0.9-rc.1", features = ["playlist"] }
projectm-sys = { version = "1.0.10" }
rand = "0.8"

[features]
default = ["playlist"]
playlist = []
playlist = ["projectm-sys/playlist"]
36 changes: 30 additions & 6 deletions projectm-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,49 @@
[package]
name = "projectm-sys"
version = "1.0.8"
version = "1.0.10"
edition = "2021"
rust-version = "1.65"
authors = ["AnomieVision <[email protected]>"]
authors = ["AnomieVision <[email protected]>", "Mischa Spiegelmock <[email protected]>"]
description = "Bindings for ProjectM"
license = "LGPL-3.0-or-later"
repository = "https://github.com/anomievision/projectm-sys"
repository = "https://github.com/projectM-visualizer/projectm-rs"
documentation = "https://docs.rs/projectm-sys/latest"
keywords = ["visualization", "audio", "sound", "projectm"]
keywords = ["visualization", "audio", "sound", "projectm"]
categories = ["multimedia", "multimedia::video", "multimedia::audio"]
readme = "README.md"
links = "projectm"

include = [
"src/**",
"Cargo.toml",
"build.rs",
"README.md",
"LICENSE",
"build_bindgen.rs",
"libprojectM/CMakeLists.txt",
"libprojectM/src/**",
"libprojectM/include/**",
"libprojectM/presets/CMakeLists.txt",
"libprojectM/cmake/**",
"libprojectM/vendor/**",
"libprojectM/vendor/projectm-eval/**",
"libprojectM/vendor/**/CMakeLists.txt",
"libprojectM/vendor/**/cmake/**",
"libprojectM/**/*.cmake",
"libprojectM/**/*.h",
"libprojectM/**/*.hpp",
"libprojectM/config*",
"libprojectM/vcpkg*",
"bindgen/**",
]

[dependencies]

[build-dependencies]
cmake = "0.1.50"
bindgen = "0.66.1"
bindgen = "0.70.1"
lazy_static = "1.4.0"

[features]
default = ["playlist"]
playlist = []
playlist = []
Loading
Loading