Skip to content

Commit

Permalink
Remove old impl target
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Oct 11, 2023
1 parent 84a370f commit a73d15f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
18 changes: 0 additions & 18 deletions src/fprime/fbuild/target_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,6 @@
build_type=BuildType.BUILD_TESTING,
)


#### Implementation targets ####
BuildSystemTarget(
"impl",
mnemonic="impl",
desc="Generate implementation template files",
scope=TargetScope.LOCAL,
)
BuildSystemTarget(
"testimpl",
mnemonic="impl",
desc="Generate unit test files",
flags={"ut"},
build_type=BuildType.BUILD_TESTING,
scope=TargetScope.LOCAL,
)


#### Check targets ####
check = BuildSystemTarget(
"check",
Expand Down
4 changes: 2 additions & 2 deletions src/fprime/fpp/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def add_fpp_impl_parsers(
Tuple of dictionary mapping command name to processor, and command to parser
"""
impl_parser = subparsers.add_parser(
"fpp_impl",
"impl",
help="Generate implementation templates",
parents=[common],
add_help=False,
Expand All @@ -153,4 +153,4 @@ def add_fpp_impl_parsers(
help="Disable formatting (using clang-format) of generated files",
required=False,
)
return {"fpp_impl": run_fpp_impl}, {"fpp_impl": impl_parser}
return {"impl": run_fpp_impl}, {"impl": impl_parser}
8 changes: 4 additions & 4 deletions src/fprime/util/help_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@
'{EXECUTABLE} impl' generates the implementation templates for the specified directory ('-p/--path' or current working
directory). Implementation generation is only available for component directories and should not be used on deployments.
Two files will be created <component>.cpp-template and <component>.hpp-template. These contain the fill-in base code for
Two files will be created <component>.template.cpp and <component>.template.hpp. These contain the fill-in base code for
the component implementation as defined by the component's model.
When the '--ut' flag is specified the unit test implementation templates are created instead. The user should use the
Tester.cpp, Tester.hpp and TestMain.cpp files as their fill-in templates. Other files created can be safely removed as
they will be regenerated at build time.
When the '--ut' flag is specified the unit test implementation templates are created instead, under <path>/test/ut. The
user should use the Tester.cpp, Tester.hpp and TestMain.cpp files as their fill-in templates. Other files created can be
safely removed as they will be regenerated at build time.
Example:
Expand Down

0 comments on commit a73d15f

Please sign in to comment.