Skip to content

Commit

Permalink
Define node paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Aug 22, 2024
1 parent 37e3d5c commit a689e9f
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions metacall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ def python_executable
end

def install
Dir.mkdir("build")
Dir.chdir("build")
# Build path
build_dir = buildpath/"build"
Dir.mkdir(build_dir)
Dir.chdir(build_dir)

# Set Python
py3ver = Language::Python.major_minor_version python_executable
Expand All @@ -56,18 +58,9 @@ def install

# Set NodeJS
resource("node").stage do
(buildpath/"build").install resource("node")
build_dir.install resource("node")
end

system "echo", "TEST ------------------------------"
system "echo", "TEST ------------------------------"
system "pwd"
system "ls -la"
system "ls -la build"
system "echo", "TEST ------------------------------"
system "echo", "TEST ------------------------------"


# Set the compiler
cc_compiler = `xcrun --find clang`.tr("\n","")
cxx_compiler = `xcrun --find clang++`.tr("\n","")
Expand All @@ -87,11 +80,11 @@ def install
-DOPTION_BUILD_TESTS=OFF
-DOPTION_BUILD_EXAMPLES=OFF
-DOPTION_BUILD_LOADERS_PY=ON
# TODO: Enable NodeJS
-DOPTION_BUILD_LOADERS_NODE=ON
# -DNodeJS_INSTALL_PREFIX=/usr/local/Cellar/metacall/#{version}
# TODO: Enable Java
# -DOPTION_BUILD_LOADERS_JAVA=ON
-DNodeJS_LIBRARY=#{build_dir}/libnode.127.dylib
-DNodeJS_EXECUTABLE=#{build_dir}/node
-DNodeJS_INSTALL_PREFIX=/usr/local/Cellar/metacall/#{version}
-DOPTION_BUILD_LOADERS_JAVA=OFF
-DOPTION_BUILD_LOADERS_JS=OFF
-DOPTION_BUILD_LOADERS_C=OFF
-DOPTION_BUILD_LOADERS_COB=OFF
Expand Down

0 comments on commit a689e9f

Please sign in to comment.