summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn13
1 files changed, 10 insertions, 3 deletions
diff --git a/BUILD.gn b/BUILD.gn
index ee3caab5c..32d1b527c 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -321,6 +321,11 @@ run_node("bundle") {
}
source_set("libdeno_nosnapshot") {
+ bundle_outputs = get_target_outputs(":bundle")
+ bundle_location = rebase_path(bundle_outputs[0])
+ bundle_rel_location = rebase_path(bundle_outputs[0], root_build_dir)
+ bundle_map_location = rebase_path(bundle_outputs[1])
+ inputs = bundle_outputs
sources = [
"src/from_filesystem.cc",
]
@@ -329,9 +334,11 @@ source_set("libdeno_nosnapshot") {
":deno_bindings",
]
configs += [ ":deno_config" ]
- bundle_outputs = get_target_outputs(":bundle")
- bundle_location = rebase_path(bundle_outputs[0])
- defines = [ "BUNDLE_LOCATION=\"$bundle_location\"" ]
+ defines = [
+ "BUNDLE_LOCATION=\"$bundle_location\"",
+ "BUNDLE_REL_LOCATION=\"$bundle_rel_location\"",
+ "BUNDLE_MAP_LOCATION=\"$bundle_map_location\"",
+ ]
}
ts_flatbuffer("msg_ts") {