Example #1
0
def choose_platform(context):
    if context.options.target:
        context.env["OH_PLATFORM"] = context.options.target
    elif "PLATFORM" in context.env:
        context.env["OH_PLATFORM"] = {
                "Windows-x86" : "Windows-x86",
                "Windows-x64" : "Windows-x64",
                "Linux-x86" : "Linux-x86",
                "Linux-x64" : "Linux-x64",
                "Linux-ARM" : "Linux-ARM",
                "Linux-armhf" : "Linux-armhf",
                "Linux-ppc32" : "Linux-ppc32",
                "Linux-mipsel" : "Linux-mipsel",
                "Mac-x86" : "Mac-x86",
                "Mac-x64" : "Mac-x64",
                "Core-ppc32" : "Core-ppc32",
                "Core-armv5" : "Core-armv5",
                "Core-armv6" : "Core-armv6",
            }[context.env["PLATFORM"]]
    else:
        context.env["OH_PLATFORM"] = default_platform()

    # force Mac build to use 64-bit libs (wrongly defaults to 32-bit)
    if 'Mac' in context.env['OH_PLATFORM']:
        context.env['OH_PLATFORM']='Mac-x64'
Example #2
0
def choose_platform(context):
    if context.options.target:
        context.env["OH_PLATFORM"] = context.options.target
    elif "PLATFORM" in context.env:
        context.env["OH_PLATFORM"] = {
            "Windows-x86": "Windows-x86",
            "Windows-x64": "Windows-x64",
            "Linux-x86": "Linux-x86",
            "Linux-x64": "Linux-x64",
            "Linux-ARM": "Linux-ARM",
            "Linux-armhf": "Linux-armhf",
            "Linux-ppc32": "Linux-ppc32",
            "Linux-mipsel": "Linux-mipsel",
            "Mac-x86": "Mac-x86",
            "Mac-x64": "Mac-x64",
            "Core-ppc32": "Core-ppc32",
            "Core-armv5": "Core-armv5",
            "Core-armv6": "Core-armv6",
        }[context.env["PLATFORM"]]
    else:
        context.env["OH_PLATFORM"] = default_platform()

    # force Mac build to use 64-bit libs (wrongly defaults to 32-bit)
    if 'Mac' in context.env['OH_PLATFORM']:
        context.env['OH_PLATFORM'] = 'Mac-x64'
Example #3
0
def choose_platform(context):
    if context.options.target:
        context.env["OH_PLATFORM"] = context.options.target
    elif "slave" in context.env:
        context.env["OH_PLATFORM"] = {
                "windows-x86" : "Windows-x86",
                "windows-x64" : "Windows-x64",
                "linux-x86" : "Linux-x86",
                "linux-x64" : "Linux-x64",
                "arm" : "Linux-ARM",
            }[context.env["slave"]]
    else:
        context.env["OH_PLATFORM"] = default_platform()
def choose_platform(context):
    if context.options.target:
        context.env["OH_PLATFORM"] = context.options.target
    elif "PLATFORM" in context.env:
        context.env["OH_PLATFORM"] = {
            "Windows-x86": "Windows-x86",
            "Windows-x64": "Windows-x64",
            "Linux-x86": "Linux-x86",
            "Linux-x64": "Linux-x64",
            "Linux-ARM": "Linux-ARM",
            "Macos-x64": "Mac-x64",
        }[context.env["PLATFORM"]]
    else:
        context.env["OH_PLATFORM"] = default_platform()
Example #5
0
def choose_platform(context):
    if context.options.target:
        context.env["OH_PLATFORM"] = context.options.target
    elif "PLATFORM" in context.env:
        context.env["OH_PLATFORM"] = {
                "Windows-x86" : "Windows-x86",
                "Windows-x64" : "Windows-x64",
                "Linux-x86" : "Linux-x86",
                "Linux-x64" : "Linux-x64",
                "Linux-ARM" : "Linux-ARM",
                "Mac-x86" : "Mac-x86",
                "Mac-x64" : "Mac-x64",
            }[context.env["PLATFORM"]]
    else:
        context.env["OH_PLATFORM"] = default_platform()

    context.env.update(MSBUILDCONFIGURATION=context.options.debugmode.title())
def choose_platform(context):
    if context.options.target:
        context.env["OH_PLATFORM"] = context.options.target
    elif "PLATFORM" in context.env:
        context.env["OH_PLATFORM"] = {
                "Windows-x86" : "Windows-x86",
                "Windows-x64" : "Windows-x64",
                "Linux-x86" : "Linux-x86",
                "Linux-x64" : "Linux-x64",
                "Linux-ARM" : "Linux-ARM",
                "Linux-armhf" : "Linux-armhf",
                "Linux-ppc32" : "Linux-ppc32",
                "Linux-mipsel" : "Linux-mipsel",
                "Mac-x86" : "Mac-x86",
                "Mac-x64" : "Mac-x64",
                "Core-ppc32" : "Core-ppc32",
                "Core-armv5" : "Core-armv5",
                "Core-armv6" : "Core-armv6",
            }[context.env["PLATFORM"]]
    else:
        context.env["OH_PLATFORM"] = default_platform()
Example #7
0
def choose_platform(context):
    if context.options.target:
        context.env["OH_PLATFORM"] = context.options.target
    elif "PLATFORM" in context.env:
        context.env["OH_PLATFORM"] = {
            "Windows-x86": "Windows-x86",
            "Windows-x64": "Windows-x64",
            "Linux-x86": "Linux-x86",
            "Linux-x64": "Linux-x64",
            "Linux-ARM": "Linux-ARM",
            "Linux-armhf": "Linux-armhf",
            "Linux-ppc32": "Linux-ppc32",
            "Linux-mipsel": "Linux-mipsel",
            "Mac-x86": "Mac-x86",
            "Mac-x64": "Mac-x64",
            "Core-ppc32": "Core-ppc32",
            "Core-armv5": "Core-armv5",
            "Core-armv6": "Core-armv6",
        }[context.env["PLATFORM"]]
    else:
        context.env["OH_PLATFORM"] = default_platform()
def choose_platform(context):
    context.env["OH_PLATFORM"] = (
            context.options.target or
            context.env.get("slave", None) or
            default_platform())
    context.env.update(MSBUILDCONFIGURATION="Release" if context.options.debugmode=="release" else "Debug")