Compare commits
No commits in common. "1d16a430876357790d423ee83c0d4591217741d2" and "c6bdfb14009fa1c910d1a630fd86f3bc4461456a" have entirely different histories.
1d16a43087
...
c6bdfb1400
3 changed files with 5 additions and 42 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "bevy_scriptum"
|
name = "bevy_scriptum"
|
||||||
authors = ["Jaroslaw Konik <konikjar@gmail.com>"]
|
authors = ["Jaroslaw Konik <konikjar@gmail.com>"]
|
||||||
version = "0.9.1"
|
version = "0.9.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
||||||
|
|
@ -5,20 +5,6 @@
|
||||||
To build `bevy_scriptum` with Ruby support a Ruby installation is needed to be
|
To build `bevy_scriptum` with Ruby support a Ruby installation is needed to be
|
||||||
present on your development machine.
|
present on your development machine.
|
||||||
|
|
||||||
### Linux
|
|
||||||
|
|
||||||
#### Requirements
|
|
||||||
|
|
||||||
- clang
|
|
||||||
- Ruby installation compiled with clang
|
|
||||||
|
|
||||||
#### Clang installation
|
|
||||||
|
|
||||||
For `clang` installation instruction consult your
|
|
||||||
OS vendor provided documentation or [clang official webiste](https://clang.llvm.org).
|
|
||||||
|
|
||||||
#### Ruby installation
|
|
||||||
|
|
||||||
The easiest way to produce a compatible Ruby installation is to use [rbenv](https://rbenv.org/).
|
The easiest way to produce a compatible Ruby installation is to use [rbenv](https://rbenv.org/).
|
||||||
|
|
||||||
After installing `rbenv` along with its `ruby-build` plugin you can build and
|
After installing `rbenv` along with its `ruby-build` plugin you can build and
|
||||||
|
|
@ -29,6 +15,8 @@ CC=clang rbenv install 3.4.4
|
||||||
```
|
```
|
||||||
|
|
||||||
Above assumes that you also have `clang` installed on your system.
|
Above assumes that you also have `clang` installed on your system.
|
||||||
|
For `clang` installation instruction consult your
|
||||||
|
OS vendor provided documentation or [clang official webiste](https://clang.llvm.org).
|
||||||
|
|
||||||
If you rather not use `rbenv` you are free to supply your own installation of
|
If you rather not use `rbenv` you are free to supply your own installation of
|
||||||
Ruby provided the following is true about it:
|
Ruby provided the following is true about it:
|
||||||
|
|
@ -38,26 +26,7 @@ Ruby provided the following is true about it:
|
||||||
- it is accessible as `ruby` within `PATH` or `RUBY` environment variable is set
|
- it is accessible as `ruby` within `PATH` or `RUBY` environment variable is set
|
||||||
to path of desired `ruby` binary.
|
to path of desired `ruby` binary.
|
||||||
|
|
||||||
### Windows
|
## Main Library
|
||||||
|
|
||||||
#### Requirements
|
|
||||||
|
|
||||||
- clang
|
|
||||||
- Ruby
|
|
||||||
|
|
||||||
#### Clang installation
|
|
||||||
|
|
||||||
Clang can be installed on Windows using `Visual Studio Installer`(select `Desktop
|
|
||||||
Development With C++ ->> C++ Clang tool for Windows` package).
|
|
||||||
|
|
||||||
`LIBCLANG_PATH` environment variable also has to be set to clang installation `bin`
|
|
||||||
directory when compiling. This typically is `C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64\lib`.
|
|
||||||
|
|
||||||
#### Ruby installation
|
|
||||||
|
|
||||||
On Windows Ruby can be installed using [RubyInstaller](https://rubyinstaller.org/) among others.
|
|
||||||
|
|
||||||
## bevy_scriptum
|
|
||||||
|
|
||||||
Add the following to your `Cargo.toml`:
|
Add the following to your `Cargo.toml`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -510,7 +510,7 @@ impl<R: Runtime> Default for Callbacks<R> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(debug_assertions, unix))]
|
#[cfg(debug_assertions)]
|
||||||
pub extern "C" fn is_rdynamic_linking() -> bool {
|
pub extern "C" fn is_rdynamic_linking() -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
// Get a function pointer to itself
|
// Get a function pointer to itself
|
||||||
|
|
@ -524,12 +524,6 @@ pub extern "C" fn is_rdynamic_linking() -> bool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(not(debug_assertions), not(unix)))]
|
|
||||||
pub extern "C" fn is_rdynamic_linking() -> bool {
|
|
||||||
// On Windows or in release builds, return a default value
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
pub mod prelude {
|
pub mod prelude {
|
||||||
pub use crate::{BuildScriptingRuntime as _, Runtime as _, Script};
|
pub use crate::{BuildScriptingRuntime as _, Runtime as _, Script};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue