Top Level Namespace

Defined Under Namespace

Modules: <%= full_module_name %>, Cumo, DeclMethod, NArrayMethod, NArrayType, NMathMethod, StoreFrom Classes: DefAlias, DefAllocFunc, DefClass, DefConst, DefError, DefInclueModule, DefLib, DefMethod, DefModule, DefModuleFunction, DefStruct, ErbPP, Store, StoreArray, StoreNum, UndefAllocFunc, UndefMethod, UndefSingletonMethod

Constant Summary collapse

HEADER_DIRS =
(ENV['CPATH'] || '').split(File::PATH_SEPARATOR)
LIB_DIRS =
(ENV['LIBRARY_PATH'] || '').split(File::PATH_SEPARATOR)

Instance Method Summary collapse

Instance Method Details

#create_dependObject



13
14
15
16
17
18
19
20
21
22
23
# File 'ext/cumo/extconf.rb', line 13

def create_depend
  message "creating depend\n"
  File.open(d("depend"), "w") do |depend|
    depend_erb_path = d("depend.erb")
    File.open(depend_erb_path, "r") do |depend_erb|
      erb = ERB.new(depend_erb.read)
      erb.filename = depend_erb_path
      depend.print(erb.result)
    end
  end
end

#d(file) ⇒ Object



9
10
11
# File 'ext/cumo/extconf.rb', line 9

def d(file)
  File.join(__dir__, file)
end