Skip to content

Commit

Permalink
add cmake check
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaDiachenko committed Dec 27, 2024
1 parent a8ffa57 commit fa53af6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.6.4.cjs

checksumBehavior: update
17 changes: 16 additions & 1 deletion packages/engine-rn-tvos/templates/platforms/tvos/Podfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@

source 'https://github.com/react-native-tvos/react-native-tvos-podspecs.git'
source 'https://cdn.cocoapods.org/'
{{INJECT_PLUGIN_PODFILE_SOURCES}}


cmake_path = `command -v cmake`
if cmake_path == ""
brew_path = `command -v brew`
if brew_path != ""
Pod::UI.puts "Installing CMake using brew. This is required to build project.".red
`brew install cmake`
else
Pod::UI.puts "In order to build project locally, you need cmake installed, please install it and try again".red
return
end
else
Pod::UI.puts "Cmake found at: #{cmake_path}".green
end


# Resolve react_native_pods.rb with node to allow for hoisting
def node_require(script)
# Resolve script with node to allow for hoisting
Expand Down

0 comments on commit fa53af6

Please sign in to comment.