diff --git a/lutin/z_system/lutinSystem_IOs_CoreGraphics.py b/lutin/z_system/lutinSystem_IOs_CoreGraphics.py new file mode 100644 index 0000000..3f78616 --- /dev/null +++ b/lutin/z_system/lutinSystem_IOs_CoreGraphics.py @@ -0,0 +1,27 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("CoreAudio : Ios interface for core graphic (all time present, just system interface)") + self.set_valid(True) + # todo : create a searcher of the presence of the library: + self.add_flag("link", "-framework CoreGraphics") + self.add_depend("UIKit") + + diff --git a/lutin/z_system/lutinSystem_IOs_Foundation.py b/lutin/z_system/lutinSystem_IOs_Foundation.py new file mode 100644 index 0000000..af6dee3 --- /dev/null +++ b/lutin/z_system/lutinSystem_IOs_Foundation.py @@ -0,0 +1,27 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("CoreAudio : Ios interface for fundation (all time present, just system interface)") + self.set_valid(True) + # todo : create a searcher of the presence of the library: + self.add_flag("link", "-framework Foundation") + self.add_depend("QuartzCore") + + diff --git a/lutin/z_system/lutinSystem_IOs_GLKit.py b/lutin/z_system/lutinSystem_IOs_GLKit.py new file mode 100644 index 0000000..11a6891 --- /dev/null +++ b/lutin/z_system/lutinSystem_IOs_GLKit.py @@ -0,0 +1,27 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("CoreAudio : Ios interface for openGL (all time present, just system interface)") + self.set_valid(True) + # todo : create a searcher of the presence of the library: + self.add_flag("link", "-framework GLKit") + self.add_depend("Foundation") + + diff --git a/lutin/z_system/lutinSystem_IOs_QuartzCore.py b/lutin/z_system/lutinSystem_IOs_QuartzCore.py new file mode 100644 index 0000000..320977d --- /dev/null +++ b/lutin/z_system/lutinSystem_IOs_QuartzCore.py @@ -0,0 +1,26 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("CoreAudio : Ios interface for core application (all time present, just system interface)") + self.set_valid(True) + # todo : create a searcher of the presence of the library: + self.add_flag("link", "-framework QuartzCore") + + diff --git a/lutin/z_system/lutinSystem_IOs_UIKit.py b/lutin/z_system/lutinSystem_IOs_UIKit.py new file mode 100644 index 0000000..ee879cf --- /dev/null +++ b/lutin/z_system/lutinSystem_IOs_UIKit.py @@ -0,0 +1,27 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("CoreAudio : Ios interface for graphic UX (all time present, just system interface)") + self.set_valid(True) + # todo : create a searcher of the presence of the library: + self.add_flag("link", "-framework UIKit") + self.add_depend("GLKit") + + diff --git a/lutin/z_system/lutinSystem_Linux_pulse.py b/lutin/z_system/lutinSystem_Linux_pulse.py_ similarity index 100% rename from lutin/z_system/lutinSystem_Linux_pulse.py rename to lutin/z_system/lutinSystem_Linux_pulse.py_ diff --git a/lutin/z_system/lutinSystem_MacOs_AppKit.py b/lutin/z_system/lutinSystem_MacOs_AppKit.py new file mode 100644 index 0000000..904c80e --- /dev/null +++ b/lutin/z_system/lutinSystem_MacOs_AppKit.py @@ -0,0 +1,25 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("CoreAudio : MacOs interface for application builder kit (all time present, just system interface)") + self.set_valid(True) + # todo : create a searcher of the presence of the library: + self.add_flag("link", "-framework AppKit") + diff --git a/lutin/z_system/lutinSystem_MacOs_Cocoa.py b/lutin/z_system/lutinSystem_MacOs_Cocoa.py new file mode 100644 index 0000000..e3d5bc0 --- /dev/null +++ b/lutin/z_system/lutinSystem_MacOs_Cocoa.py @@ -0,0 +1,26 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("CoreAudio : MacOs interface for basic cocoa graphic (all time present, just system interface)") + self.set_valid(True) + # todo : create a searcher of the presence of the library: + self.add_flag("link", "-framework Cocoa") + self.add_depend("QuartzCore") + diff --git a/lutin/z_system/lutinSystem_MacOs_QuartzCore.py b/lutin/z_system/lutinSystem_MacOs_QuartzCore.py new file mode 100644 index 0000000..60b9aba --- /dev/null +++ b/lutin/z_system/lutinSystem_MacOs_QuartzCore.py @@ -0,0 +1,26 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("QuartzCore : MacOs interface for base application (all time present, just system interface)") + self.set_valid(True) + # todo : create a searcher of the presence of the library: + self.add_flag("link", "-framework QuartzCore") + self.add_depend("AppKit") + diff --git a/lutin/z_system/lutinSystem_Windows_gdi.py b/lutin/z_system/lutinSystem_Windows_gdi.py new file mode 100644 index 0000000..5f8bb42 --- /dev/null +++ b/lutin/z_system/lutinSystem_Windows_gdi.py @@ -0,0 +1,26 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("OpenGL: Generic graphic library") + self.set_valid(True) + self.add_flag('link-lib', 'gdi32') + + + diff --git a/lutin/z_system/lutinSystem_Windows_kernel.py b/lutin/z_system/lutinSystem_Windows_kernel.py new file mode 100644 index 0000000..8a0a477 --- /dev/null +++ b/lutin/z_system/lutinSystem_Windows_kernel.py @@ -0,0 +1,26 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("OpenGL: Generic graphic library") + self.set_valid(True) + self.add_flag('link-lib', 'kernel32') + + + diff --git a/lutin/z_system/lutinSystem_Windows_opengl.py b/lutin/z_system/lutinSystem_Windows_opengl.py index 8fcd67b..8876f4b 100644 --- a/lutin/z_system/lutinSystem_Windows_opengl.py +++ b/lutin/z_system/lutinSystem_Windows_opengl.py @@ -20,10 +20,15 @@ class System(system.System): # create some HELP: self.set_help("OpenGL: Generic graphic library") self.set_valid(True) - # TODO: this is a real bad dependency ... self.add_depend([ - 'glew' + 'c' ]) - + self.add_flag('link-lib', 'opengl32') + if env.get_isolate_system() == True: + self.add_header_file([ + "/usr/" + target.base_path + "/include/GL/*" + ], + destination_path="GL", + recursive=True) diff --git a/lutin/z_system/lutinSystem_Windows_user.py b/lutin/z_system/lutinSystem_Windows_user.py new file mode 100644 index 0000000..4d32005 --- /dev/null +++ b/lutin/z_system/lutinSystem_Windows_user.py @@ -0,0 +1,26 @@ +#!/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 +from lutin import env +import os + +class System(system.System): + def __init__(self, target): + system.System.__init__(self) + # create some HELP: + self.set_help("OpenGL: Generic graphic library") + self.set_valid(True) + self.add_flag('link-lib', 'user32') + + + diff --git a/lutin/z_target/lutinTarget_Android.py b/lutin/z_target/lutinTarget_Android.py index 76a3618..efb8d74 100644 --- a/lutin/z_target/lutinTarget_Android.py +++ b/lutin/z_target/lutinTarget_Android.py @@ -184,7 +184,14 @@ class Target(target.Target): "-mfloat-abi=softfp", "-Wl,--fix-cortex-a8", ]) - + """ + self.add_flag("link-lib", [ + "dl" + ]) + self.add_flag("link", [ + "-rdynamic" + ]) + """ # the -mthumb must be set for all the android produc, some ot the not work coretly without this one ... (all android code is generated with this flags) self.add_flag("c", "-mthumb") # ----------------------- diff --git a/lutin/z_target/lutinTarget_Debian.py b/lutin/z_target/lutinTarget_Debian.py index 397802b..70f8cd5 100644 --- a/lutin/z_target/lutinTarget_Debian.py +++ b/lutin/z_target/lutinTarget_Debian.py @@ -41,6 +41,13 @@ class Target(target.Target): self.pkg_path_bin = "bin" self.pkg_path_lib = "lib" self.pkg_path_license = "license" + + self.add_flag("link-lib", [ + "dl" + ]) + self.add_flag("link", [ + "-rdynamic" + ]) """ .local/application diff --git a/lutin/z_target/lutinTarget_IOs.py b/lutin/z_target/lutinTarget_IOs.py index 639e223..2e49f99 100644 --- a/lutin/z_target/lutinTarget_IOs.py +++ b/lutin/z_target/lutinTarget_IOs.py @@ -88,6 +88,13 @@ class Target(target.Target): # Disable capabiliteis to compile in shared mode self.support_dynamic_link = False + + self.add_flag("link-lib", [ + "dl" + ]) + self.add_flag("link", [ + "-rdynamic" + ]) def make_package_binary(self, pkg_name, pkg_properties, base_pkg_path, heritage_list, static): debug.debug("------------------------------------------------------------------------") diff --git a/lutin/z_target/lutinTarget_Linux.py b/lutin/z_target/lutinTarget_Linux.py index bf31685..ed4bbb2 100644 --- a/lutin/z_target/lutinTarget_Linux.py +++ b/lutin/z_target/lutinTarget_Linux.py @@ -46,6 +46,12 @@ class Target(target.Target): if env.get_isolate_system() == True: self.sysroot = "--sysroot=/aDirectoryThatDoesNotExist/" + self.add_flag("link-lib", [ + "dl" + ]) + self.add_flag("link", [ + "-rdynamic" + ]) """ .local/application diff --git a/lutin/z_target/lutinTarget_MacOs.py b/lutin/z_target/lutinTarget_MacOs.py index 1506b68..b8598da 100644 --- a/lutin/z_target/lutinTarget_MacOs.py +++ b/lutin/z_target/lutinTarget_MacOs.py @@ -47,6 +47,13 @@ class Target(target.Target): self.pkg_path_lib = "lib" self.pkg_path_license = "license" + self.add_flag("link-lib", [ + "dl" + ]) + self.add_flag("link", [ + "-rdynamic" + ]) + """ def get_staging_path(self, binary_name): return tools.get_run_path() + self.path_out + self.path_staging + "/" + binary_name + ".app/Contents/" diff --git a/lutin/z_target/lutinTarget_Windows.py b/lutin/z_target/lutinTarget_Windows.py index 96a4baf..a98ef3d 100644 --- a/lutin/z_target/lutinTarget_Windows.py +++ b/lutin/z_target/lutinTarget_Windows.py @@ -51,6 +51,11 @@ class Target(target.Target): self.add_flag("c", [ "-DWIN32=1" ]) + """ + self.add_flag("link-lib", [ + "dl" + ]) + """ self.pkg_path_data = "data" self.pkg_path_bin = "" self.pkg_path_lib = "lib" @@ -60,6 +65,8 @@ class Target(target.Target): self.suffix_lib_dynamic='.dll' self.suffix_binary='.exe' #self.suffix_package='' + # TODO : Remove this ==> pb with openSSL shared lib ... + self.support_dynamic_link = False def get_staging_path_data(self, binary_name, heritage_list):