forked from sirhcm/tinymesa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
38 lines (33 loc) · 968 Bytes
/
meson.build
File metadata and controls
38 lines (33 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
lvp_symbols = [
'gallivm_create',
'gallivm_destroy',
'gallivm_verify_function',
'gallivm_compile_module',
'lp_build_jit_resources_type',
'lp_build_struct_get_ptr2',
'lp_build_mask_begin',
'lp_build_one',
'lp_build_mask_end',
'lp_build_nir_soa',
]
lvp_link_args = []
foreach sym : lvp_symbols
lvp_link_args += '-Wl,-u,' + sym
endforeach
nak_symbols = [
'nak_compiler_create',
'nak_compiler_destroy',
'nak_nir_options',
'nak_preprocess_nir',
'nak_compile_shader',
'blob_reader_init',
'nir_deserialize',
'glsl_type_singleton_init_or_ref',
'glsl_type_singleton_decref',
]
nak_link_args = []
foreach sym : nak_symbols
nak_link_args += '-Wl,-u,' + sym
endforeach
shared_library('tinymesa', link_whole : [ _libnir ], link_args : nak_link_args, dependencies : [ idep_nak ])
shared_library('tinymesa_cpu', link_whole : [ _libnir ], link_args : lvp_link_args+nak_link_args, link_with : [ libgallium ], dependencies : [ idep_nak ])