forked from mark-moseley/ruby_core_source
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Description | ||
Fork of [ruby\_core\_source](https://github.com/mark-moseley/ruby_core_source) | ||
that uses included Ruby headers (\*.h and \*.inc) instead of downloading | ||
them. Used by [debugger](http://github.com/cldwalker/debugger). | ||
|
||
##Usage | ||
|
||
Example use in extconf.rb: | ||
|
||
```ruby | ||
require 'ruby_core_source' | ||
hdrs = proc { have_header("vm_core.h") and have_header("iseq.h") } | ||
dir_config("ruby") # allow user to pass in non-standard core include directory | ||
if !Ruby_core_source::create_makefile_with_core(hdrs, "foo") | ||
# error | ||
exit(1) | ||
end | ||
``` | ||
|
||
To add another ruby version's source to this gem's directory: | ||
|
||
$ rake add_source VERSION=1.9.3-p0 | ||
|
||
## LICENSE | ||
Ruby library code is MIT license, see LICENSE. Included ruby headers, | ||
lib/debugger/ruby\_core\_source/, are mostly Ruby license, see RUBY\_LICENSE. Some headers have | ||
their own licenses, see LEGAL. |