generated from ParadoxV5/template-ruby-gem
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Extension Gem using
rake-compiler
Part 1
- Loading branch information
Showing
15 changed files
with
68 additions
and
181 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,2 +1,13 @@ | ||
require 'mkmf' | ||
|
||
# Detect (Windows) stand-alone MinGW without MSYS2 (AKA DevKit) | ||
unless CROSS_COMPILING or RbConfig::CONFIG['build_os'] != 'mingw32' or find_executable 'msys2' | ||
# Monkeypatch {MakeMakefile#find_header} to prevent translation to MSYS `/C/some/path/` | ||
def mkintpath(path) = path | ||
end | ||
|
||
include = File.expand_path '../../include/', __FILE__ | ||
find_header 'godot_rb.h', include | ||
find_header 'godot/gdextension_interface.h', include | ||
|
||
create_makefile 'godot_rb' |
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 |
---|---|---|
|
@@ -112,3 +112,5 @@ bool godot_rb_protect(void (* function)(va_list* args), ...) { | |
} | ||
return true; | ||
} | ||
|
||
void Init_godot_rb() {} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.