mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-23 19:50:49 +00:00
scons: ppc support.
This commit is contained in:
parent
06c43beee0
commit
6b69e3c717
@ -70,12 +70,14 @@ platform = env['platform']
|
||||
|
||||
# derived options
|
||||
x86 = machine == 'x86'
|
||||
ppc = machine == 'ppc'
|
||||
gcc = platform in ('linux', 'freebsd', 'darwin')
|
||||
msvc = platform in ('windows', 'winddk')
|
||||
|
||||
Export([
|
||||
'debug',
|
||||
'x86',
|
||||
'ppc',
|
||||
'dri',
|
||||
'llvm',
|
||||
'platform',
|
||||
|
@ -24,6 +24,7 @@ _machine_map = {
|
||||
'i486': 'x86',
|
||||
'i586': 'x86',
|
||||
'i686': 'x86',
|
||||
'ppc' : 'ppc',
|
||||
'x86_64': 'x86_64',
|
||||
}
|
||||
if 'PROCESSOR_ARCHITECTURE' in os.environ:
|
||||
@ -56,7 +57,7 @@ def AddOptions(opts):
|
||||
opts.Add(BoolOption('profile', 'profile build', 'no'))
|
||||
#opts.Add(BoolOption('quiet', 'quiet command lines', 'no'))
|
||||
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
||||
allowed_values=('generic', 'x86', 'x86_64')))
|
||||
allowed_values=('generic', 'ppc', 'x86', 'x86_64')))
|
||||
opts.Add(EnumOption('platform', 'target platform', default_platform,
|
||||
allowed_values=('linux', 'cell', 'windows', 'winddk', 'wince')))
|
||||
opts.Add(BoolOption('llvm', 'use LLVM', 'no'))
|
||||
|
@ -175,6 +175,7 @@ def generate(env):
|
||||
machine = env['machine']
|
||||
platform = env['platform']
|
||||
x86 = env['machine'] == 'x86'
|
||||
ppc = env['machine'] == 'ppc'
|
||||
gcc = env['platform'] in ('linux', 'freebsd', 'darwin')
|
||||
msvc = env['platform'] in ('windows', 'winddk', 'wince')
|
||||
|
||||
|
@ -38,6 +38,7 @@ draw = env.ConvenienceLibrary(
|
||||
'draw_vs_aos_machine.c',
|
||||
'draw_vs_exec.c',
|
||||
'draw_vs_llvm.c',
|
||||
'draw_vs_ppc.c',
|
||||
'draw_vs_sse.c',
|
||||
'draw_vs_varient.c'
|
||||
])
|
||||
|
@ -6,6 +6,7 @@ rtasm = env.ConvenienceLibrary(
|
||||
'rtasm_cpu.c',
|
||||
'rtasm_execmem.c',
|
||||
'rtasm_x86sse.c',
|
||||
'rtasm_ppc.c',
|
||||
'rtasm_ppc_spe.c',
|
||||
])
|
||||
|
||||
|
@ -12,6 +12,7 @@ tgsi = env.ConvenienceLibrary(
|
||||
'tgsi_parse.c',
|
||||
'tgsi_sanity.c',
|
||||
'tgsi_scan.c',
|
||||
'tgsi_ppc.c',
|
||||
'tgsi_sse2.c',
|
||||
'tgsi_text.c',
|
||||
'tgsi_transform.c',
|
||||
|
@ -283,6 +283,10 @@ if env['platform'] != 'winddk':
|
||||
'x86-64/glapi_x86-64.S'
|
||||
]
|
||||
elif gcc and env['machine'] == 'ppc':
|
||||
env.Append(CPPDEFINES = [
|
||||
'USE_PPC_ASM',
|
||||
'USE_VMX_ASM',
|
||||
])
|
||||
mesa_sources += [
|
||||
'ppc/common_ppc.c',
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user