~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/mingw/MingwIsToolChainSupported.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**********************************************************************
 
2
 * Copyright (c) 2007, 2010 QNX Software Systems and others.
 
3
 * All rights reserved. This program and the accompanying materials
 
4
 * are made available under the terms of the Eclipse Public License v1.0
 
5
 * which accompanies this distribution, and is available at
 
6
 * http://www.eclipse.org/legal/epl-v10.html
 
7
 * 
 
8
 * Contributors: 
 
9
 *     QNX Software Systems - Initial API and implementation
 
10
 **********************************************************************/
 
11
 
 
12
package org.eclipse.cdt.managedbuilder.gnu.mingw;
 
13
 
 
14
import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
 
15
import org.eclipse.cdt.managedbuilder.core.IToolChain;
 
16
import org.osgi.framework.Version;
 
17
 
 
18
/**
 
19
 * @author Doug Schaefer
 
20
 *
 
21
 * @noextend This class is not intended to be subclassed by clients.
 
22
 */
 
23
public class MingwIsToolChainSupported implements IManagedIsToolChainSupported {
 
24
 
 
25
        private final boolean supported;
 
26
        
 
27
        public MingwIsToolChainSupported() {
 
28
                // Only supported if we can find the mingw bin dir to run the compiler
 
29
                supported = MingwEnvironmentVariableSupplier.getBinDir() != null;
 
30
        }
 
31
        
 
32
        public boolean isSupported(IToolChain toolChain, Version version, String instance) {
 
33
                return supported;
 
34
        }
 
35
 
 
36
}