Files
刘可亮 724d6bf65e v1.1.2
2025-01-08 19:12:06 +08:00

53 lines
1.2 KiB
Python

Import('AIC_ROOT')
Import('PRJ_KERNEL')
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = []
if GetDepend('AIC_USING_CAMERA'):
CPPPATH.append(cwd)
CPPPATH.append(cwd + '/common')
src += Glob('common/*.c')
if GetDepend('AIC_USING_CAMERA_OV7670'):
src += Glob('ov7670/*.c')
if GetDepend('AIC_USING_CAMERA_OV5640'):
src += Glob('ov5640/*.c')
if GetDepend('AIC_USING_CAMERA_OV2659'):
src += Glob('ov2659/*.c')
if GetDepend('AIC_USING_CAMERA_OV2640'):
src += Glob('ov2640/*.c')
if GetDepend('AIC_USING_CAMERA_GC0308'):
src += Glob('gc0308/*.c')
if GetDepend('AIC_USING_CAMERA_GC032A'):
src += Glob('gc032a/*.c')
if GetDepend('AIC_USING_CAMERA_GM7150'):
src += Glob('gm7150/*.c')
if GetDepend('AIC_USING_CAMERA_SC030IOT'):
src += Glob('sc030iot/*.c')
if GetDepend('AIC_USING_CAMERA_SC031GS'):
src += Glob('sc031gs/*.c')
if GetDepend('AIC_USING_CAMERA_SC035HGS'):
src += Glob('sc035/*.c')
if GetDepend('AIC_USING_CAMERA_TP2825'):
src += Glob('tp2825b/tp2825bx.c')
LOCAL_CCFLAGS = ''
# LOCAL_CCFLAGS += ' -O0'
group = DefineGroup('ov5640', src, depend = [''], CPPPATH = CPPPATH, LOCAL_CCFLAGS=LOCAL_CCFLAGS)
Return('group')