build: remove cmake and python dependency

This commit is contained in:
chyyran 2024-02-07 23:06:38 -05:00 committed by Ronny Chan
parent 2b208f1848
commit 91794dd353
9 changed files with 16 additions and 34 deletions

View file

@ -26,10 +26,6 @@ jobs:
toolchain: nightly
override: true
target: aarch64-unknown-linux-gnu
- uses: actions/setup-python@v1
name: Setup Python 3.11
with:
python-version: '3.11'
- name: Install ARM64 cross-compilation dependencies
continue-on-error: true
run: |

View file

@ -26,10 +26,6 @@ jobs:
with:
toolchain: nightly
override: true
- uses: actions/setup-python@v1
name: Setup Python 3.11
with:
python-version: '3.11'
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:

7
Cargo.lock generated
View file

@ -1355,11 +1355,12 @@ dependencies = [
[[package]]
name = "glslang-sys"
version = "0.2.0"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d82a4e43102eb601efd17b0c3d10596132405c5eb3268a91a6f2ccc9a04c0ce"
checksum = "a3c81cefc876b4fd65354162037a464768bc5bada8b02d93b64e18186ae5cb7e"
dependencies = [
"cmake",
"cc",
"glob",
]
[[package]]

View file

@ -19,14 +19,14 @@ are not currently supported (but pull-requests are welcome). librashader does no
APIs such as older versions of OpenGL, or legacy versions of Direct3D.
| **API** | **Status** | **`librashader` feature** |
|-------------|------------|--------------------------|
|-------------|------------|---------------------------|
| OpenGL 3.3+ | ✔ | `gl` |
| OpenGL 4.6 | ✔ | `gl` |
| Vulkan | ✔ | `vk` |
| Direct3D 11 | ✔ | `d3d11` |
| Direct3D 12 | ✔ | `d3d12` |
| wgpu | ✔ | `wgpu` |
| Metal | ❌ | |
| WebGPU | ❌ | |
✔ = Render API is supported — ❌ Render API is not supported
@ -91,18 +91,11 @@ static GL_DEFAULT_MVP: &[f32; 16] = &[
### Building
librashader requires the following build time dependencies
* The [Vulkan SDK](https://www.lunarg.com/vulkan-sdk/)
* [CMake 3.8 or later](https://cmake.org/)
For DXIL support on Windows, the following is also needed
* [Meson](https://mesonbuild.com/)
* [Python 3.6 or later](https://www.python.org/)
librashader requires the [Vulkan SDK](https://www.lunarg.com/vulkan-sdk/).
---
For Rust projects, simply add the crate tofil your `Cargo.toml`.
For Rust projects, simply add the crate to your `Cargo.toml`.
```
cargo add librashader

View file

@ -23,6 +23,5 @@ mod util;
pub use filter_chain::FilterChainWgpu;
pub use framebuffer::WgpuOutputView;
pub mod error;
pub mod options;

View file

@ -12,7 +12,6 @@ URL: https://github.com/SnowflakePowered/%{name}
%undefine _disable_source_fetch
Source: {{{ git_dir_pack }}}
BuildRequires: pkgconfig(vulkan)
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: git
BuildRequires: g++

View file

@ -12,7 +12,6 @@ URL: https://github.com/SnowflakePowered/%{name}
%undefine _disable_source_fetch
Source: https://github.com/SnowflakePowered/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
BuildRequires: pkgconfig(vulkan)
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: g++
BuildRequires: ninja-build

View file

@ -6,7 +6,7 @@ arch=('x86_64' 'aarch64')
url="https://github.com/SnowflakePowered/librashader"
license=('MPL-2.0')
groups=('')
depends=('vulkan-icd-loader' 'cmake' 'gcc' 'rust' 'patchelf' 'ninja')
depends=('vulkan-icd-loader' 'gcc' 'rust' 'patchelf' 'ninja')
provides=("$pkgname=$pkgver" 'librashader.so')
backup=('')
source=("$pkgname-$pkgver.tar.xz" 'vendor.tar.xz' 'cargo_config')

View file

@ -12,7 +12,6 @@ Source2: cargo_config
BuildRequires: pkgconfig(vulkan)
BuildRequires: ninja-build
BuildRequires: patchelf
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cargo