Sha256: a6d304657ced4612032ca828ef9c5ee774cb7a7dee47aa4f48ca649eba80e810

Contents?: true

Size: 1.05 KB

Versions: 16

Compression:

Stored size: 1.05 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_deep_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

16 entries across 16 versions & 1 rubygems

Version Path
ceedling-0.29.1 lib/ceedling/rules_preprocess.rake
ceedling-0.29.0 lib/ceedling/rules_preprocess.rake
ceedling-0.13.0 lib/rules_preprocess.rake
ceedling-0.13.0.rc1 lib/rules_preprocess.rake
ceedling-0.12.2 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.12.1 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.12.0 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.11.2 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.11.1 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.11.0 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.10.0 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.9.4 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.9.2 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.9.0 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.0.18 new_project_template/vendor/ceedling/lib/rules_preprocess.rake
ceedling-0.0.17 new_project_template/vendor/ceedling/lib/rules_preprocess.rake