Exemplo n.º 1
0
 protected override IEnumerable <string> CommandLineFlagsForLibrary(PrecompiledLibrary library, CodeGen codegen)
 {
     if (BundleStaticLibraryDependencies && library.Static)
     {
         yield return(library.InQuotes());
     }
 }
        protected override IEnumerable <string> CommandLineFlagsForLibrary(PrecompiledLibrary library, CodeGen codegen)
        {
            // if lib which contains all JNI code is linked statically, then all methods from this lib should be exposed
            var entryPoint = library.ToString().Contains("lib_unity_tiny_android.a");

            if (entryPoint)
            {
                yield return("-Wl,--whole-archive");
            }
            foreach (var flag in base.CommandLineFlagsForLibrary(library, codegen))
            {
                yield return(flag);
            }
            if (entryPoint)
            {
                yield return("-Wl,--no-whole-archive");
            }
        }