You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2014/05/27 09:42:02 UTC

[jira] [Comment Edited] (CB-6728) Support chip architecture as an option when building Windows and Windows Phone projects

    [ https://issues.apache.org/jira/browse/CB-6728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009463#comment-14009463 ] 

Vladimir Kotikov edited comment on CB-6728 at 5/27/14 7:42 AM:
---------------------------------------------------------------

For android we don't support NDK and build architectures.
Now iOS projects uses ARCHS="armv7 armv7s arm64" architectures by default and -arch i386 when buids for emulator. We have following alternatives for architecture support:
# Use same flags for iOS with some differences:
#* -arm builds using ARCHS="armv7 armv7s arm64" and used by default.
#* -x86 equal to -i386 and used as alias to -emulator
#* -x64 doesn't supported for iOS
    Also introduce platform-specific flags. For iOS: -armv6, -armv7, -arm64, 
{noformat}
	cordova build ios --arm
	cordova build ios --armv7 --arm64
{noformat}
# Use -archs string parameter to build command instead of one flag for each architecture. E.g.:
{noformat}
	cordova build wp8 -archs="x86 arm"
	cordova build ios -archs="armv7 arm64"
{noformat}

Thoughts?


was (Author: vladimir.kotikov):
For android we don't support NDK and build architectures.
Now iOS projects uses ARCHS="armv7 armv7s arm64" architectures by default and -arch i386 when buids for emulator. We have following alternatives for architecture support:
# Use same flags for iOS with some differences:
#* -arm builds using ARCHS="armv7 armv7s arm64" and used by default.
#* -x86 equal to -i386 and used as alias to -emulator
#* -x64 doesn't supported for iOS
    Introduce platform-specific flags. For iOS: -armv6, -armv7, -arm64, 
# Use -archs string parameter to build command instead of one flag for each architecture. E.g.:
{noformat}
	cordova build wp8 -archs="x86 arm"
	cordova build ios -archs="armv7 arm64"
{noformat}

> Support chip architecture as an option when building Windows and Windows Phone projects
> ---------------------------------------------------------------------------------------
>
>                 Key: CB-6728
>                 URL: https://issues.apache.org/jira/browse/CB-6728
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI, Windows 8, WP8
>    Affects Versions: 3.4.0
>            Reporter: Vladimir Kotikov
>            Assignee: Jesse MacFadyen
>              Labels: arm, cli, windows, wp8, x64, x86
>
> Currently apps for Windows 8 and Windows Phone 8 are targeted to AnyCPU architecture, which is universal, but sometimes it's critical to build application for specific processor architecture.
> As an example is WebSQL plugin which contains references to C++ libs so needs to be built for specific architecture (x84, x64, ARM) and which does not support AnyCPU target.
> So it looks important to add support for additional build flags `-x64`, `-x86`, `-arm`, '-any' to specify target chip architecture.
> {noformat}
> cordova build windows8 --release --x64
> cordova build wp8 --arm
> {noformat}
> If flag is not specified, `AnuCPU` target platform should be used by default.



--
This message was sent by Atlassian JIRA
(v6.2#6252)