compile 0.0.2 copy "compile: ^0.0.2" to clipboard
compile: ^0.0.2 copied to clipboard

The MobiPkg Compile package, a tool for compiling code to dynamic/static libraries.

Compile (Do not use this package, it is not ready yet.) #

(Do not use this package, it is not ready yet.)

This package is part of mobipkg.

The goal is to compile an available iOS/android library by configuration file.

Requirements #

  • Platform
    • macOS (If you want to compile iOS)
    • linux (No tested)
  • Android NDK 25 (If you want to compile android)
  • XCode 14.x (If you want to compile iOS)
  • Git (If your source url is git)
  • wget (If your source url is http/https)
    • tar (If your source is tar)
      • gzip (If your source is gzip/tar.gz/tgz)
      • bzip2 (If your source is bzip2/tar.bz2/tbz2)
      • xz (If your source is xz/tar.xz)
      • lamz (If your source is lamz/tar.lamz)
    • unzip (If your source is zip)
    • 7zip (If your source is 7zip)
  • cp (If your source is path), the cp command is IEEE Std 1003.2 (“POSIX.2”) compliant.

If you want to compile c

Environment Variables #

  • ANDROID_NDK_HOME - Android NDK 25

Usage for command #

compile -h

Supported #

  • Tools:

    • ✅ Autotools
    • ✅ CMake
  • Source type

    • ✅ Git
    • ✅ File
    • ✅ Http

Example usage #

The example directory contains some example libraries.

Define your library #

Like the example, in general, you need to define a file: lib.yaml, which is conventional and its name cannot be changed.

name: libffi
type: autotools # or other types, you can run `compile support type` to see all types
source:
  git: 
    url: https://github.com/libffi/libffi.git
    ref: v3.4.4
license: LICENSE

Defind your .gitignore #

In general, it is also recommended that you include a .gitignore file It is defined as follows:

build/
source/
install/

LICENSE #

Apache-2.0 License

0
likes
0
pub points
0%
popularity

Publisher

verified publisherkikt.top

The MobiPkg Compile package, a tool for compiling code to dynamic/static libraries.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, logger, path, process_run, yaml

More

Packages that depend on compile