cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-3967) Add compiler-flags attribute to source-file tag
Date Tue, 02 Jul 2013 17:23:21 GMT

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

Filip Maj edited comment on CB-3967 at 7/2/13 5:22 PM:
-------------------------------------------------------

I *think* I've found it but Shaz if you can confirm that'd be good :)

1. Select project
2. Select target
3. Click Build Phases
4. You can set stuff per-file under Compile Sources.

It looks like it adds:
{code}
settings = {COMPILER_FLAGS = "-fno-objc-arc"; };
{code}
.. to the pbxproj file, under PBXBuildFile section, for the particular file.
                
      was (Author: filmaj):
    I *think* I've found it but Shaz if you can confirm that'd be good :)

1. Select project
2. Select target
3. Click Build Phases
4. You can set stuff per-file under Compile Sources.

It looks like it adds {{settings = {COMPILER_FLAGS = "-fno-objc-arc"; };}} to the pbxproj
file, under PBXBuildFile section.
                  
> Add compiler-flags attribute to source-file tag
> -----------------------------------------------
>
>                 Key: CB-3967
>                 URL: https://issues.apache.org/jira/browse/CB-3967
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: Plugman
>            Reporter: Shazron Abdullah
>            Assignee: Filip Maj
>             Fix For: 3.0.0
>
>
> Proposed for 3.0.0.
> ML thread: http://markmail.org/thread/3n5cogkp6yrx4ina
> *Summary:*
> Add a *compiler-flags* attribute (hyphenated instead of camel-cased to conform to the
spec style) to the *<source-file>* tag.
> *Scenarios:*
> - Adding third-party code (with lots of files) that are not ARC enabled, and including
them in an ARC project (3.0.0 will be ARC), you need to add the *"-fno-objc-arc"* compiler
flag to each non-ARC file
> - Adding third-party code (with lots of files) that are ARC enabled, and including them
in an non-ARC project (2.9.0 and below are non-ARC), you need to add the *"-fobjc-arc"* compiler
flag to each ARC file
> Plugins can be upgraded using the *__has_feature(objc_arc)* if they are small, but this
is problematic if you had to include the source files for the Facebook SDK, for example (lots
of files, maintenance nightmare if you were to modify them). Pre-compiled binaries are unaffected.
> Example usage:
> {code}
> <source-file src="FooBar.m" compiler-flags="-fno-objc-arc" />
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message