aboutsummaryrefslogtreecommitdiff
path: root/src/filetarget.h
blob: c78c2fd382278a31456e71449e0cffdacf2165d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef FILE_TARGET_H
#define FILE_TARGET_H

#include <stdint.h>
#include <map>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "target.h"

class FileTarget : public Target
{
public:
	FileTarget( const char *sName );
	virtual ~FileTarget();

	virtual void debug();

	void addInputDir( const char *sDir );

	virtual void check( class Builder &bld );
	virtual void clean( class Builder &bld );

	time_t getTime( class Builder &bld, std::string str );
	void updateTime( std::string str );
	
private:
	std::map<std::string, time_t> mTimes;

};

#endif