-
Notifications
You must be signed in to change notification settings - Fork 12
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
Allow libgraphql parser to optionally be built with cmake #21
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, impressivel! Looks good to me.
I guess since Travis is green, and isn't making a manual install, we can assume it's using the bundled-in version, right?
.gitmodules
Outdated
@@ -0,0 +1,6 @@ | |||
[submodule "ext/--force"] | |||
path = ext/--force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, did this sneak in somehow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup! fixed!
Yup! Travis is no longer installing libgraphqlparser anymore. It comes from the bundled gem. |
@rmosolgo Any thing else needed for this? |
This looks great, thanks for the bump! |
Taking a try locally and hitting:
It seems like |
Interesting. Full disclosure, I developed this on linux and did not test on a mac. let me take a look and see if i can get it working on a mac. |
@rmosolgo I figured out the issue. Essentially we need to use http://thecourtsofchaos.com/2013/09/16/how-to-copy-and-relink-binaries-on-osx/ |
Hey @rmosolgo, I see this has been merged but no new release has been created since then. Do you plan to create a new release that includes this change? |
Sorry, I got hung up trying to run it locally and haven't tried again! It looks like there's a lead above, but I want to be able to run the tests locally before releasing a version. Do you want to take a crack at it? |
opened a proper issue here: #25 |
Manually installing graphql is a big burden for entry for using this gem. It takes time, manual effort, and we can't ensure the version of
libgraphql
parser is compatible.Many users already have
cmake
and a modern c++ compiler installed on their system. As a result, we can compilelibgraphql
in the gem install process. This makes installing the gem a breeze for many users.If they do not have cmake, or something goes wrong, we just fall back to the old method of looking up the library. Thus, this PR does not affect users which do not have
cmake
.