diff --git a/lutin/z_system/lutinSystem_Android_c.py b/lutin/z_system/lutinSystem_Android_c.py new file mode 100644 index 0000000..24da96d --- /dev/null +++ b/lutin/z_system/lutinSystem_Android_c.py @@ -0,0 +1,22 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +## +## @author Edouard DUPIN +## +## @copyright 2012, Edouard DUPIN, all right reserved +## +## @license APACHE v2.0 (see license file) +## + +from lutin import debug +from lutin import system +from lutin import tools +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.help = "C: Generic C library" + self.valid = True + diff --git a/lutin/z_system/lutinSystem_Android_opengl.py b/lutin/z_system/lutinSystem_Android_opengl.py new file mode 100644 index 0000000..3876bd8 --- /dev/null +++ b/lutin/z_system/lutinSystem_Android_opengl.py @@ -0,0 +1,35 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +## +## @author Edouard DUPIN +## +## @copyright 2012, Edouard DUPIN, all right reserved +## +## @license APACHE v2.0 (see license file) +## + +from lutin import debug +from lutin import system +from lutin import tools +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.help = "OpenGL: Generic graphic library" + self.valid = True + # no check needed ==> just add this: + self.add_module_depend([ + 'c', + ]) + """ + self.add_header_file([ + "/usr/include/GL/*" + ], + destination_path="GL", + recursive=True) + """ + self.add_export_flag('link-lib', "GLESv2") + + diff --git a/lutin/z_system/lutinSystem_Android_pthread.py b/lutin/z_system/lutinSystem_Android_pthread.py new file mode 100644 index 0000000..08247c9 --- /dev/null +++ b/lutin/z_system/lutinSystem_Android_pthread.py @@ -0,0 +1,34 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +## +## @author Edouard DUPIN +## +## @copyright 2012, Edouard DUPIN, all right reserved +## +## @license APACHE v2.0 (see license file) +## + +from lutin import debug +from lutin import system +from lutin import tools +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.help="pthread : Generic multithreading system\n Can be install with the package:\n - pthread-dev" + # check if the library exist: + """ + if not os.path.isfile("/usr/include/pthread.h"): + # we did not find the library reqiested (just return) (automaticly set at false) + return; + """ + self.valid = True + # todo : create a searcher of the presence of the library: + #self.add_export_flag("link-lib", "pthread") + self.add_module_depend([ + 'c' + ]) + +