Lines Matching full:task
1 # # @param task [FFI::Compiler::CompileTask] task to configure
2 def configure_common_compile_task(task) argument
11 task.add_include_path third_party_path
12 task.add_define 'NDEBUG'
13 task.cflags << "-std=gnu99 -O3"
16 ].each { |file| task.exclude << "/#{file}.c" }
17 task.ext_dir = src_dir
18 task.source_dirs = [src_dir]
20 task.cflags << "-Wall -Wsign-compare -Wno-declaration-after-statement"
24 # FFI::CompilerTask's constructor walks the filesystem at task definition time
26 # copied into place before the task is defined for it to work correctly.
33 task :default do
36 # `copy_third_party` task has been executed since initial task definition.
37 # If so, run the task definition block now and invoke it explicitly.
40 Rake::Task[:default].invoke
85 protobuf_c_task = Rake::Task[:default]
86 protobuf_c_shared_lib_task = Rake::Task[protobuf_c_task.prereqs.last]
87 ruby_upb_shared_lib_task = Rake::Task[:"ffi-upb:default"].prereqs.first
88 Rake::Task[ruby_upb_shared_lib_task].prereqs.each do |dependency|
96 task :default do