0ph1uch1 / amalgamate

C++ source file amalgamation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Amalgamate

C++ source file amalgamation

How to Use

python3 main.py config.json

How to Configure

Complete your config file in json, see test/sample.json

baseDirectory The directory for all the relative paths. Can be a relative path (to current working directory) or an absolute path.

sources Source files to be amalgamated. Folder is supported. If folder is supplied, all the files in it with extension defined in extension.source and extension.header will be amalgamated.

headers Header files to be amalgamated. Only the files with extension defined in extension.header will be amalgamated.

sourceDest Output source file.

headerDest Output header file.

prologue Write your license here.

includeDirectory The include directories used when compile. Amalgamation will auto detect them to decide whether keep this include, replace with included file or just delete them.

removeTwoSlashComments Whether to remove the comments started with //.

extension.source and extension.header decide which file will be amalgamated.

About

C++ source file amalgamation

License:GNU Affero General Public License v3.0


Languages

Language:Python 92.2%Language:C++ 6.8%Language:C 1.0%