/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.plugin.cpp.projecttype;
import com.google.inject.Inject;
import org.eclipse.che.api.project.server.type.ProjectTypeDef;
import static org.eclipse.che.plugin.cpp.shared.Constants.BINARY_NAME_ATTRIBUTE;
import static org.eclipse.che.plugin.cpp.shared.Constants.COMPILATION_OPTIONS_ATTRIBUTE;
import static org.eclipse.che.plugin.cpp.shared.Constants.C_LANG;
import static org.eclipse.che.plugin.cpp.shared.Constants.C_PROJECT_TYPE_ID;
import static org.eclipse.che.plugin.cpp.shared.Constants.LANGUAGE;
/**
* C project type
*
* @author Vitalii Parfonov
*/
public class CProjectType extends ProjectTypeDef {
@Inject
public CProjectType() {
super(C_PROJECT_TYPE_ID, "C", true, false, true);
addConstantDefinition(LANGUAGE, "language", C_LANG);
addVariableDefinition(BINARY_NAME_ATTRIBUTE, "Output binary name", false);
addVariableDefinition(COMPILATION_OPTIONS_ATTRIBUTE, "Compilation options", false);
}
}