home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / srcpool.pak / SRCPOOL.TXT < prev   
Encoding:
Text File  |  1997-07-24  |  2.4 KB  |  51 lines

  1. Instructions for the IDE example SRCPOOL.IDE.
  2. //
  3. // Instructions for SrcPool.IDE
  4. // Copyright Borland International, 1994
  5. //
  6.  
  7. This project demonstrates the use of a simple Source Pool by "reference
  8. copying" a set of source nodes within a project.
  9.  
  10. Source Pools are abstract container objects that hold dependencies.
  11. Although Source Pools are not buildable and runnable by themselves,
  12. they can be moved or copied (usually by reference) to real targets. When
  13. copied, they take on the options and target attributes of the context
  14. in which they are copied. When the project make facility is checking
  15. dependencies, or building a response table for linkers and librarians,
  16. the Source Pool itself becomes invisible and the nodes referenced by
  17. the Source Pool are seen as a direct dependency of the target.
  18.  
  19. Reference copying allows one node (and all of it's dependencies) to be
  20. referenced in many different places within the Project Tree. In this
  21. example we copy a Source Pool by reference to two different targets (a
  22. 16-bit target and a 32-bit target, both called WHELLO.EXE). When you copy
  23. Source Pool by reference, all referenced copies are automatically updated
  24. whenever you add, delete, or modify the original Source Pool nodes.
  25.  
  26. NOTE: The example here assumes that you've looked at the example in the
  27. 'MultiTrg' directory and are familiar with creating several targets in a
  28. single project and setting local options on a target node.
  29.  
  30. To create a Source Pool in an existing project:
  31. 1) Select Project|New Target from the main menu
  32. 2) Type a Target Name
  33. 3) Select 'SourcePool' from the Target Type list
  34. 4) Press OK to confirm your settings and create a SourcePool node
  35. 5) Select that node in the Project window
  36. 6) Press the Insert key to access the Add Item dialog box
  37. 7) Select the files you want to add to the Source Pool
  38. 8) Press OK to confirm your selections and add the dependencies under
  39.     the SourcePool node
  40.  
  41. Once you've created your SourcePool node and dependencies, you can
  42. copy the node by reference to anywhere in your project:
  43.    While holding down the Alt key, drag the SourcePool node to
  44.    the target node where the Source Pool is needed.
  45.  
  46. More advanced uses of Source Pools include nesting them, which allows
  47. you to logically group source files without changing their location on
  48. disk. All nested Source Pools are 'flattened' during target dependency
  49. checking and creation time.
  50.  
  51.