blob: e1ec3c30f559637b80be0e136a377ffd40262e85 [file] [edit]
ninja_required_version = 1.7.2
# The 'gn' rule also writes build.ninja, unbeknownst to ninja. The
# build.ninja edge is separate to prevent ninja from deleting it
# (due to depfile usage) if interrupted. gn uses atomic writes to
# ensure that build.ninja is always valid even if interrupted.
build build.ninja: phony build.ninja.stamp
generator = 1
subninja toolchain.ninja
build hello_shared: phony ./libhello_shared.so
build hello_static: phony obj/libhello_static.a
build $:hello: phony hello
build $:hello_shared: phony ./libhello_shared.so
build $:hello_static: phony obj/libhello_static.a
build all: phony $
hello $
./libhello_shared.so $
obj/libhello_static.a
default all