-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[update] add llm_skel(Temporary version)
- Loading branch information
1 parent
234cc58
commit 8ec0be8
Showing
16 changed files
with
9,392 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import os | ||
|
||
Import('env') | ||
with open(env['PROJECT_TOOL_S']) as f: | ||
exec(f.read()) | ||
|
||
SRCS = append_srcs_dir(ADir('src')) | ||
INCLUDE = [ADir('include'), ADir('.')] | ||
PRIVATE_INCLUDE = [] | ||
REQUIREMENTS = ['pthread', 'utilities', 'ax_msp', 'eventpp', 'StackFlow', 'ax-samples'] | ||
|
||
STATIC_LIB = [] | ||
DYNAMIC_LIB = [] | ||
DEFINITIONS = [] | ||
DEFINITIONS_PRIVATE = [] | ||
LDFLAGS = [] | ||
LINK_SEARCH_PATH = [] | ||
STATIC_FILES = [] | ||
|
||
DEFINITIONS += ['-std=c++17'] | ||
LDFLAGS+=['-Wl,-rpath=/opt/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib/gcc-10.3', '-Wl,-rpath=/opt/lib', '-Wl,-rpath=/opt/usr/lib', '-Wl,-rpath=./'] | ||
LINK_SEARCH_PATH += [ADir('../static_lib')] | ||
REQUIREMENTS += ['ax_engine', 'ax_interpreter', 'ax_sys'] | ||
REQUIREMENTS += ['ax_skel', 'ax_engine', 'ax_venc', 'ax_vdec', 'ax_ivps', 'ax_proton'] | ||
|
||
INCLUDE += [ADir('../include'), ADir('src/runner'), ADir('../include/opencv4')] | ||
|
||
static_file = Glob('../static_lib/module-llm/libabsl_*') | ||
static_file = Glob('../static_lib/libopencv-4.6-aarch64-none/lib/lib*') | ||
STATIC_LIB += static_file * 2 | ||
|
||
|
||
|
||
env['COMPONENTS'].append({'target':'llm_skel', | ||
'SRCS':SRCS, | ||
'INCLUDE':INCLUDE, | ||
'PRIVATE_INCLUDE':PRIVATE_INCLUDE, | ||
'REQUIREMENTS':REQUIREMENTS, | ||
'STATIC_LIB':STATIC_LIB, | ||
'DYNAMIC_LIB':DYNAMIC_LIB, | ||
'DEFINITIONS':DEFINITIONS, | ||
'DEFINITIONS_PRIVATE':DEFINITIONS_PRIVATE, | ||
'LDFLAGS':LDFLAGS, | ||
'LINK_SEARCH_PATH':LINK_SEARCH_PATH, | ||
'STATIC_FILES':STATIC_FILES, | ||
'REGISTER':'project' | ||
}) |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.