Last active
February 22, 2018 03:29
-
-
Save fujii/1746bb1ea190944d0817c2f5c9aabdd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CMAKE generated file: DO NOT EDIT! | |
# Generated by "Ninja" Generator, CMake Version 3.9 | |
# This file contains all the build statements describing the | |
# compilation DAG. | |
# ============================================================================= | |
# Write statements declared in CMakeLists.txt: | |
# | |
# Which is the root file. | |
# ============================================================================= | |
# ============================================================================= | |
# Project: Project | |
# Configuration: | |
# ============================================================================= | |
############################################# | |
# Minimal version of Ninja required by this file | |
ninja_required_version = 1.5 | |
# ============================================================================= | |
# Include auxiliary files. | |
############################################# | |
# Include rules file. | |
include rules.ninja | |
############################################# | |
# Utility command for edit_cache | |
build CMakeFiles/edit_cache.util: CUSTOM_COMMAND | |
COMMAND = cd /home/fujii/tmp/cmake-ninja/build && /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. | |
DESC = No interactive CMake dialog available... | |
restat = 1 | |
build edit_cache: phony CMakeFiles/edit_cache.util | |
############################################# | |
# Utility command for rebuild_cache | |
build CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND | |
COMMAND = cd /home/fujii/tmp/cmake-ninja/build && /usr/bin/cmake -H/home/fujii/tmp/cmake-ninja -B/home/fujii/tmp/cmake-ninja/build | |
DESC = Running CMake to regenerate build system... | |
pool = console | |
restat = 1 | |
build rebuild_cache: phony CMakeFiles/rebuild_cache.util | |
# ============================================================================= | |
# Object build statements for STATIC_LIBRARY target WebCore | |
############################################# | |
# Order-only phony target for WebCore | |
build cmake_object_order_depends_target_WebCore: phony | |
build CMakeFiles/WebCore.dir/foo.c.o: C_COMPILER__WebCore ../foo.c || cmake_object_order_depends_target_WebCore | |
DEP_FILE = CMakeFiles/WebCore.dir/foo.c.o.d | |
OBJECT_DIR = CMakeFiles/WebCore.dir | |
OBJECT_FILE_DIR = CMakeFiles/WebCore.dir | |
# ============================================================================= | |
# Link build statements for STATIC_LIBRARY target WebCore | |
############################################# | |
# Link the static library libWebCore.a | |
build libWebCore.a: C_STATIC_LIBRARY_LINKER__WebCore CMakeFiles/WebCore.dir/foo.c.o | |
OBJECT_DIR = CMakeFiles/WebCore.dir | |
POST_BUILD = : | |
PRE_LINK = cd /home/fujii/tmp/cmake-ninja/build && /usr/bin/cmake -E echo hello && cd /home/fujii/tmp/cmake-ninja/build | |
TARGET_FILE = libWebCore.a | |
TARGET_PDB = WebCore.a.dbg | |
# ============================================================================= | |
# Object build statements for EXECUTABLE target TestWebCore | |
############################################# | |
# Order-only phony target for TestWebCore | |
build cmake_object_order_depends_target_TestWebCore: phony || cmake_object_order_depends_target_WebCore | |
build CMakeFiles/TestWebCore.dir/main.c.o: C_COMPILER__TestWebCore ../main.c || cmake_object_order_depends_target_TestWebCore | |
DEP_FILE = CMakeFiles/TestWebCore.dir/main.c.o.d | |
OBJECT_DIR = CMakeFiles/TestWebCore.dir | |
OBJECT_FILE_DIR = CMakeFiles/TestWebCore.dir | |
# ============================================================================= | |
# Link build statements for EXECUTABLE target TestWebCore | |
############################################# | |
# Link the executable TestWebCore | |
build TestWebCore: C_EXECUTABLE_LINKER__TestWebCore CMakeFiles/TestWebCore.dir/main.c.o | libWebCore.a || libWebCore.a | |
LINK_FLAGS = -rdynamic | |
LINK_LIBRARIES = libWebCore.a | |
OBJECT_DIR = CMakeFiles/TestWebCore.dir | |
POST_BUILD = : | |
PRE_LINK = : | |
TARGET_FILE = TestWebCore | |
TARGET_PDB = TestWebCore.dbg | |
# ============================================================================= | |
# Target aliases. | |
build WebCore: phony libWebCore.a | |
# ============================================================================= | |
# Folder targets. | |
# ============================================================================= | |
# ============================================================================= | |
# Unknown Build Time Dependencies. | |
# Tell Ninja that they may appear as side effects of build rules | |
# otherwise ordered by order-only dependencies. | |
# ============================================================================= | |
# Built-in targets | |
############################################# | |
# The main all target. | |
build all: phony libWebCore.a TestWebCore | |
############################################# | |
# Make the all target the default. | |
default all | |
############################################# | |
# Re-run CMake if any of its inputs changed. | |
build build.ninja: RERUN_CMAKE | ../CMakeLists.txt /usr/share/cmake-3.9/Modules/CMakeCInformation.cmake /usr/share/cmake-3.9/Modules/CMakeCXXInformation.cmake /usr/share/cmake-3.9/Modules/CMakeCommonLanguageInclude.cmake /usr/share/cmake-3.9/Modules/CMakeGenericSystem.cmake /usr/share/cmake-3.9/Modules/CMakeLanguageInformation.cmake /usr/share/cmake-3.9/Modules/CMakeSystemSpecificInformation.cmake /usr/share/cmake-3.9/Modules/CMakeSystemSpecificInitialize.cmake /usr/share/cmake-3.9/Modules/Compiler/CMakeCommonCompilerMacros.cmake /usr/share/cmake-3.9/Modules/Compiler/GNU-C.cmake /usr/share/cmake-3.9/Modules/Compiler/GNU-CXX.cmake /usr/share/cmake-3.9/Modules/Compiler/GNU.cmake /usr/share/cmake-3.9/Modules/Platform/Linux-GNU-C.cmake /usr/share/cmake-3.9/Modules/Platform/Linux-GNU-CXX.cmake /usr/share/cmake-3.9/Modules/Platform/Linux-GNU.cmake /usr/share/cmake-3.9/Modules/Platform/Linux.cmake /usr/share/cmake-3.9/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.9.1/CMakeCCompiler.cmake CMakeFiles/3.9.1/CMakeCXXCompiler.cmake CMakeFiles/3.9.1/CMakeSystem.cmake | |
pool = console | |
############################################# | |
# A missing CMake input file is not an error. | |
build ../CMakeLists.txt /usr/share/cmake-3.9/Modules/CMakeCInformation.cmake /usr/share/cmake-3.9/Modules/CMakeCXXInformation.cmake /usr/share/cmake-3.9/Modules/CMakeCommonLanguageInclude.cmake /usr/share/cmake-3.9/Modules/CMakeGenericSystem.cmake /usr/share/cmake-3.9/Modules/CMakeLanguageInformation.cmake /usr/share/cmake-3.9/Modules/CMakeSystemSpecificInformation.cmake /usr/share/cmake-3.9/Modules/CMakeSystemSpecificInitialize.cmake /usr/share/cmake-3.9/Modules/Compiler/CMakeCommonCompilerMacros.cmake /usr/share/cmake-3.9/Modules/Compiler/GNU-C.cmake /usr/share/cmake-3.9/Modules/Compiler/GNU-CXX.cmake /usr/share/cmake-3.9/Modules/Compiler/GNU.cmake /usr/share/cmake-3.9/Modules/Platform/Linux-GNU-C.cmake /usr/share/cmake-3.9/Modules/Platform/Linux-GNU-CXX.cmake /usr/share/cmake-3.9/Modules/Platform/Linux-GNU.cmake /usr/share/cmake-3.9/Modules/Platform/Linux.cmake /usr/share/cmake-3.9/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.9.1/CMakeCCompiler.cmake CMakeFiles/3.9.1/CMakeCXXCompiler.cmake CMakeFiles/3.9.1/CMakeSystem.cmake: phony | |
############################################# | |
# Clean all the built files. | |
build clean: CLEAN | |
############################################# | |
# Print all primary targets available. | |
build help: HELP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.0) | |
add_library(WebCore STATIC foo.c) | |
add_custom_command(TARGET WebCore PRE_LINK COMMAND ${CMAKE_COMMAND} -E echo hello) | |
add_executable(TestWebCore main.c) | |
target_link_libraries(TestWebCore WebCore) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ninja -v | |
[1/4] /usr/lib/ccache/cc -MD -MT CMakeFiles/WebCore.dir/foo.c.o -MF CMakeFiles/WebCore.dir/foo.c.o.d -o CMakeFiles/WebCore.dir/foo.c.o -c ../foo.c | |
[2/4] /usr/lib/ccache/cc -MD -MT CMakeFiles/TestWebCore.dir/main.c.o -MF CMakeFiles/TestWebCore.dir/main.c.o.d -o CMakeFiles/TestWebCore.dir/main.c.o -c ../main.c | |
[3/4] cd /home/fujii/tmp/cmake-ninja/build && /usr/bin/cmake -E echo hello && cd /home/fujii/tmp/cmake-ninja/build && /usr/bin/cmake -E remove libWebCore.a && /usr/bin/ar qc libWebCore.a CMakeFiles/WebCore.dir/foo.c.o && /usr/bin/ranlib libWebCore.a && : | |
hello | |
[4/4] : && /usr/lib/ccache/cc -rdynamic CMakeFiles/TestWebCore.dir/main.c.o -o TestWebCore libWebCore.a && : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment