Skip to content

Commit ccd7740

Browse files
grabboufacebook-github-bot
authored andcommitted
fix: bring back podspec preapre_command (facebook#396)
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
1 parent 020bdf8 commit ccd7740

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

hermes-engine.podspec

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,18 @@ Pod::Spec.new do |spec|
2929
spec.osx.vendored_frameworks = "destroot/Library/Frameworks/macosx/hermes.framework"
3030

3131
spec.xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++14", "CLANG_CXX_LIBRARY" => "compiler-default", "GCC_PREPROCESSOR_DEFINITIONS" => "HERMES_ENABLE_DEBUGGER=1" }
32+
33+
unless ENV['hermes-artifact-url']
34+
spec.prepare_command = <<-EOS
35+
# When true, debug build will be used.
36+
# See `build-apple-framework.sh` for details
37+
DEBUG=#{HermesHelper::BUILD_TYPE == :debug}
38+
39+
# Build iOS framework
40+
./utils/build-ios-framework.sh
41+
42+
# Build Mac framework
43+
./utils/build-mac-framework.sh
44+
EOS
45+
end
3246
end

0 commit comments

Comments
 (0)