Hi guys,

I've been trying to port my big game project from eclipse to android 
studio, and .mk build system to gradle. Is a quite big c++ project for ios 
and android, so most of the code is c++. Sources structure is full of 
platform dependant folders. The issue I have found is that it seems the jni 
sources excludes are not working.

When I try to do something like:

    android.sources {
>         main {
>             jni {
>                 source {
>                     srcDirs = ['src/main/jni']
>                     excludes += ['fileToExclude.cpp']
>                     excludes += ['**/fileToExclude.cpp']
>                     excludes += ['platform/ios/*'] //doesnt matter the 
> expression I use, always get all files to compile
>                 }
>             }
>         }
>     }
>

If I try the same feature for java modules it works correctly:

    android.sources {
        main {
            java {
                source {
                    srcDirs = ['src/main/java']
                    excludes += ['com/company/module_to_exclude']
                }
            }
        }
    }


In both cases ${main.java.source.patterns.excludes} 
and ${main.jni.source.patterns.excludes} reports correctly the patterns to 
exclude. Not sure if related or of any help, but in both cases, I still see 
all files in the Android Project structure.


Any ideas whats happening here?

Jaume Palencia

 

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to