install share files under ${PREFIX}/share/svi
This commit is contained in:
parent
8777e3f758
commit
e3c11407c3
6
wscript
6
wscript
@ -1,8 +1,11 @@
|
|||||||
|
import re
|
||||||
|
|
||||||
def options(opt):
|
def options(opt):
|
||||||
opt.load("compiler_cxx")
|
opt.load("compiler_cxx")
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
conf.load("compiler_cxx")
|
conf.load("compiler_cxx")
|
||||||
|
conf.define("SHARE_DIR", re.sub(r'/$', "", conf.options.prefix) + "/share/svi")
|
||||||
conf.check(header_name = "getopt.h")
|
conf.check(header_name = "getopt.h")
|
||||||
conf.check_cfg(package = "ruby", args = "--cflags --libs", uselib_store = "ruby")
|
conf.check_cfg(package = "ruby", args = "--cflags --libs", uselib_store = "ruby")
|
||||||
|
|
||||||
@ -12,3 +15,6 @@ def build(bld):
|
|||||||
source = bld.path.ant_glob("src/**/*.cc"),
|
source = bld.path.ant_glob("src/**/*.cc"),
|
||||||
cxxflags = ["-Wall", "-std=gnu++14"],
|
cxxflags = ["-Wall", "-std=gnu++14"],
|
||||||
uselib = ["ruby"])
|
uselib = ["ruby"])
|
||||||
|
share_dir = bld.path.find_dir("share/svi")
|
||||||
|
bld.install_files("${PREFIX}/share/svi", share_dir.ant_glob("**/*"),
|
||||||
|
cwd = share_dir, relative_trick = True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user