abassibe / Gomoku

2 stars 0 forks source link

Improve a bit the script to build the project #75

Closed demonoidv closed 3 years ago

demonoidv commented 3 years ago

This is done to avoid errors like targeting the wrong .dylib library and handle errors better.

Also, this PR adds execute rights on the script file to be able to run it using ./ syntax and take advantage of the shebang without having to chmod the file manually.

Oh, yeah, I forgot something which could be interesting, the script now uses the env var GOMOKU_RUST_LIB_PATH to move the produced .dylib into the current working directory. If the env var is not defined then the default path is used, which is target/release/librust_ext.dylib. I thought it could be nice to be able to set this path outside of the project environment.

Let me know what you think about those changes!