summaryrefslogtreecommitdiffstats
path: root/tools/vim/tests/data/fake_build_ninja.txt
blob: ccdd40a90ad93d1d9e820a434d32346b63a9ac0a (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
41
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Fake build.ninja file used by ../chromium.ycm_extra_conf_unittest.py

cxx = ../../fake-clang++
cxx2 = echo ../../fake-clang++
link = echo Link
default_file = ../../base/logging.cc

rule cxx
  command = $cxx -Ia -isysroot /mac.sdk -Itag-$tag $in -o $out

rule link
  command = $link $in $out

build obj/one.o: cxx ../../one.cpp
  tag = one

build extra: phony obj/extra.o

build obj/linker-output.o: link ../../three.cc | ../../four.cc $default_file

build obj/extra.o: cxx ../../extra.cpp
  tag = extra

build obj/two.o: cxx ../../two.cpp | extra
  tag = two

build obj/three.o: cxx ../../three.cc
  tag = three

build obj/four.o: cxx ../../four.cc
  tag = four

build obj/base.logging.o: cxx $default_file
  tag = default

build obj/five.o: link ../../five.cc