aboutsummaryrefslogtreecommitdiff
path: root/src/filetarget.h
blob: 856e854eb7fbce48d3f21d7ab1b95e911d254711 (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( std::string str );
	void updateTime( std::string str );
	
private:
	std::map<std::string, time_t> mTimes;

};

#endif