示例#1
0
from eiffel_loop.eiffel.ecf import EIFFEL_CONFIG_FILE
from eiffel_loop.eiffel.ecf import FREEZE_BUILD

from SCons.Environment import Base
from SCons.Variables import Variables
from glob import glob

var = Variables ()
var.Add ('cpu', '', 'x64')
var.Add ('project', '', glob ('*.ecf')[0])

os.environ ['ISE_LIBRARY'] = os.environ ['ISE_EIFFEL']

env = Base ()

var.Update (env)

env.Append (ENV = os.environ)
env.Append (ISE_PLATFORM = os.environ ['ISE_PLATFORM'])

project_py = project.read_project_py ()
project_py.set_build_environment (env.get ('cpu'))

ecf_path = env.get ('project')
config = EIFFEL_CONFIG_FILE (ecf_path)

build = FREEZE_BUILD (config, project_py)
build.install_resources (build.resources_destination ())

from eiffel_loop.eiffel import project

from eiffel_loop.eiffel.ecf import EIFFEL_CONFIG_FILE
from eiffel_loop.eiffel.ecf import FREEZE_BUILD

from SCons.Environment import Base
from SCons.Variables import Variables
from glob import glob

var = Variables()
var.Add('cpu', '', 'x64')
var.Add('project', '', glob('*.ecf')[0])

os.environ['ISE_LIBRARY'] = os.environ['ISE_EIFFEL']

env = Base()

var.Update(env)

env.Append(ENV=os.environ)
env.Append(ISE_PLATFORM=os.environ['ISE_PLATFORM'])

project_py = project.read_project_py()
project_py.set_build_environment(env.get('cpu'))

ecf_path = env.get('project')
config = EIFFEL_CONFIG_FILE(ecf_path)

build = FREEZE_BUILD(config, project_py)
build.install_resources(build.resources_destination())
示例#3
0
from eiffel_loop.eiffel import project

from eiffel_loop.eiffel.ecf import EIFFEL_CONFIG_FILE
from eiffel_loop.eiffel.ecf import FREEZE_BUILD

from SCons.Environment import Base
from SCons.Variables import Variables
from glob import glob

var = Variables()
var.Add('cpu', '', 'x64')
var.Add('project', '', glob('*.ecf')[0])

os.environ['ISE_LIBRARY'] = os.environ['ISE_EIFFEL']

env = Base()

var.Update(env)

env.Append(ENV=os.environ)
env.Append(ISE_PLATFORM=os.environ['ISE_PLATFORM'])

project_py = project.read_project_py()
project_py.update_os_environ(env.get('cpu') == 'x86')

ecf_path = env.get('project')
config = EIFFEL_CONFIG_FILE(ecf_path, True)

build = FREEZE_BUILD(config, project_py)
build.install_resources(build.resources_destination())