# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
+build_intel_tools = with_tools.contains('intel')
+
aubinator = executable(
'aubinator',
files('aubinator.c', 'intel_aub.h'),
include_directories : [inc_common, inc_intel],
link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util],
c_args : [c_vis_args, no_override_init_args],
- build_by_default : with_tools.contains('intel'),
- install : with_tools.contains('intel'),
+ build_by_default : build_intel_tools,
+ install : build_intel_tools
)
aubinator_error_decode = executable(
include_directories : [inc_common, inc_intel],
link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util],
c_args : [c_vis_args, no_override_init_args],
- build_by_default : with_tools.contains('intel'),
- install : with_tools.contains('intel'),
+ build_by_default : build_intel_tools,
+ install : build_intel_tools
)
error2aub = executable(
include_directories : [inc_common, inc_intel, inc_drm_uapi],
link_with : [libintel_dev],
c_args : [c_vis_args, no_override_init_args],
- build_by_default : with_tools.contains('intel'),
- install : with_tools.contains('intel'),
+ build_by_default : build_intel_tools,
+ install : build_intel_tools
)
-if with_tools.contains('intel')
- sanitize_data = configuration_data()
- sanitize_data.set(
- 'install_libexecdir',
- join_paths(get_option('prefix'), get_option('libexecdir'))
- )
- configure_file(
- input: 'intel_sanitize_gpu.in',
- output: '@BASENAME@',
- install_dir: get_option('bindir'),
- configuration: sanitize_data,
- )
+sanitize_data = configuration_data()
+sanitize_data.set(
+ 'install_libexecdir',
+ join_paths(get_option('prefix'), get_option('libexecdir'))
+)
+configure_file(
+ input: 'intel_sanitize_gpu.in',
+ output: '@BASENAME@',
+ install_dir: get_option('bindir'),
+ install: build_intel_tools,
+ configuration: sanitize_data
+)
- libintel_sanitize_gpu = shared_library(
- 'intel_sanitize_gpu',
- files('intel_sanitize_gpu.c'),
- dependencies : [dep_dl, dep_thread],
- include_directories : [inc_common, inc_intel, inc_drm_uapi],
- link_with : [libintel_common, libmesa_util],
- c_args : [c_vis_args, no_override_init_args],
- install_dir: get_option('libexecdir'),
- install: true,
- )
+libintel_sanitize_gpu = shared_library(
+ 'intel_sanitize_gpu',
+ files('intel_sanitize_gpu.c'),
+ dependencies : [dep_dl, dep_thread],
+ include_directories : [inc_common, inc_intel, inc_drm_uapi],
+ link_with : [libintel_common, libmesa_util],
+ c_args : [c_vis_args, no_override_init_args],
+ build_by_default : build_intel_tools,
+ install_dir: get_option('libexecdir'),
+ install: build_intel_tools
+)
- configure_file(
- input : 'intel_dump_gpu.in',
- output : '@BASENAME@',
- install_dir: get_option('bindir'),
- configuration: sanitize_data,
- )
+configure_file(
+ input : 'intel_dump_gpu.in',
+ output : '@BASENAME@',
+ install_dir: get_option('bindir'),
+ configuration: sanitize_data,
+ install: build_intel_tools
+)
- libintel_dump_gpu = shared_library(
- 'intel_dump_gpu',
- files('gen_context.h', 'gen8_context.h', 'gen10_context.h',
- 'intel_aub.h', 'aub_write.h', 'aub_write.c', 'intel_dump_gpu.c'),
- dependencies : dep_dl,
- include_directories : [inc_common, inc_intel, inc_drm_uapi],
- link_with : libintel_dev,
- c_args : [c_vis_args, no_override_init_args],
- install_dir: get_option('libexecdir'),
- install : true
- )
-endif
+libintel_dump_gpu = shared_library(
+ 'intel_dump_gpu',
+ files('gen_context.h', 'gen8_context.h', 'gen10_context.h',
+ 'intel_aub.h', 'aub_write.h', 'aub_write.c', 'intel_dump_gpu.c'),
+ dependencies : dep_dl,
+ include_directories : [inc_common, inc_intel, inc_drm_uapi],
+ link_with : libintel_dev,
+ c_args : [c_vis_args, no_override_init_args],
+ build_by_default : build_intel_tools,
+ install_dir: get_option('libexecdir'),
+ install: build_intel_tools
+)