Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a "one file" compilation of the library (one header file, one source file) #10

Open
GoogleCodeExporter opened this issue Aug 25, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

It's been suggested that a one-file distribution would be nice.

If I had time I would write a Python script to do it (so it can be run on any 
platform).

Here's what I think the script would need to look like:

For each source file it would need to strip of the licence header and add a 
#file directive with the correct file and line information

For each line containing #include it would need to comment out the #include and 
either:
    for system includes, add it to a system include list if it wasn't already there
    for oscpack includes, just skip it

The files need to be pasted together in order

The final assembly looks like this:

/////////////
description block
do not modify this file, it is generated from source
/////////////
licence block
/////////////
concatenated portable sources
/////////////
#include oscpackonefile.h
#ifdef win32 etc
windows platform includes
concatenated windows oscpack sources
#else
posix includes
concatenated posix oscpack sources
#endif


Maybe put the version, generation date and svn revision in the header block.

Original issue reported on code.google.com by ross.bencina on 4 Mar 2013 at 11:41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant