|
Building
Building OOLua version 1.3 RequirementsPremakeMakefiles, IDE Projects and use of Build Scripts: Premake - version 4.2 Premake quick start Additionally for Unit Tests or use of Test Unit Scripts: Cpp UnitCppUnit - version 1.12.1 Getting to know CppUnit Google MockGoogle Mock - version 1.4 or 1.5
Compile ScriptsTwo type of scripts are present test unit scripts and build scripts. Test ScriptsNaming is of the format [make or IDE]_tests.[sh or bat] When run from the test_unit directory these will produce compiler and test unit output saved to disk located in a directory create named "../build_logs". These scripts clean up any other files produced during there running. Build ScriptsNaming is of the format [make of IDE]_build.[sh or bat] When run in the test_unit directory it compiles the library debug and release versions. These static libraries can be found in the "local_install" directory along with copies of the header files in a directory below this named "oolua". All other files created during the running are deleted. Building Makefiles or IDE projectsOOLUA's source and header files can added to your project or be compiled as a static library. To compile as a static library or to run the UnitTests, Premake version 4 is the recommended method to generate make files/IDE projects. This can either be accomplish using the following details or using the pre-existing bash or bat files( see Compile_Scripts). Premake Formatpremake4 [make or IDE] [target operation system] Makefilepremake4 gmake []
Xcodepremake4 xcode3 macosx macosx is required Visual Studiopremake4 vs[] windows windows is required
Visual Studio 2010Visual Studio 2010 (vs10) is not currently supported by premake yet if you have vs10 installed you can run the following command, it will generate vs9 projects and update them using the vs10 command line tool. premake4 vs2010 As vs10 adds files which have not been created directly by premake, a specific clean operation has been added to the premake script. premake4 cleanVS10 Scripts to build a local install, build and run unit test etc. have been added for vs10 in the script directory. Code::Blockspremake4 codeblocks []
ConfigA configuration header is now included to control what features are present in the library, see oolua_config.h for more information. To turn a feature on, define it to have a default value of 1 in config or predefine it to have this value.
Error NoteIt is an error to have both OOLUA_USE_EXCEPTIONS and OOLUA_STORE_LAST_ERROR set to 1 File generatorThe library comes with a file generator project which when compiled is a command line executable. Running it allows you to easily generate C++ source files with new limits set via the command line.
| |||||||||||||||||||||||||||||||||||||||