-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Break up the ubrn command line build commands (#71)
According to [The Big O of Code Reviews](https://www.egorand.dev/the-big-o-of-code-reviews/), this is a O(_n_) change. This adds a number of suppression flags to the command line. This is to make it: - easier to generate code using your own build process - easier to customize parts of the build process - cache as much as possible of the previous build For `build ios`: - `--no-xcodebuild` suppress the creation of an xcframework. The xcframework is expected, but with this flag, you are expected to provide it; perhaps after generating swift from a library file. (future work idea: add an arg to generate Swift from uniffi). - `--no-cargo` detects if any targets are already built, and uses that to generate library files. If no targets are built, then build all, re-using the library files next time. For `build android` - `--no-jniLibs`, this is Android reflection of `--no-xcodebuild`. I'm not sure what this would be used for. - `--no-cargo` detects if any targets are already built, and uses that to generate library files. If no targets are built, then build all, re-using the library files next time. A new command: `generate all --config config.yaml lib.a`: - This combines `generate bindings` and `generate turbo-module` into a higher level command which accepts a config file and a pre-built library file.
- Loading branch information
Showing
7 changed files
with
326 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.