forked from zephyrproject-rtos/nanopb
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make CMakeLists install as Python module 'nanopb', not 'proto' (nanop…
…b#845) Makes the installation consistent with "pip install nanopb" results, and avoids naming conflicts with other libraries.
- Loading branch information
1 parent
9766c45
commit 5896c28
Showing
5 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env python3 | ||
# This script is a wrapper to invoke nanopb_generator from an installed Python module. | ||
import sys | ||
from nanopb.generator.nanopb_generator import main_cli, main_plugin | ||
if __name__ == '__main__': | ||
sys.exit(main_cli()) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
# Allow calling nanopb_generator.py as simply nanopb_generator. | ||
# This provides consistency with packages installed through CMake or pip. | ||
|
||
from nanopb_generator import * | ||
if __name__ == '__main__': | ||
main_cli() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@echo off | ||
:: Allow calling nanopb_generator.py as simply nanopb_generator. | ||
:: This provides consistency with packages installed through CMake or pip. | ||
set mydir=%~dp0 | ||
python "%mydir%\nanopb_generator.py" %* |