Skip to content

Commit

Permalink
Merge pull request #102 from idog-ceva/master
Browse files Browse the repository at this point in the history
update SCopnstruct to support linux build. tested on ubuntu WSL 18.04

This commit looks good, thanks - Jianjia
  • Loading branch information
majianjia committed Nov 18, 2020
2 parents 1c41ca7 + cbd95e0 commit ec3afac
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions examples/rnn-denoise/SConstruct
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys

#if(not os.path.exists('CMSIS_5')):
# os.system('git clone https://github.com/ARM-software/CMSIS_5.git')
Expand Down Expand Up @@ -27,11 +28,18 @@ objs += Glob('mfcc.c')
# 'CMSIS_5/CMSIS/Core/Include'])
#env.Append(CPPDEFINES=['__ARM_ARCH_8M_BASE__'])
#env.Append(CCFLAGS=['-g','-O0','-std=gnu99'])

env.Append(CCFLAGS=['-std=c99'])


objs +=Glob('%s/src/core/*.c'%(ROOT))
objs +=Glob('%s/src/layers/*.c'%(ROOT))
objs +=Glob('%s/src/backends/*.c'%(ROOT))
env.Append(CPPPATH=['%s/inc'%(ROOT),'%s/port'%(ROOT)])

env.Program('rnn-denoise',objs)


env.Append(CPPPATH=['%s/inc'%(ROOT),'%s/port'%(ROOT)])
if sys.platform == "linux" or sys.platform == "linux2":
env.Program('rnn-denoise',objs,LIBS=['m'])
else:
env.Program('rnn-denoise',objs)

0 comments on commit ec3afac

Please sign in to comment.