npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cmake-bare

v1.3.0

Published

Bare utilities for CMake

Downloads

4,809

Readme

cmake-bare

Bare utilities for CMake.

npm i cmake-bare
find_package(cmake-bare REQUIRED PATHS node_modules/cmake-bare)

API

bare_platform(<result>)

Write the current compilation target platform to the <result> variable.

bare_arch(<result>)

Write the current compilation target architecture to the <result> variable.

bare_simulator(<result>)

Write whether or not the current compilation target is a simulator to the <result> variable.

bare_target(<result>)

Write the current compilation target to the <result> variable.

bare_module_target(<directory> <result> [NAME <var>] [VERSION <var>] [HASH <var>])

Determine the CMake library target name of the module in <directory> and write the result to the <result> variable. The NAME, VERSION, and HASH arguments can be passed to access specific portions of the target name which will be of the format ${name}-${version}-${hash}.

add_bare_module(<result>)

Add a Bare native addon target and write the target name to the <result> variable.

include_bare_module(<specifier> <result> [PREBUILD] [SOURCE_DIR <var>] [BINARY_DIR <var>] [WORKING_DIRECTORY <path>])

Include the Bare native addon identified by <specifier> and write its library target name to the <result> variable. If PREBUILD is passed then the native addon prebuild will be included as an imported target. The SOURCE_DIR and BINARY_DIR arguments can be passed to access the source and binary directories of the included addon.

To change the working directory from which <specifier> is resolved, pass the WORKING_DIRECTORY argument.

link_bare_module(<receiver> <specifier> [SHARED] [WORKING_DIRECTORY <path>])

Link the Bare native addon identified by <specifier> to the library target identified by <receiver>. By default, the objects of the native addon will be linked, effectively embedding the addon in <receiver>. To instead link the shared library target of the native addon, such as when <receiver> is itself another native addon, pass the SHARED option.

To change the working directory from which <specifier> is resolved, pass the WORKING_DIRECTORY argument.

link_bare_modules(<receiver> [SHARED] [WORKING_DIRECTORY <path>])

Link all Bare native addons declared as dependencies in the package.json manifest of the current source directory to the library target identified by <receiver>. Arguments are the same of for link_bare_module().

License

Apache-2.0