else:
options_file = "posix"
-opts = Options(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
+opts = Variables(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], args=ARGUMENTS)
opts.Add('CC', 'The C compiler.')
opts.Add('CXX', 'The C++ compiler (for the tests)')
opts.Add('CCFLAGS', 'Flags for the compiler.', ['-O2', '-Wall'])
env['build_dev'] = int(env['build_dev'])
## detecting the install directory on win32
-if 'msvc' in env['TOOLS'] and not (env.has_key('prefix') or env['prefix']):
+if 'msvc' in env['TOOLS'] and not ('prefix' in env or env['prefix']):
- if env['MSVS'].has_key('PLATFORMSDKDIR'):
+ if 'PLATFORMSDKDIR' in env['MSVS']:
env['prefix'] = env['MSVS']['PLATFORMSDKDIR']
## TODO: detectar si el archivo existe antes de abrirlo asi nomas
pkg = open(source, "rt")
- for linea in pkg.xreadlines():
+ for linea in pkg:
dep = re.search("^[\t\w]*\$[cphl]file\s*\"([^\"]+)\"", linea)
if dep:
self.Depends(target, '#' + dep.groups()[0]);
tolua = 'bin\\'+self['TOLUAPP_BOOTSTRAP']
else:
tolua = 'bin/'+self['TOLUAPP_BOOTSTRAP']
- print("********* tolua is ", tolua)
+ print(("********* tolua is ", tolua))
else:
if use_own:
if 'msvc' in self['TOOLS']:
prefix = '/usr/local'
# libraries
-LIBS = ['lua', 'lualib', 'm']
-
+#LIBS = ['lua', 'lualib', 'm']
+#with scons-4.4.0, it will use this config file, but on tizen, there is no
+#lualib library.
+LIBS = ['lua', 'm']
import os