View Full Version : strip only _required_ source-files from a project?


zulu
25th January 2005, 17:35
hi,
is there a way to "strip out" only the necessary files from a c++ project?

something like "start with the entry-point in my new project A where function x of project B is called,
hunt through the calling-tree and give me all required sourcecode files of Project B"?

i want to use a routine of vdub without compiling the whole beast into my new app..

TIA,
zulu

DaveEL
25th January 2005, 18:12
No automated way as it's quite easy to access random parts of c programs via pointers so its not easy to see whats called as its sometimes decided at runtime.

Which bits of vdub do you want?

DaveEL

zulu
25th January 2005, 20:52
i want to throw together a commandline wav demuxer with build-in resampling functionality.
i don't have the sourcecode at hand, but iirc all i need is the VDProject baseclass and that AviOutStrweamWavThingy class. my first attempt resulted in a bunch of linker errors. though i didn't look too deep into it yet.