OOLua  2.0.1
C++ and Lua binding
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
File amalgamation

Header and source file amalgamation. More...

Functions

function amalgamate (include_dir, src_dir, output_dir)
 Generates an amalgamated header and source file for the library. More...
 

Detailed Description

Header and source file amalgamation.

The module "oolua_amalgamation" returns a table containing a single function, amalgamate.

return {
}

This function concatenates all of the library's header files to produce the file oolua.h, and similarly the source files to produce the file oolua.cpp. The two files will contain all the functionality of the library and could quickly be integrated into your project

You can produce the files using either the module with Lua or premake4.

Lua module:

lua -e "require('build_scripts.oolua_amalgamation').amalgamate('./include/', './src/', './')"

Premake4:

Generating the amalgamated files with premake4, will create the files oolua.h and oolua.cpp that will be located in the directory "amal".

premake4 oolua-amalgam

Function Documentation

function amalgamate ( include_dir  ,
src_dir  ,
output_dir   
)

Generates an amalgamated header and source file for the library.

–]]

Parameters
include_dirDirectory containing the header files
src_dirDirectory containing the source files
output_dirOutput directory for the amalgamated files

Concatenates all the header files from include_dir and separately the source files from src_dir, producing the outputs oolua.h and oolua.cpp respectively. These two files, located in output_dir, contain all the functionality of the library.