Skip to content

Commit

Permalink
fix: bring back podspec preapre_command (facebook#396)
Browse files Browse the repository at this point in the history
Summary:
This PR brings back `spec.prepare_command` to make it easier to use Hermes while in development.

Ref: facebook#393 (comment)

Pull Request resolved: facebook#396

Reviewed By: mhorowitz

Differential Revision: D24510872

Pulled By: Huxpro

fbshipit-source-id: e9e4eba6d03460380bd94b7432062caf72779dd1
  • Loading branch information
grabbou authored and facebook-github-bot committed Oct 23, 2020
1 parent 020bdf8 commit ccd7740
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hermes-engine.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,18 @@ Pod::Spec.new do |spec|
spec.osx.vendored_frameworks = "destroot/Library/Frameworks/macosx/hermes.framework"

spec.xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++14", "CLANG_CXX_LIBRARY" => "compiler-default", "GCC_PREPROCESSOR_DEFINITIONS" => "HERMES_ENABLE_DEBUGGER=1" }

unless ENV['hermes-artifact-url']
spec.prepare_command = <<-EOS
# When true, debug build will be used.
# See `build-apple-framework.sh` for details
DEBUG=#{HermesHelper::BUILD_TYPE == :debug}
# Build iOS framework
./utils/build-ios-framework.sh
# Build Mac framework
./utils/build-mac-framework.sh
EOS
end
end

0 comments on commit ccd7740

Please sign in to comment.