Esempio n. 1
0
 @Override
 public Linker getLinker(final LinkType type) {
   if (type.isStaticLibrary()) {
     return GccLibrarian.getInstance();
   }
   if (type.isSharedLibrary()) {
     return dllLinker;
   }
   return instance;
 }
Esempio n. 2
0
 @Override
 public Linker getLinker(final LinkType type) {
   if (type.isStaticLibrary()) {
     return GccLibrarian.getInstance();
   }
   // BEGINFREEHEP
   if (type.isJNIModule()) {
     return isDarwin() ? machJNILinker : isWindows() ? dllLinker : soLinker;
   }
   if (type.isPluginModule()) {
     return isDarwin() ? machBundleLinker : isWindows() ? dllLinker : soLinker;
   }
   if (type.isSharedLibrary()) {
     return isDarwin() ? machDllLinker : isWindows() ? dllLinker : soLinker;
   }
   // ENDFREEHEP
   return instance;
 }
Esempio n. 3
0
 public Linker getLinker(LinkType type) {
   if (type.isStaticLibrary()) {
     return GccLibrarian.getInstance();
   }
   if (type.isPluginModule()) {
     if (isDarwin()) {
       return machBundleLinker;
     } else {
       return dllLinker;
     }
   }
   if (type.isSharedLibrary()) {
     if (isDarwin()) {
       return machDllLinker;
     } else {
       return dllLinker;
     }
   }
   return instance;
 }