public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] meson: Install the (dis)assembler
@ 2017-09-15 13:35 Ville Syrjala
  2017-09-15 13:59 ` [PATCH i-g-t] meson: Fix IGT_GIT_SHA1 handling Ville Syrjala
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Ville Syrjala @ 2017-09-15 13:35 UTC (permalink / raw)
  To: intel-gfx

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Install the assembler and disassemebler binaries, and the accompanying
pkg-config file. Change libbrw into a static library since we don't want
to install that.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 assembler/meson.build | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/assembler/meson.build b/assembler/meson.build
index bdddd0e2db25..b5ac678d2950 100644
--- a/assembler/meson.build
+++ b/assembler/meson.build
@@ -11,8 +11,8 @@ lib_brw_src = [
 	'ralloc.c',
 ]
 
-lib_brw = shared_library('brw', lib_brw_src,
-		dependencies : igt_deps)
+lib_brw = static_library('brw', lib_brw_src,
+			 dependencies : igt_deps)
 
 flex = find_program('flex')
 bison = find_program('bison')
@@ -29,9 +29,22 @@ pgen = generator(bison,
 
 pfiles = pgen.process('gram.y')
 
-executable('intel-gen4asm', 'main.c', lfiles, pfiles, link_with : lib_brw)
+executable('intel-gen4asm', 'main.c', lfiles, pfiles,
+	   link_with : lib_brw, install : true)
 
-executable('intel-gen4disasm', 'disasm-main.c', link_with : lib_brw)
+executable('intel-gen4disasm', 'disasm-main.c',
+	   link_with : lib_brw, install : true)
+
+pkgconfigdir = join_paths(get_option('libdir'), 'pgkconfig')
+
+conf_data = configuration_data()
+conf_data.set('prefix', get_option('prefix'))
+conf_data.set('exec_prefix', '${prefix}')
+conf_data.set('libdir', join_paths('${prefix}', get_option('libdir')))
+conf_data.set('includedir', join_paths('${prefix}', get_option('includedir')))
+conf_data.set('VERSION', meson.project_version())
+configure_file(input : 'intel-gen4asm.pc.in', output : 'intel-gen4asm.pc',
+	       configuration : conf_data, install_dir : pkgconfigdir)
 
 gen4asm_testcases = [
 	'test/mov',
-- 
2.13.5

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-09-18 13:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-15 13:35 [PATCH i-g-t] meson: Install the (dis)assembler Ville Syrjala
2017-09-15 13:59 ` [PATCH i-g-t] meson: Fix IGT_GIT_SHA1 handling Ville Syrjala
2017-09-15 20:52   ` Jordan Justen
2017-09-18 13:11     ` Ville Syrjälä
2017-09-15 14:04 ` ✓ Fi.CI.BAT: success for meson: Install the (dis)assembler Patchwork
2017-09-15 14:22 ` ✓ Fi.CI.BAT: success for meson: Install the (dis)assembler (rev2) Patchwork
2017-09-15 16:00 ` ✗ Fi.CI.IGT: warning for meson: Install the (dis)assembler Patchwork
2017-09-15 16:55 ` ✓ Fi.CI.IGT: success for meson: Install the (dis)assembler (rev2) Patchwork
2017-09-15 20:51 ` [PATCH i-g-t] meson: Install the (dis)assembler Jordan Justen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox