Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: some sort of now taking a Ruby string, running through rtosc, re…
…turning a ruby array
- Loading branch information
Showing
8 changed files
with
76 additions
and
49 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,4 +1,22 @@ | ||
require 'mkmf' | ||
|
||
LIBDIR = RbConfig::CONFIG['libdir'] | ||
INCLUDEDIR = RbConfig::CONFIG['includedir'] | ||
|
||
HEADER_DIRS = ["/Users/xavierriley/Projects/rtosc/include/rtosc", INCLUDEDIR] | ||
|
||
# setup constant that is equal to that of the file path that holds that static libraries that will need to be compiled against | ||
LIB_DIRS = [LIBDIR, File.expand_path(File.join(File.dirname(__FILE__), "lib"))] | ||
|
||
# array of all libraries that the C extension should be compiled against | ||
libs = ['-lrtosc'] | ||
|
||
extension_name = 'fast_osc' | ||
dir_config(extension_name) | ||
dir_config(extension_name, HEADER_DIRS, LIB_DIRS) | ||
|
||
# iterate though the libs array, and append them to the $LOCAL_LIBS array used for the makefile creation | ||
libs.each do |lib| | ||
$LOCAL_LIBS << "#{lib} " | ||
end | ||
|
||
create_makefile(extension_name) |
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
Binary file not shown.
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
Binary file not shown.
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