[DEBUG] build on MacOs
This commit is contained in:
parent
a2fdd6eef9
commit
1cf731910d
24
lutin/z_system/lutinSystem_IOs_c.py
Normal file
24
lutin/z_system/lutinSystem_IOs_c.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/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("C: Generic C library")
|
||||||
|
self.add_flag("c-remove","-nodefaultlibs")
|
||||||
|
self.set_valid(True)
|
||||||
|
|
30
lutin/z_system/lutinSystem_IOs_opengl.py
Normal file
30
lutin/z_system/lutinSystem_IOs_opengl.py
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#!/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)
|
||||||
|
# no check needed ==> just add this:
|
||||||
|
self.add_depend([
|
||||||
|
'c'
|
||||||
|
])
|
||||||
|
self.add_flag('link', [
|
||||||
|
"-framework OpenGLES"])
|
||||||
|
|
||||||
|
|
44
lutin/z_system/lutinSystem_IOs_pthread.py
Normal file
44
lutin/z_system/lutinSystem_IOs_pthread.py
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
#!/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("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.set_valid(True)
|
||||||
|
# todo : create a searcher of the presence of the library:
|
||||||
|
self.add_flag("link-lib", "pthread")
|
||||||
|
self.add_depend([
|
||||||
|
'c'
|
||||||
|
])
|
||||||
|
"""
|
||||||
|
if env.get_isolate_system() == True:
|
||||||
|
self.add_header_file([
|
||||||
|
"/usr/include/sched.h",
|
||||||
|
"/usr/include/pthread.h"
|
||||||
|
],
|
||||||
|
clip_path="/usr/include/")
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -33,16 +33,5 @@ class System(system.System):
|
|||||||
destination_path="GL",
|
destination_path="GL",
|
||||||
recursive=True)
|
recursive=True)
|
||||||
|
|
||||||
"""
|
|
||||||
if target.name=="Android":
|
|
||||||
my_module.add_flag('link-lib', "GLESv2")
|
|
||||||
elif target.name=="MacOs":
|
|
||||||
my_module.add_flag('link', [
|
|
||||||
"-framework OpenGL"])
|
|
||||||
elif target.name=="IOs":
|
|
||||||
my_module.add_flag('link', [
|
|
||||||
"-framework OpenGLES"
|
|
||||||
])
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
|
31
lutin/z_system/lutinSystem_MacOs_opengl.py
Normal file
31
lutin/z_system/lutinSystem_MacOs_opengl.py
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#!/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)
|
||||||
|
# no check needed ==> just add this:
|
||||||
|
self.add_depend([
|
||||||
|
'c'
|
||||||
|
])
|
||||||
|
self.add_flag('link', [
|
||||||
|
"-framework OpenGL"])
|
||||||
|
|
||||||
|
|
||||||
|
|
44
lutin/z_system/lutinSystem_MacOs_pthread.py
Normal file
44
lutin/z_system/lutinSystem_MacOs_pthread.py
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
#!/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("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.set_valid(True)
|
||||||
|
# todo : create a searcher of the presence of the library:
|
||||||
|
self.add_flag("link-lib", "pthread")
|
||||||
|
self.add_depend([
|
||||||
|
'c'
|
||||||
|
])
|
||||||
|
"""
|
||||||
|
if env.get_isolate_system() == True:
|
||||||
|
self.add_header_file([
|
||||||
|
"/usr/include/sched.h",
|
||||||
|
"/usr/include/pthread.h"
|
||||||
|
],
|
||||||
|
clip_path="/usr/include/")
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ class Target(target.Target):
|
|||||||
#self.suffix_binary=''
|
#self.suffix_binary=''
|
||||||
#self.suffix_package=''
|
#self.suffix_package=''
|
||||||
|
|
||||||
if self.sumulator == True:
|
if False: #self.simulator == True:
|
||||||
self.sysroot = "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk"
|
self.sysroot = "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk"
|
||||||
self.add_flag("link", "-mios-simulator-version-min=8.0")
|
self.add_flag("link", "-mios-simulator-version-min=8.0")
|
||||||
self.add_flag("c", "-mios-simulator-version-min=8.0")
|
self.add_flag("c", "-mios-simulator-version-min=8.0")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user