1/// ************************************************************* 2/// 3/// Licensed to the Apache Software Foundation (ASF) under one 4/// or more contributor license agreements. See the NOTICE file 5/// distributed with this work for additional information 6/// regarding copyright ownership. The ASF licenses this file 7/// to you under the Apache License, Version 2.0 (the 8/// "License"); you may not use this file except in compliance 9/// with the License. You may obtain a copy of the License at 10/// 11/// http://www.apache.org/licenses/LICENSE-2.0 12/// 13/// Unless required by applicable law or agreed to in writing, 14/// software distributed under the License is distributed on an 15/// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16/// KIND, either express or implied. See the License for the 17/// specific language governing permissions and limitations 18/// under the License. 19/// 20/// ************************************************************* 21#include <types.h> 22 23String NEWLINE; 24String COMMA; 25 26namespace gb 27{ 28 using namespace types; 29 30 class Helper 31 { 32 public: 33 /// Abbreviates the common directory roots in a command 34 static Command abbreviate_dirs(Command c); 35 /// Announces the start/end of an task. 36 static void announce(String announcement); 37 /// Creates the default get_clean_target() function for the type. 38 static void make_clean_target(TargetType t); 39 /// Creates the default get_clean_target() function for the types. 40 static void make_clean_targets(List<TargetType> ts); 41 /// Creates the default get_dep_target() function for the type. 42 static void make_dep_target(TargetType t); 43 /// Creates the default get_dep_target() function for the types. 44 static void make_dep_targets(List<TargetType> ts); 45 /// Creates the default get_dep_target() function for the type modifying the \$(OUTDIR). 46 static void make_outdir_clean_target(TargetType t); 47 /// Creates the default get_dep_target() function for types modifying the \$(OUTDIR). 48 static void make_outdir_clean_targets(List<TargetType> ts); 49 /// Returns the clean target of a target modifying the \$(OUTDIR). 50 static Path get_outdir_clean_target(Path target); 51 52 /// The path to a zero length file. 53 static const Path NULLFILE; 54 /// The path to the misc directory for temporary files etc. 55 static const Path MISC; 56 /// The path to a phony target, that is always outdated. 57 static const Path PHONY; 58 /// Internally used dummy file. 59 static const Path MISCDUMMY; 60 }; 61} 62/* vim: set filetype=cpp : */ 63