| 656 | return result |
| 657 | |
| 658 | def generated_targets (self, sources, prop_set, project, name): |
| 659 | |
| 660 | # sources to pass to inherited rule |
| 661 | sources2 = [] |
| 662 | # sources which are libraries |
| 663 | libraries = [] |
| 664 | |
| 665 | # Searched libraries are not passed as argument to linker |
| 666 | # but via some option. So, we pass them to the action |
| 667 | # via property. |
| 668 | fsa = [] |
| 669 | fst = [] |
| 670 | for s in sources: |
| 671 | if type.is_derived(s.type(), 'SEARCHED_LIB'): |
| 672 | n = s.real_name() |
| 673 | if s.shared(): |
| 674 | fsa.append(n) |
| 675 | |
| 676 | else: |
| 677 | fst.append(n) |
| 678 | |
| 679 | else: |
| 680 | sources2.append(s) |
| 681 | |
| 682 | add = [] |
| 683 | if fsa: |
| 684 | add.append("<find-shared-library>" + '&&'.join(fsa)) |
| 685 | if fst: |
| 686 | add.append("<find-static-library>" + '&&'.join(fst)) |
| 687 | |
| 688 | spawn = generators.Generator.generated_targets(self, sources2, prop_set.add_raw(add), project, name) |
| 689 | return spawn |
| 690 | |
| 691 | |
| 692 | def register_linker(id, source_types, target_types, requirements): |