tree: f4024f191ed5d9d9de136b56ed7445b6a1504c4e [path history] [tgz]
  1. meta/
  2. BUILD.gn
  3. main.cc
  4. my-component-v2-cpp.cc
  5. my-component-v2-cpp.h
  6. my-component-v2-cpp_test.cc
  7. README.md
tools/create/goldens/my-component-v2-cpp/README.md

my-component-v2-cpp

TODO: Brief overview of the component.

Building

To add this component to your build, append --with-base tools/create/goldens/my-component-v2-cpp to the fx set invocation.

NOTE: V2 components must be included in base. Ephemerality is not supported yet.

Running

There is no convenient way to run a V2 component directly. First launch component_manager as a V1 component and give it the URL of this component.

$ fx shell run fuchsia-pkg://fuchsia.com/component_manager#meta/component_manager.cmx \
  fuchsia-pkg://fuchsia.com/my-component-v2-cpp#meta/my-component-v2-cpp.cm

Testing

Unit tests for my-component-v2-cpp are available in the my-component-v2-cpp-tests package.

$ fx test my-component-v2-cpp-tests