File: compdb.ninja

package info (click to toggle)
haskell-shake 0.13.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 888 kB
  • ctags: 127
  • sloc: haskell: 6,388; makefile: 35; ansic: 25; sh: 2
file content (45 lines) | stat: -rw-r--r-- 1,315 bytes parent folder | download | duplicates (6)
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
41
42
43
44
45
# Copied from the Ninja repo

ninja_required_version = 1.3

builddir = build
cxx = g++
ar = ar
cflags = -g -Wall -Wextra -Wno-deprecated -Wno-unused-parameter -fno-rtti $
    -fno-exceptions -pipe -Wno-missing-field-initializers $
    -DNINJA_PYTHON="python.exe" -O2 -DNDEBUG -D_WIN32_WINNT=0x0501
ldflags = -L$builddir -static

rule cxx
  command = $cxx -MMD -MT $out -MF $out.d $cflags -c $in -o $out
  description = CXX $out
  depfile = $out.d
  deps = gcc

rule ar
  command = cmd /c $ar cqs $out.tmp $in && move /Y $out.tmp $out
  description = AR $out

rule link
  command = $cxx $ldflags -o $out $in $libs
  description = LINK $out

# the depfile parser and ninja lexers are generated using re2c.

# Core source files all build into ninja library.
build $builddir\build.o: cxx src\build.cc
build $builddir\build_log.o: cxx src\build_log.cc
build $builddir\clean.o: cxx src\clean.cc

rule doxygen
  command = doxygen $in
  description = DOXYGEN $in
doxygen_mainpage_generator = src\gen_doxygen_mainpage.sh
rule doxygen_mainpage
  command = $doxygen_mainpage_generator $in > $out
  description = DOXYGEN_MAINPAGE $out
build $builddir\doxygen_mainpage: doxygen_mainpage README COPYING | $
    $doxygen_mainpage_generator
build doxygen: doxygen doc\doxygen.config | $builddir\doxygen_mainpage

default ninja.exe