diff options
author | 2016-06-20 14:31:25 +0000 | |
---|---|---|
committer | 2016-06-21 09:57:50 +0000 | |
commit | fd71b4fcb6796841ca434602aaf98ae99daf1783 (patch) | |
tree | 0a24cbedba3b9bb7aac5ed2fbe6ffc38270860a9 /src/main/java/com/google/devtools/build | |
parent | 52bc57cd26af622bbf8366d56fcdbad49e6886df (diff) |
Fix new_git_repository documentation
Fixes #1333.
--
MOS_MIGRATED_REVID=125335174
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/NewGitRepositoryRule.java | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/NewGitRepositoryRule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/NewGitRepositoryRule.java index 5dcc27b18f..f3ad2f8fba 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/NewGitRepositoryRule.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/NewGitRepositoryRule.java @@ -108,17 +108,6 @@ src/ openssl.h </pre> -<p>In the local repository, the user creates a <i>BUILD.ssl</i> file which contains the following -target definition:</p> - -<pre class="code"> -cc_library( - name = "openssl-lib", - srcs = ["openssl.cc"], - hdrs = ["openssl.h"], -) -</pre> - <p>Targets in the <i>~/chat-app</i> repository can depend on this target if the following lines are added to <i>~/chat-app/WORKSPACE</i>:</p> @@ -127,10 +116,15 @@ new_git_repository( name = "my-ssl", remote = "http://example.com/openssl/openssl.git", tag = "v1.0.2", - build_file = "BUILD.ssl", + build_file_content = """ +cc_library( + name = "openssl-lib", + srcs = ["src/openssl.cc"], + hdrs = ["src/openssl.h"], +)""", ) </pre> -<p>Then targets would specify <code>@my-ssl//src:openssl-lib</code> as a dependency.</p> +<p>Then targets would specify <code>@my-ssl//:openssl-lib</code> as a dependency.</p> <!-- #END_BLAZE_RULE -->*/ |