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

Vladimir Kotikov commented on CB-6728:
--------------------------------------

Ok. let's summarize:
# User specifies architectures via -archs string parameter e.g.:
{noformat}
cordova build wp8 -archs="x86 arm"
cordova build ios -archs="armv7 arm64"
{noformat}
# Cordova will build binaries for each architecture specified.

_For discussion:_
# If one or more of architectures specified is not valid, cordova should:
        ## fail.
        ## skip invalid architecture and show warning.
I think option b is preferred because it will be possible to use `cordova 
build` without specifying platform name.
# Possible architectures:
## Provide common set of chip architectures for all platforms e.g.:
{{--archs="x86 arm"}}
                        ##* will remain unchanged for windows.
                        ##* will be mapped to -archs="i386 armv6 armv7 armv7s" 
for iOS
{{--archs="armv6 armv7"}}
                        ##* will remain unchanged for iOS.
                        ##* will be mapped to -archs="arm" for Windows
## Each platform should define its own architectures set corresponding to 
platform's compiler flags. This set should be decribed in docs.

I'd prefer option b due to more clear code and maintainability.

> 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)

Reply via email to