Lines Matching full:sources
134 CMakeTargetType.custom = CMakeTargetType('add_custom_target', 'SOURCES',
173 """All OBJECT libraries whose sources have not been absorbed."""
233 def WriteAction(out, target, project, sources, synthetic_dependencies): argument
266 for sources_type_name in sources.values():
294 def WriteActionForEach(out, target, project, sources, synthetic_dependencies): argument
296 inputs = target.properties.get('sources', [])
337 if 'input' in sources:
338 WriteVariable(out, sources['input'], ' ')
358 def WriteCopy(out, target, project, sources, synthetic_dependencies): argument
359 inputs = target.properties.get('sources', [])
382 for sources_type_name in sources.values():
397 def WriteCompilerFlags(out, target, project, sources): argument
399 if not 'c' in sources and not 'cxx' in sources:
402 # Mark uncompiled sources as uncompiled.
403 if 'input' in sources:
404 SetFilesProperty(out, sources['input'], 'HEADER_FILE_ONLY', ('True',), '')
405 if 'other' in sources:
406 SetFilesProperty(out, sources['other'], 'HEADER_FILE_ONLY', ('True',), '')
408 # Mark object sources as linkable.
409 if 'obj' in sources:
410 SetFilesProperty(out, sources['obj'], 'EXTERNAL_OBJECT', ('True',), '')
442 if 'c' in sources and not any(k in sources for k in ('asm', 'cxx')):
444 elif 'cxx' in sources and not any(k in sources for k in ('asm', 'c')):
449 if 'asm' in sources and cflags_asm:
450 SetFilesProperty(out, sources['asm'], 'COMPILE_FLAGS', cflags_asm, ' ')
451 if 'c' in sources and cflags_c:
452 SetFilesProperty(out, sources['c'], 'COMPILE_FLAGS', cflags_c, ' ')
453 if 'cxx' in sources and cflags_cxx:
454 SetFilesProperty(out, sources['cxx'], 'COMPILE_FLAGS', cflags_cxx, ' ')
479 for source in target.properties.get('sources', []):
488 # OBJECT library dependencies need to be listed as sources.
499 sources = {}
502 sources[source_type] = '${target}__' + source_type + '_srcs'
503 SetVariableList(out, sources[source_type], sources_of_type)
504 return sources
519 sources = WriteSourceVariables(out, target, project)
523 WriteAction(out, target, project, sources, synthetic_dependencies)
525 WriteActionForEach(out, target, project, sources, synthetic_dependencies)
527 WriteCopy(out, target, project, sources, synthetic_dependencies)
534 for sources_type_name in sources.values():
543 WriteCompilerFlags(out, target, project, sources)
549 # Transitive OBJECT libraries are in sources.
550 # Those sources are dependent on the OBJECT library dependencies.
551 # Those sources cannot bring in library dependencies.