Skip to content
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

Add .sh and .bat files for easer configuring and compile. #280

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

celisej567
Copy link

Squirrel have this compile instructions for CMake:

  • mkdir build # Create temporary build directory
  • cd build
  • cmake .. CMake will determine all the necessary information, including the platform (32- vs. 64-bit)
  • make
  • make install
  • cd ..; rm -r build

This this works good, but may be complicated for someone who want to fastly compile squirrel without having to write alot of commands in console.
Ive made simple .sh and .bat files for Unix and Windows platforms. They do basically same (unless instead of make for compile they uses cmake ) but everything for you. You still can specify params for cmake and compile. Here is quick instruction:

  • configure.sh/.bat [ params ] - configures project for you using params as cmake launch options. Can be called without any launch options.
  • build.sh/.bat [ build_type = release ] - build project with build_type building type to the \build\bin\ folder. Can be called without any launch options.

I'm not saying make this the main type of building, but as a lazy alternative.

@celisej567
Copy link
Author

celisej567 commented Apr 15, 2024

k im stupid and i have added wrong commits as well. Thats why its not compiling for you.
you need latest four commits

@emmanuel-aubertin
Copy link

Well, I'm closing my PR because all the commits are there 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants