summaryrefslogtreecommitdiff
path: root/components/external/nanopb/SConscript
diff options
context:
space:
mode:
authorBright Pan <[email protected]>2015-03-10 18:07:33 +0800
committerBright Pan <[email protected]>2015-03-10 18:24:17 +0800
commita61d228b764baa422ad39dc14f91e80f225369df (patch)
tree2799cb8e13517f6c65acea34f71dfef8519defb1 /components/external/nanopb/SConscript
parent0b5958d7006faf711fcf7fe33a4992bfb588aeee (diff)
Nanopb is a plain-C implementation of Google's Protocol Buffers data
format. It is targeted at 32 bit microcontrollers, but is also fit for other embedded systems with tight (2-10 kB ROM, <1 kB RAM) memory constraints.(http://koti.kapsi.fi/jpa/nanopb/) How to use the example: 1. move examples/nanopb to bsp/xxxx/ 2. enable macro RT_USING_NANOPB in rtconfig.h 3. regenerate the project file (scons --target=xxxx) 4. rebuild the project
Diffstat (limited to 'components/external/nanopb/SConscript')
-rw-r--r--components/external/nanopb/SConscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/components/external/nanopb/SConscript b/components/external/nanopb/SConscript
new file mode 100644
index 0000000000..66cf05fb5a
--- /dev/null
+++ b/components/external/nanopb/SConscript
@@ -0,0 +1,14 @@
+Import('RTT_ROOT')
+Import('rtconfig')
+from building import *
+
+src = Split('''
+pb_common.c
+pb_decode.c
+pb_encode.c
+''')
+CPPPATH = [RTT_ROOT + '/components/external/nanopb']
+
+group = DefineGroup('Nanopb', src, depend = ['RT_USING_NANOPB'], CPPPATH = CPPPATH)
+
+Return('group') \ No newline at end of file