[DEV] rework isaolated function to manage it in option

This commit is contained in:
Edouard DUPIN 2016-09-02 21:39:18 +02:00
parent bf6fde3770
commit 97f7566a7e
36 changed files with 361 additions and 254 deletions

View File

@ -37,6 +37,7 @@ myArgs.add(arguments.ArgDefine("d", "depth", haveParam=True, desc="Depth of the
myArgs.add(arguments.ArgDefine("s", "force-strip", desc="Force the stripping of the compile elements")) myArgs.add(arguments.ArgDefine("s", "force-strip", desc="Force the stripping of the compile elements"))
myArgs.add(arguments.ArgDefine("o", "force-optimisation", desc="Force optimisation of the build")) myArgs.add(arguments.ArgDefine("o", "force-optimisation", desc="Force optimisation of the build"))
myArgs.add(arguments.ArgDefine("w", "warning", desc="Store warning in a file build file")) myArgs.add(arguments.ArgDefine("w", "warning", desc="Store warning in a file build file"))
myArgs.add(arguments.ArgDefine("i", "isolate-system", desc="Isolate system build (copy header of c and c++ system lib to not include unneeded external libs) EXPERIMENTAL (archlinux)"))
myArgs.add_section("properties", "keep in the sequency of the cible") myArgs.add_section("properties", "keep in the sequency of the cible")
myArgs.add(arguments.ArgDefine("t", "target", haveParam=True, desc="Select a target (by default the platform is the computer that compile this) To know list : 'lutin.py --list-target'")) myArgs.add(arguments.ArgDefine("t", "target", haveParam=True, desc="Select a target (by default the platform is the computer that compile this) To know list : 'lutin.py --list-target'"))
@ -237,6 +238,13 @@ def parseGenericArg(argument, active):
else: else:
env.set_force_optimisation(False) env.set_force_optimisation(False)
return True return True
elif argument.get_option_name() == "isolate-system":
if active==True:
if check_boolean(argument.get_arg()) == True:
env.set_isolate_system(True)
else:
env.set_isolate_system(False)
return True
elif argument.get_option_name() == "force-strip": elif argument.get_option_name() == "force-strip":
if active==True: if active==True:
if check_boolean(argument.get_arg()) == True: if check_boolean(argument.get_arg()) == True:
@ -262,10 +270,12 @@ if os.path.isfile(config_file) == True:
debug.debug("Find basic configuration file: '" + config_file + "'") debug.debug("Find basic configuration file: '" + config_file + "'")
# the file exist, we can open it and get the initial configuration: # the file exist, we can open it and get the initial configuration:
configuration_file = __import__(config_file_name[:-3]) configuration_file = __import__(config_file_name[:-3])
if "get_exclude_path" in dir(configuration_file): if "get_exclude_path" in dir(configuration_file):
data = configuration_file.get_exclude_path() data = configuration_file.get_exclude_path()
debug.debug(" get default config 'get_exclude_path' val='" + str(data) + "'") debug.debug(" get default config 'get_exclude_path' val='" + str(data) + "'")
env.set_exclude_search_path(data) env.set_exclude_search_path(data)
if "get_parsing_depth" in dir(configuration_file): if "get_parsing_depth" in dir(configuration_file):
data = configuration_file.get_parsing_depth() data = configuration_file.get_parsing_depth()
debug.debug(" get default config 'get_parsing_depth' val='" + str(data) + "'") debug.debug(" get default config 'get_parsing_depth' val='" + str(data) + "'")
@ -291,6 +301,16 @@ if os.path.isfile(config_file) == True:
debug.debug(" get default config 'get_default_print_pretty' val='" + str(data) + "'") debug.debug(" get default config 'get_default_print_pretty' val='" + str(data) + "'")
parseGenericArg(arguments.ArgElement("pretty", str(data)), True) parseGenericArg(arguments.ArgElement("pretty", str(data)), True)
if "get_default_force_optimisation" in dir(configuration_file):
data = configuration_file.get_default_force_optimisation()
debug.debug(" get default config 'get_default_force_optimisation' val='" + str(data) + "'")
parseGenericArg(arguments.ArgElement("force-optimisation", str(data)), True)
if "get_default_isolate_system" in dir(configuration_file):
data = configuration_file.get_default_isolate_system()
debug.debug(" get default config 'get_default_isolate_system' val='" + str(data) + "'")
parseGenericArg(arguments.ArgElement("isolate-system", str(data)), True)
# parse default unique argument: # parse default unique argument:

View File

@ -39,6 +39,19 @@ def get_force_optimisation():
global force_optimisation global force_optimisation
return force_optimisation return force_optimisation
isolate_system=False
def set_isolate_system(val):
global isolate_system
if val==1:
isolate_system = 1
else:
isolate_system = 0
def get_isolate_system():
global isolate_system
return isolate_system
parse_depth = 9999999 parse_depth = 9999999
def set_parse_depth(val): def set_parse_depth(val):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -10,6 +10,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -21,13 +22,12 @@ class System(system.System):
self.valid = True self.valid = True
# no check needed ==> just add this: # no check needed ==> just add this:
self.add_module_depend(['c']) self.add_module_depend(['c'])
self.add_export_flag('link-lib', 'X11')
if env.get_isolate_system() == False:
self.add_header_file([ self.add_header_file([
"/usr/include/X11/*" "/usr/include/X11/*"
], ],
destination_path="X11", destination_path="X11",
recursive=True) recursive=True)
self.add_export_flag('link-lib', 'X11')

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -24,7 +25,9 @@ class System(system.System):
# we did not find the library reqiested (just return) (automaticly set at false) # we did not find the library reqiested (just return) (automaticly set at false)
return; return;
self.valid = True self.valid = True
# todo : create a searcher of the presence of the library: if env.get_isolate_system() == False:
self.add_export_flag("link-lib", "asound")
else:
self.add_export_flag("link-lib", "asound") self.add_export_flag("link-lib", "asound")
self.add_header_file([ self.add_header_file([
"/usr/include/alsa/*", "/usr/include/alsa/*",

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -18,9 +19,13 @@ class System(system.System):
system.System.__init__(self) system.System.__init__(self)
# create some HELP: # create some HELP:
self.help="rpc : generic RPC library (developed by oracle)" self.help="rpc : generic RPC library (developed by oracle)"
# check if the library exist:
if not os.path.isfile("/usr/include/arpa/ftp.h"):
# we did not find the library reqiested (just return) (automaticly set at false)
return;
# No check ==> on the basic std libs: # No check ==> on the basic std libs:
self.valid = True self.valid = True
# todo : create a searcher of the presence of the library: if env.get_isolate_system() == True:
#self.add_export_flag("link-lib", "xns") #self.add_export_flag("link-lib", "xns")
self.add_header_file([ self.add_header_file([
"/usr/include/arpa/*" "/usr/include/arpa/*"

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -23,12 +24,22 @@ class System(system.System):
# we did not find the library reqiested (just return) (automaticly set at false) # we did not find the library reqiested (just return) (automaticly set at false)
return; return;
self.valid = True self.valid = True
if env.get_isolate_system() == False:
# todo : create a searcher of the presence of the library: # todo : create a searcher of the presence of the library:
self.add_export_flag("link-lib", [ self.add_export_flag("link-lib", [
"boost_system", "boost_system",
"boost_thread", "boost_thread",
"boost_chrono" "boost_chrono"
]) ])
else:
self.add_header_file([
"/usr/include/boost/*"
],
destination_path="boost",
recursive=True)
self.add_module_depend([
'cxx'
])

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -19,114 +20,115 @@ class System(system.System):
# create some HELP: # create some HELP:
self.help = "C: Generic C library" self.help = "C: Generic C library"
self.valid = True self.valid = True
# no check needed ==> just add this: if env.get_isolate_system() == False:
#self.add_export_flag("c", "-D__STDCPP_GNU__") # We must have it ... all time
#self.add_export_flag("c++", "-nodefaultlibs") pass
else:
# grep "This file is part of the GNU C Library" /usr/include/* # grep "This file is part of the GNU C Library" /usr/include/*
self.add_header_file([ self.add_header_file([
'/usr/include/aio.h', '/usr/include/aio.h*',
'/usr/include/aliases.h', '/usr/include/aliases.h*',
'/usr/include/alloca.h', '/usr/include/alloca.h*',
'/usr/include/ansidecl.h', '/usr/include/ansidecl.h*',
'/usr/include/argp.h', '/usr/include/argp.h*',
'/usr/include/argz.h', '/usr/include/argz.h*',
'/usr/include/ar.h', '/usr/include/ar.h*',
'/usr/include/assert.h', '/usr/include/assert.h*',
'/usr/include/byteswap.h', '/usr/include/byteswap.h*',
'/usr/include/complex.h', '/usr/include/complex.h*',
'/usr/include/cpio.h', '/usr/include/cpio.h*',
'/usr/include/ctype.h', '/usr/include/ctype.h*',
'/usr/include/dirent.h', '/usr/include/dirent.h*',
'/usr/include/dlfcn.h', '/usr/include/dlfcn.h*',
'/usr/include/elf.h', '/usr/include/elf.h*',
'/usr/include/endian.h', '/usr/include/endian.h*',
'/usr/include/envz.h', '/usr/include/envz.h*',
'/usr/include/err.h', '/usr/include/err.h*',
'/usr/include/errno.h', '/usr/include/errno.h*',
'/usr/include/error.h', '/usr/include/error.h*',
'/usr/include/execinfo.h', '/usr/include/execinfo.h*',
'/usr/include/fcntl.h', '/usr/include/fcntl.h*',
'/usr/include/features.h', '/usr/include/features.h*',
'/usr/include/fenv.h', '/usr/include/fenv.h*',
'/usr/include/fmtmsg.h', '/usr/include/fmtmsg.h*',
'/usr/include/fnmatch.h', '/usr/include/fnmatch.h*',
'/usr/include/fpu_control.h', '/usr/include/fpu_control.h*',
'/usr/include/fts.h', '/usr/include/fts.h*',
'/usr/include/ftw.h', '/usr/include/ftw.h*',
'/usr/include/gconv.h', '/usr/include/gconv.h*',
'/usr/include/getopt.h', '/usr/include/getopt.h*',
'/usr/include/glob.h', '/usr/include/glob.h*',
'/usr/include/gnu-versions.h', '/usr/include/gnu-versions.h*',
'/usr/include/grp.h', '/usr/include/grp.h*',
'/usr/include/gshadow.h', '/usr/include/gshadow.h*',
'/usr/include/iconv.h', '/usr/include/iconv.h*',
'/usr/include/ieee754.h', '/usr/include/ieee754.h*',
'/usr/include/ifaddrs.h', '/usr/include/ifaddrs.h*',
'/usr/include/inttypes.h', '/usr/include/inttypes.h*',
'/usr/include/langinfo.h', '/usr/include/langinfo.h*',
'/usr/include/libgen.h', '/usr/include/libgen.h*',
'/usr/include/libintl.h', '/usr/include/libintl.h*',
'/usr/include/libio.h', '/usr/include/libio.h*',
'/usr/include/limits.h', '/usr/include/limits.h*',
'/usr/include/link.h', '/usr/include/link.h*',
'/usr/include/locale.h', '/usr/include/locale.h*',
'/usr/include/malloc.h', '/usr/include/malloc.h*',
'/usr/include/mcheck.h', '/usr/include/mcheck.h*',
'/usr/include/memory.h', '/usr/include/memory.h*',
'/usr/include/mntent.h', '/usr/include/mntent.h*',
'/usr/include/monetary.h', '/usr/include/monetary.h*',
'/usr/include/mqueue.h', '/usr/include/mqueue.h*',
'/usr/include/netdb.h', '/usr/include/netdb.h*',
'/usr/include/nl_types.h', '/usr/include/nl_types.h*',
'/usr/include/nss.h', '/usr/include/nss.h*',
'/usr/include/obstack.h', '/usr/include/obstack.h*',
'/usr/include/printf.h', '/usr/include/printf.h*',
'/usr/include/pthread.h', '/usr/include/pthread.h*',
'/usr/include/pty.h', '/usr/include/pty.h*',
'/usr/include/pwd.h', '/usr/include/pwd.h*',
'/usr/include/re_comp.h', '/usr/include/re_comp.h*',
'/usr/include/regex.h', '/usr/include/regex.h*',
'/usr/include/regexp.h', '/usr/include/regexp.h*',
'/usr/include/sched.h', '/usr/include/sched.h*',
'/usr/include/search.h', '/usr/include/search.h*',
'/usr/include/semaphore.h', '/usr/include/semaphore.h*',
'/usr/include/setjmp.h', '/usr/include/setjmp.h*',
'/usr/include/sgtty.h', '/usr/include/sgtty.h*',
'/usr/include/shadow.h', '/usr/include/shadow.h*',
'/usr/include/signal.h', '/usr/include/signal.h*',
'/usr/include/spawn.h', '/usr/include/spawn.h*',
'/usr/include/stdc-predef.h', '/usr/include/stdc-predef.h*',
'/usr/include/stdint.h', '/usr/include/stdint.h*',
'/usr/include/stdio_ext.h', '/usr/include/stdio_ext.h*',
'/usr/include/stdio.h', '/usr/include/stdio.h*',
'/usr/include/stdlib.h', '/usr/include/stdlib.h*',
'/usr/include/string.h', '/usr/include/string.h*',
'/usr/include/strings.h', '/usr/include/strings.h*',
'/usr/include/stropts.h', '/usr/include/stropts.h*',
'/usr/include/tar.h', '/usr/include/tar.h*',
'/usr/include/termios.h', '/usr/include/termios.h*',
'/usr/include/tgmath.h', '/usr/include/tgmath.h*',
'/usr/include/thread_db.h', '/usr/include/thread_db.h*',
'/usr/include/time.h', '/usr/include/time.h*',
'/usr/include/uchar.h', '/usr/include/uchar.h*',
'/usr/include/ucontext.h', '/usr/include/ucontext.h*',
'/usr/include/ulimit.h', '/usr/include/ulimit.h*',
'/usr/include/unistd.h', '/usr/include/unistd.h*',
'/usr/include/utime.h', '/usr/include/utime.h*',
'/usr/include/utmp.h', '/usr/include/utmp.h*',
'/usr/include/utmpx.h', '/usr/include/utmpx.h*',
'/usr/include/values.h', '/usr/include/values.h*',
'/usr/include/wchar.h', '/usr/include/wchar.h*',
'/usr/include/wctype.h', '/usr/include/wctype.h*',
'/usr/include/wordexp.h', '/usr/include/wordexp.h*',
'/usr/include/xlocale.h', '/usr/include/xlocale.h*',
], ],
destination_path="") destination_path="")
self.add_header_file([ self.add_header_file([
'/usr/include/poll.h', '/usr/include/poll.h*',
'/usr/include/unistdio.h', '/usr/include/unistdio.h*',
'/usr/include/syslog.h', '/usr/include/syslog.h*',
'/usr/include/_G_config.h', '/usr/include/_G_config.h*',
], ],
destination_path="") destination_path="")
self.add_header_file([ self.add_header_file([

View File

@ -11,6 +11,8 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import multiprocess
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -26,11 +28,22 @@ class System(system.System):
'pthread' 'pthread'
]) ])
self.add_export_flag("c++", "-D__STDCPP_GNU__") self.add_export_flag("c++", "-D__STDCPP_GNU__")
#self.add_export_flag("c++-remove", "-nostdlib") if env.get_isolate_system() == False:
#self.add_export_flag("need-libstdc++", True) self.add_export_flag("c++-remove", "-nostdlib")
self.add_export_flag("need-libstdc++", True)
else:
self.add_export_flag("link-lib", "stdc++") self.add_export_flag("link-lib", "stdc++")
compilator_gcc = "g++"
if target.config["compilator-version"] != "":
compilator_gcc = compilator_gcc + "-" + target.config["compilator-version"]
#get g++ compilation version :
version_cpp = multiprocess.run_command_direct(compilator_gcc + " -dumpversion");
if version_cpp == False:
debug.error("Can not get the g++ version ...")
self.add_header_file([ self.add_header_file([
"/usr/include/c++/6.1.1/*" "/usr/include/c++/" + version_cpp + "/*"
], ],
recursive=True) recursive=True)

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -23,12 +24,12 @@ class System(system.System):
# we did not find the library reqiested (just return) (automaticly set at false) # we did not find the library reqiested (just return) (automaticly set at false)
return; return;
self.valid = True self.valid = True
# todo : create a searcher of the presence of the library:
self.add_export_flag("link-lib", "jack")
self.add_module_depend([ self.add_module_depend([
'uuid', 'uuid',
'c' 'c'
]) ])
self.add_export_flag("link-lib", "jack")
if env.get_isolate_system() == True:
self.add_header_file([ self.add_header_file([
"/usr/include/jack/*", "/usr/include/jack/*",
], ],

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -25,6 +26,7 @@ class System(system.System):
self.add_module_depend([ self.add_module_depend([
'c' 'c'
]) ])
if env.get_isolate_system() == True:
self.add_header_file([ self.add_header_file([
"/usr/include/math.h" "/usr/include/math.h"
], ],

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -24,14 +25,14 @@ class System(system.System):
'c', 'c',
'X11' 'X11'
]) ])
self.add_export_flag('link-lib', 'GL')
if env.get_isolate_system() == True:
self.add_header_file([ self.add_header_file([
"/usr/include/GL/*" "/usr/include/GL/*"
], ],
destination_path="GL", destination_path="GL",
recursive=True) recursive=True)
self.add_export_flag('link-lib', 'GL')
""" """
if target.name=="Linux": if target.name=="Linux":

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -25,13 +26,14 @@ class System(system.System):
self.valid = True self.valid = True
# todo : create a searcher of the presence of the library: # todo : create a searcher of the presence of the library:
self.add_export_flag("link-lib", "pthread") self.add_export_flag("link-lib", "pthread")
self.add_module_depend([
'c'
])
if env.get_isolate_system() == True:
self.add_header_file([ self.add_header_file([
"/usr/include/sched.h", "/usr/include/sched.h",
"/usr/include/pthread.h" "/usr/include/pthread.h"
], ],
clip_path="/usr/include/") clip_path="/usr/include/")
self.add_module_depend([
'c'
])

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -41,6 +42,12 @@ class System(system.System):
self.add_module_depend([ self.add_module_depend([
'c' 'c'
]) ])
if env.get_isolate_system() == False:
self.add_export_flag("link-lib", [
"pulse-simple",
"pulse"
])
else:
# todo : create a searcher of the presence of the library: # todo : create a searcher of the presence of the library:
self.add_export_flag("link-lib", [ self.add_export_flag("link-lib", [
"pulsecommon-" + version + ".0", "pulsecommon-" + version + ".0",

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -25,6 +26,7 @@ class System(system.System):
]) ])
# todo : create a searcher of the presence of the library: # todo : create a searcher of the presence of the library:
self.add_export_flag("link-lib", "rpcsvc") self.add_export_flag("link-lib", "rpcsvc")
if env.get_isolate_system() == False:
self.add_header_file([ self.add_header_file([
"/usr/include/rpc/*" "/usr/include/rpc/*"
], ],

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -28,6 +29,7 @@ class System(system.System):
]) ])
# todo : create a searcher of the presence of the library: # todo : create a searcher of the presence of the library:
self.add_export_flag("link-lib", "uuid") self.add_export_flag("link-lib", "uuid")
if env.get_isolate_system() == False:
self.add_header_file([ self.add_header_file([
"/usr/include/uuid/*", "/usr/include/uuid/*",
], ],

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):
@ -28,6 +29,8 @@ class System(system.System):
self.add_module_depend([ self.add_module_depend([
'c' 'c'
]) ])
if env.get_isolate_system() == False:
self.add_header_file([ self.add_header_file([
"/usr/include/zlib.h" "/usr/include/zlib.h"
], ],

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import system from lutin import system
from lutin import tools from lutin import tools
from lutin import env
import os import os
class System(system.System): class System(system.System):

View File

@ -11,6 +11,7 @@
from lutin import debug from lutin import debug
from lutin import target from lutin import target
from lutin import tools from lutin import tools
from lutin import env
import os import os
import stat import stat
import re import re
@ -41,7 +42,8 @@ class Target(target.Target):
self.pkg_path_bin = "bin" self.pkg_path_bin = "bin"
self.pkg_path_lib = "lib" self.pkg_path_lib = "lib"
self.pkg_path_license = "license" self.pkg_path_license = "license"
# disable sysroot when generate build in isolated mode
if env.get_isolate_system() == True:
self.sysroot = "--sysroot=/aDirectoryThatDoesNotExist/" self.sysroot = "--sysroot=/aDirectoryThatDoesNotExist/"

View File

@ -16,7 +16,7 @@ def readme():
# https://pypi.python.org/pypi?%3Aaction=list_classifiers # https://pypi.python.org/pypi?%3Aaction=list_classifiers
setup(name='lutin', setup(name='lutin',
version='1.2.4', version='1.2.5',
description='Lutin generic builder (might replace makefile, CMake ...)', description='Lutin generic builder (might replace makefile, CMake ...)',
long_description=readme(), long_description=readme(),
url='http://github.com/HeeroYui/lutin', url='http://github.com/HeeroYui/lutin',