updated docs for dylib paths
This commit is contained in:
11
build.cm
11
build.cm
@@ -97,6 +97,11 @@ function cache_path(content, salt) {
|
||||
return get_build_dir() + '/' + content_hash(content + '\n' + salt)
|
||||
}
|
||||
|
||||
// Deterministic manifest path for a package's built dylibs
|
||||
function manifest_path(pkg) {
|
||||
return get_build_dir() + '/' + content_hash(pkg + '\n' + 'manifest')
|
||||
}
|
||||
|
||||
function get_build_dir() {
|
||||
return shop.get_build_dir()
|
||||
}
|
||||
@@ -499,6 +504,11 @@ Build.build_dynamic = function(pkg, target, buildtype, opts) {
|
||||
}
|
||||
})
|
||||
|
||||
// Write manifest so runtime can find dylibs without the build module
|
||||
var json = use('json')
|
||||
var mpath = manifest_path(pkg)
|
||||
fd.slurpwrite(mpath, stone(blob(json.encode(results))))
|
||||
|
||||
return results
|
||||
}
|
||||
|
||||
@@ -957,5 +967,6 @@ Build.SALT_MCODE = SALT_MCODE
|
||||
Build.SALT_DEPS = SALT_DEPS
|
||||
Build.SALT_FAIL = SALT_FAIL
|
||||
Build.cache_path = cache_path
|
||||
Build.manifest_path = manifest_path
|
||||
|
||||
return Build
|
||||
|
||||
Reference in New Issue
Block a user