Refactor: Separate XUA lite and app code

This commit is contained in:
Oscar Bailey
2019-02-27 11:05:25 +00:00
parent b12aeac264
commit 0b926fd907
12 changed files with 18 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ def configure(conf):
def build(bld):
target_path = 'bin/' + bld.options.target
bld.env.TARGET_ARCH ='src/RPI_HAT_60QFN.xn'
bld.env.TARGET_ARCH ='config/RPI_HAT_60QFN.xn'
bld.env.XSCOPE = bld.path.find_resource('config.xscope')
depends_on = ['lib_xua','lib_i2s','lib_xud','lib_mic_array', 'lib_i2c']
#bld.env.XCC_FLAGS = ['-O2', '-g', '-Wall', '-fcmdline-buffer-bytes=512', '-report', '-DDISABLE_STAGE_C']
@@ -20,5 +20,7 @@ def build(bld):
if bld.options.debug:
bld.env.XCC_FLAGS.append('-DDEBUG')
source = bld.path.ant_glob(['src/**/*.xc', 'src/**/*.c'])
bld.program(source=source, depends_on=depends_on,target=target_path)
source = bld.path.ant_glob(['src/**/*.xc', 'src/**/*.c',
'xua_lite/**/*.xc', 'xua_lite/**/*.c'])
includes = ['config']
bld.program(source=source, includes=includes, depends_on=depends_on,target=target_path)