You also have some more options, all of them to varying degrees bad:
a.) You could create symlinks. This assumes that you’re file system
supports them (practically speaking, NTFS on Vista+), that your source
control system doesn’t create problems with them and that you don’t ever try
to build this on a system that doesn’t support symlinks.
b.) You could do the same, but with hardlinks. Source control systems
frequently break these, with the result being two separate files when you
check them out. Also, archiving might do this as well.
c.) As a variation on a or b, you could create a build step that creates
the links before building and deletes them when done so that they do not get
scc’d.
In the end, you are probably better off building a library, ugly though it
can be in some cases.
Good luck,
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary G. Little
Sent: Monday, August 23, 2010 11:10 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How to share source code when we develop Windows device
drivers
Now, if you think that is fugly, good, because your better choice is the lib
file. The problem, as I recall, having attempted the same thing, is that
while the build process takes “…\file.x”, it won’t take “…..\file.x”.
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M. M. O’Brien
Sent: Monday, August 23, 2010 9:36 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How to share source code when we develop Windows device
drivers
I think that Ken means something like:
Source1.c:
Source2.c:
#include “source1.c”
Good luck,
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Monday, August 23, 2010 10:36 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] How to share source code when we develop Windows device
drivers
> Use a source file that #includes the target source file.
I can’t understand this sentence.
Give me a little detail or an example please.
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer