blob: adcd5b8825fb346fbdb58939253ffcd91e5c541a [file] [log] [blame]
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{namespace d_library}
/***/
{template .soyweb}
{call buck.page}
{param title: 'd_library()' /}
{param navid: 'rule_d_library' /}
{param prettify: true /}
{param description}
A d_library() rule represents a set of D source files.
{/param}
{param content}
{call buck.rule}
{param status: 'UNFROZEN' /}
{param overview}
A d_library() rule represents a set of D source files.
{/param}
{param args}
{call buck.name_arg /}
{call d_common.srcs_arg /}
{call d_common.deps_arg /}
{/param} // close args
{param examples}
{literal}<pre class="prettyprint lang-py">
# A simple library with a single source file and a single dependency.
d_library(
name='greeting',
srcs=[
'greeting.d',
],
deps=[
':join',
],
)
d_library(
name='join',
srcs=[
'join.d',
],
)
</pre>{/literal}
{/param}
{/call} // close buck.rule
{/param}
{/call}
{/template}