Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cemeceme/cmake-rules

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmake-rules

A set of please rules, that can handle some cmake related functionality.

How to use

First, make sure to include the plugin within your please project by adding the following to your projects plugins/BUILD file:

plugin_repo(
  name = "cmake",
  revision = "master",
  plugin = "cmake-rules",
  owner = "cemeceme"
)

Make sure to either preloadsubincludes or subinclude the rules in the BUILD files where you need them.

Provided rules

cmake_configure_file

Parses a file and generates a configured file as calling cmakes configure_file would.

Takes the following arguments:

name         (str) : Name of this rule.
src          (str) : The source file to parse.
out          (str) : The output for the generated file.
escapeQuotes (bool): If true, escapes substituted quotes with c-stype backslashes. Defaults to False. TODO
atOnly       (bool): If true, only replaces variables in the form of @VAR@. Defaults to False.
variables    (dict): A dictionary of variables to substitute or enable in the source.
deps         (list): Dependent rules.
test_only    (bool): True if this rule should only be used for tests. Defaults to False.
visibility   (list): list of rules that should have visibility to this rule. Defaults to None.

About

A set of please rules, that can handle some cmake related functionality.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.