Sha256: 1cd26a5500f6c6f49fdd12df35b4ef5467c7b42b35243975d9ca2d058e0d3e9f

Contents?: true

Size: 1.06 KB

Versions: 9

Compression:

Stored size: 1.06 KB

Contents


# invocations against this rule should only happen when enhanced dependencies are enabled;
# otherwise, dependency tracking will be too shallow and preprocessed files could intermittently
#  fail to be updated when they actually need to be.
rule(/#{PROJECT_TEST_PREPROCESS_FILES_PATH}\/.+/ => [
    proc do |task_name|
      @ceedling[:file_finder].find_test_or_source_or_header_file(task_name)
    end  
  ]) do |file|
  if (not @ceedling[:configurator].project_use_auxiliary_dependencies)
    raise 'ERROR: Ceedling preprocessing rule invoked though neccessary auxiliary dependency support not enabled.'
  end
  @ceedling[:generator].generate_preprocessed_file(TEST_SYM, file.source)
end


# invocations against this rule can always happen as there are no deeper dependencies to consider
rule(/#{PROJECT_TEST_PREPROCESS_INCLUDES_PATH}\/.+/ => [
    proc do |task_name|
      @ceedling[:file_finder].find_test_or_source_or_header_file(task_name)
    end  
  ]) do |file|
  @ceedling[:generator].generate_shallow_includes_list(TEST_SYM, file.source)
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ceedling-0.0.16 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.0.15 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.0.14 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.0.13 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.0.12 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.0.8 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.0.7 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.0.5 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.0.4 new_project_template/vendor/ceedling/lib/rules_preprocess.rake