module RakeCompile::DSL
Public Instance Methods
base_cc_flags(flags)
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 13 def base_cc_flags(flags) RakeCompile::Application.app.base_cc_flags = flags end
base_cpp_flags(flags)
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 21 def base_cpp_flags(flags) RakeCompile::Application.app.base_cpp_flags = flags end
base_ld_flags(flags)
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 29 def base_ld_flags(flags) RakeCompile::Application.app.base_ld_flags = flags end
build_directory(dir)
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 8 def build_directory(dir) directory dir RakeCompile::Application.app.build_directory = dir end
cc_flags(flags)
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 17 def cc_flags(flags) RakeCompile::Application.app.cc_flags = flags end
cpp_flags(flags)
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 25 def cpp_flags(flags) RakeCompile::Application.app.cpp_flags = flags end
executable(name) { |t| ... }
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 53 def executable(name) Target.define_executable_task(name) do |t| yield t end clear_build_state end
ld_flags(flags)
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 33 def ld_flags(flags) RakeCompile::Application.app.ld_flags = flags end
link_library(library)
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 37 def link_library(library) RakeCompile::Application.app.libraries << library end
pch(name)
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 41 def pch(name) RakeCompile::Application.app.pch = name end
static_library(name) { |t| ... }
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 45 def static_library(name) Target.define_static_library_task(name) do |t| yield t end clear_build_state end
Private Instance Methods
clear_build_state()
click to toggle source
# File lib/rake-compile/dsl_definition.rb, line 62 def clear_build_state cpp_flags('') cc_flags('') RakeCompile::Application.app.libraries.clear() RakeCompile::Application.app.pch = nil end