+++ /dev/null
-/*\r
- * \r
- * Copyright 2002-2004 The Ant-Contrib project\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package net.sf.antcontrib.cpptasks.intel;\r
-import net.sf.antcontrib.cpptasks.compiler.LinkType;\r
-import net.sf.antcontrib.cpptasks.compiler.Linker;\r
-import net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker;\r
-/**\r
- * Adapter for the Intel (r) linker for 32-bit applications\r
- * \r
- * @author Curt Arnold\r
- */\r
-public final class IntelWin32Linker extends DevStudioCompatibleLinker {\r
- private static final IntelWin32Linker dllLinker = new IntelWin32Linker(\r
- ".dll");\r
- private static final IntelWin32Linker instance = new IntelWin32Linker(\r
- ".exe");\r
- public static IntelWin32Linker getInstance() {\r
- return instance;\r
- }\r
- private IntelWin32Linker(String outputSuffix) {\r
- super("xilink", "/bogus", outputSuffix);\r
- }\r
- public Linker getLinker(LinkType type) {\r
- if (type.isStaticLibrary()) {\r
- return IntelWin32Librarian.getInstance();\r
- }\r
- if (type.isSharedLibrary()) {\r
- return dllLinker;\r
- }\r
- return instance;\r
- }\r
-}\r