summaryrefslogtreecommitdiff
path: root/homebrew/v8at315/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/v8at315/.make.sh-auto')
-rw-r--r--homebrew/v8at315/.make.sh-auto10
1 files changed, 10 insertions, 0 deletions
diff --git a/homebrew/v8at315/.make.sh-auto b/homebrew/v8at315/.make.sh-auto
new file mode 100644
index 000000000..dc7c3def8
--- /dev/null
+++ b/homebrew/v8at315/.make.sh-auto
@@ -0,0 +1,10 @@
+pkg:setup
+ENV.cxx11
+ENV["GYP_DEFINES"] = "clang=1 mac_deployment_target=#{MacOS.version}"
+(buildpath/"build/gyp").install resource("gyp")
+inreplace "tools/gyp/v8.gyp", "'OTHER_LDFLAGS': ['-dynamiclib', '-all_load']", "\\0, 'DYLIB_INSTALL_NAME_BASE': '#{opt_lib}'"
+make native -j#{ENV.make_jobs} library=shared snapshot=on console=readline
+prefix.install "include"
+cd "out/native"
+lib.install Dir["lib*"]
+bin.install "d8", "lineprocessor", "mksnapshot", "preparser", "process", "shell" => "v8"