Lines Matching refs:sources

174     """All OBJECT libraries whose sources have not been absorbed."""
234 def WriteAction(out, target, project, sources, synthetic_dependencies):
267 for sources_type_name in sources.values():
295 def WriteActionForEach(out, target, project, sources, synthetic_dependencies):
297 inputs = target.properties.get('sources', [])
338 if 'input' in sources:
339 WriteVariable(out, sources['input'], ' ')
359 def WriteCopy(out, target, project, sources, synthetic_dependencies):
360 inputs = target.properties.get('sources', [])
390 for sources_type_name in sources.values():
405 def WriteCompilerFlags(out, target, project, sources):
407 if not 'c' in sources and not 'cxx' in sources:
410 # Mark uncompiled sources as uncompiled.
411 if 'input' in sources:
412 SetFilesProperty(out, sources['input'], 'HEADER_FILE_ONLY', ('True',), '')
413 if 'other' in sources:
414 SetFilesProperty(out, sources['other'], 'HEADER_FILE_ONLY', ('True',), '')
416 # Mark object sources as linkable.
417 if 'obj' in sources:
418 SetFilesProperty(out, sources['obj'], 'EXTERNAL_OBJECT', ('True',), '')
455 if 'c' in sources and not any(k in sources for k in ('asm', 'cxx', 'objc', 'objcc')):
457 elif 'cxx' in sources and not any(k in sources for k in ('asm', 'c', 'objc', 'objcc')):
459 elif 'objc' in sources and not any(k in sources for k in ('asm', 'c', 'cxx', 'objcc')):
461 elif 'objcc' in sources and not any(k in sources for k in ('asm', 'c', 'cxx', 'objc')):
466 if 'asm' in sources and cflags_asm:
467 SetFilesProperty(out, sources['asm'], 'COMPILE_FLAGS', cflags_asm, ' ')
468 if 'c' in sources and cflags_c:
469 SetFilesProperty(out, sources['c'], 'COMPILE_FLAGS', cflags_c, ' ')
470 if 'cxx' in sources and cflags_cxx:
471 SetFilesProperty(out, sources['cxx'], 'COMPILE_FLAGS', cflags_cxx, ' ')
472 if 'objc' in sources and cflags_objc:
473 SetFilesProperty(out, sources['objc'], 'COMPILE_FLAGS', cflags_objc, ' ')
474 if 'objcc' in sources and cflags_objcc:
475 SetFilesProperty(out, sources['objcc'], 'COMPILE_FLAGS', cflags_objcc, ' ')
499 all_sources = target.properties.get('sources', [])
501 # As of cmake 3.11 add_library must have sources. If there are
502 # no sources, add empty.cpp as the file to compile.
516 # OBJECT library dependencies need to be listed as sources.
527 sources = {}
530 sources[source_type] = '${target}__' + source_type + '_srcs'
531 SetVariableList(out, sources[source_type], sources_of_type)
532 return sources
547 sources = WriteSourceVariables(out, target, project)
551 WriteAction(out, target, project, sources, synthetic_dependencies)
553 WriteActionForEach(out, target, project, sources, synthetic_dependencies)
555 WriteCopy(out, target, project, sources, synthetic_dependencies)
562 for sources_type_name in sources.values():
571 WriteCompilerFlags(out, target, project, sources)
577 # Transitive OBJECT libraries are in sources.
578 # Those sources are dependent on the OBJECT library dependencies.
579 # Those sources cannot bring in library dependencies.