Package target

2016-06-26 ruki 更多博文 » 博客 » GitHub »

xmake package

原文链接 https://waruqi.github.io/2016/06/26/package-target/
注:以下为加速网络访问所做的原文缓存,经过重新格式化,可能存在格式方面的问题,或偶有遗漏信息,请以原文为准。


Packages all targets for the current platform:

    $xmake p
    $xmake package

Packages the target test to the output directory: /tmp

    $xmake p -o /tmp test
    $xmake p --output=/tmp test

Packages targets for the iphoneos platform.

    $xmake f -p iphoneos
    $xmake p 

We can uses the macro plugin to package all architectures of the given platform.

    # packages targets for all architectures of the current platform
    $xmake macro package 

    # packages targets for all architectures of the iphoneos platform
    $xmake m package -p iphoneos

    # packages targets with debug version for all architectures of the iphoneos platform and output to the directory: /tmp/output
    $xmake m package -p iphoneos -f "-m debug" -o /tmp/output