summaryrefslogtreecommitdiff
path: root/doc/tutorial/third-party-software.org
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-11-28 15:41:36 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-12-09 13:12:51 +0100
commit62d155accb047ade3d5a7a89b643e286b333ba41 (patch)
tree6ac50f36933a18924987ad5d97536621450c6396 /doc/tutorial/third-party-software.org
parent7b2df270b2f8d66c1cf3bad70660b1c0de34b71c (diff)
downloadjustbuild-62d155accb047ade3d5a7a89b643e286b333ba41.tar.gz
rules: Drop the ["CC", "header directory"]
... in favor of the "tree" built-in rule.
Diffstat (limited to 'doc/tutorial/third-party-software.org')
-rw-r--r--doc/tutorial/third-party-software.org8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/tutorial/third-party-software.org b/doc/tutorial/third-party-software.org
index e088bc4b..7bce1c48 100644
--- a/doc/tutorial/third-party-software.org
+++ b/doc/tutorial/third-party-software.org
@@ -55,7 +55,7 @@ $ mkdir -p fmt-layer/src
#+END_SRC
The directory ~include/fmt~ contains only header files. As we want all files in
-this directory to be included in the ~"header directory"~ target, we can safely
+this directory to be included in the ~"hdrs"~ target, we can safely
use the explicit ~TREE~ reference[fn:1], which collects, in a single
artifact (describing a directory) /all/ directory contents
from ~"."~ of the workspace root. Note that the ~TARGETS~ file is only part of
@@ -74,15 +74,15 @@ references from the current module.
#+SRCNAME: fmt-layer/include/fmt/TARGETS
#+BEGIN_SRC js
{ "hdrs":
- { "type": ["@", "rules", "CC", "header directory"]
- , "hdrs": [["TREE", null, "."]]
+ { "type": ["@", "rules", "data", "staged"]
+ , "srcs": [["TREE", null, "."]]
, "stage": ["fmt"]
}
}
#+END_SRC
The actual library target is defined in the directory ~src~. For the public
-headers, it refers to the previously created header directory via its
+headers, it refers to the previously created ~"hdrs"~ target via its
fully-qualified target name (~["include/fmt", "hdrs"]~). Source files are the
two local files ~format.cc~, and ~os.cc~. The final target description in
~src/TARGETS~ will look like this: