aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/ninja.az
blob: 2c1bd8b3190bc8e5580ab8ead6ee842750d870f4 (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
33
34
35
36
37
38
39
40
package ninja {
	description = "a small build system with a focus on speed";
	website = "https://ninja-build.org";
	anitya = 2089;

	version# = "1.13.2";
	source = remoteGitHub {
		suffix = "ninja-build/ninja";
		tag = "v"+version;
		checksum = "ygKWMa0YV2lWKiFro5hnL-vcKbc_-RACZuPu0Io8qDvgQlZ0dxv7hPNSFkt4214v";
	};
	extra = [ googletest ];

	env = [
		"CFLAGS=-std=c++17",
	];

	bin = [ "echo" ];
	exec = generic {
		build = `
python3 /usr/src/ninja/configure.py \
	--verbose \
	--bootstrap
python3 /usr/src/ninja/configure.py \
	--gtest-source-dir=/usr/src/extra/googletest
./ninja ` + jobsFlagE + ` ` + loadFlagE + ` all
`;

		check = "./ninja_test";

		install = `
mkdir -p /work/system/bin/
cp ninja /work/system/bin/`;
	};

	inputs = [
		python-early,
		bash,
	];
}