mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-29 01:06:56 +00:00
V1.0.6
This commit is contained in:
39
packages/third-party/micropython-1.13.0/SConscript
vendored
Executable file
39
packages/third-party/micropython-1.13.0/SConscript
vendored
Executable file
@@ -0,0 +1,39 @@
|
||||
from building import *
|
||||
import rtconfig
|
||||
|
||||
# get current directory
|
||||
cwd = GetCurrentDir()
|
||||
# The set of source files associated with this SConscript file.
|
||||
src = Glob('py/*.c')
|
||||
src += Glob('lib/mp-readline/*.c')
|
||||
src += Glob('lib/utils/*.c')
|
||||
src += Glob('extmod/*.c')
|
||||
src += Glob('port/*.c')
|
||||
src += Glob('port/modules/*.c')
|
||||
src += Glob('port/modules/machine/*.c')
|
||||
src += Glob('port/modules/user/*.c')
|
||||
src += Glob('lib/netutils/*.c')
|
||||
src += Glob('lib/timeutils/*.c')
|
||||
src += Glob('drivers/bus/*.c')
|
||||
src += Glob('port/native/*.c')
|
||||
|
||||
path = [cwd + '/']
|
||||
path += [cwd + '/port']
|
||||
path += [cwd + '/port/modules']
|
||||
path += [cwd + '/port/modules/machine']
|
||||
|
||||
LOCAL_CCFLAGS = ' -Wno-overflow'
|
||||
LOCAL_CCFLAGS += ' -Wno-stringop-truncation'
|
||||
LOCAL_CCFLAGS += ' -Wno-incompatible-pointer-types'
|
||||
LOCAL_CCFLAGS += ' -Wno-implicit-function-declaration'
|
||||
LOCAL_CCFLAGS += ' -Wno-format'
|
||||
LOCAL_CCFLAGS += ' -Wno-int-conversion'
|
||||
|
||||
if rtconfig.CROSS_TOOL == 'gcc':
|
||||
LOCAL_CCFLAGS += ' -std=gnu99'
|
||||
elif rtconfig.CROSS_TOOL == 'keil':
|
||||
LOCAL_CCFLAGS += ' --c99 --gnu'
|
||||
|
||||
group = DefineGroup('MicroPython', src, depend = ['LPKG_USING_MICROPYTHON'], CPPPATH = path, CFLAGS = LOCAL_CCFLAGS)
|
||||
|
||||
Return('group')
|
||||
Reference in New Issue
Block a user