blob: 7cc1276332718a102b9d6043b3343e59c802145e [file] [log] [blame]
/**
* Copyright (c) 2020-2021 Robert Bosch GmbH.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
*/
package org.eclipse.app4mc.slg.linux.transformers.sw;
import java.util.Properties;
import org.eclipse.app4mc.slg.linux.generators.LinuxMakeGenerator;
import org.eclipse.app4mc.slg.linux.transformers.LinuxBaseTransformer;
import org.eclipse.app4mc.transformation.util.OutputBuffer;
import com.google.inject.Inject;
public class LinuxMakeTransformer extends LinuxBaseTransformer {
@Inject private OutputBuffer outputBuffer;
@Inject private Properties properties;
public void transform() {
final boolean experimentalCodeMatching = Boolean
.parseBoolean(this.properties.getProperty("experimentalCodeSnippetMatching", "false"));
final boolean instrumentation = Boolean
.parseBoolean(this.properties.getProperty("enableInstrumentation", "false"));
this.outputBuffer.appendTo("OTHER", "Makefile",
LinuxMakeGenerator.getContent(experimentalCodeMatching, instrumentation));
}
}