diff options
author | Dylan Baker <[email protected]> | 2018-06-07 10:58:06 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-06-13 10:06:25 -0700 |
commit | e26af221438f77d8b81f956a56bc9e520f28236a (patch) | |
tree | 580687370340de3068977160ce3232b6b70a98ca /src | |
parent | 6eaa01368554b57081254ffd473a55199993b98d (diff) |
meson: Add support for SPARC assembly
This was blindly copied from autotools and tested by a helpful gentoo
user.
Signed-off-by: Dylan Baker <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mapi/glapi/meson.build | 3 | ||||
-rw-r--r-- | src/mesa/meson.build | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/mapi/glapi/meson.build b/src/mapi/glapi/meson.build index e241d9ed388..2509e19eaa3 100644 --- a/src/mapi/glapi/meson.build +++ b/src/mapi/glapi/meson.build @@ -64,8 +64,9 @@ else static_glapi_files += glapi_x86_s elif with_asm_arch == 'x86_64' static_glapi_files += glapi_x86_64_s + elif with_asm_arch == 'sparc' + static_glapi_files += glapi_sparc_s endif - # TODO: SPARC asm endif libglapi_static = static_library( diff --git a/src/mesa/meson.build b/src/mesa/meson.build index 24b5cc821cc..8fb7db215c8 100644 --- a/src/mesa/meson.build +++ b/src/mesa/meson.build @@ -649,8 +649,14 @@ if with_asm_arch == 'x86' elif with_asm_arch == 'x86_64' files_libmesa_common += files('x86-64/x86-64.h', 'x86-64/xform4.S') inc_libmesa_asm = include_directories('x86-64') +elif with_asm_arch == 'sparc' + files_libmesa_common += files( + 'sparc/sparc_clip.S', + 'sparc/norm.S', + 'sparc/xform.S', + ) + inc_libmesa_asm = include_directories('sparc') endif -# TODO: sparc format_fallback_c = custom_target( 'format_fallback.c', |