added dp_priv submodule

This commit is contained in:
Rick Lan
2024-06-11 10:50:06 +08:00
parent 42861f6683
commit b6c4cfbb2d
4 changed files with 13 additions and 0 deletions
+3
View File
@@ -19,3 +19,6 @@
[submodule "tinygrad"]
path = tinygrad_repo
url = https://github.com/geohot/tinygrad.git
[submodule "dp_priv"]
path = dp_priv
url = https://github.com/dragonpilot-community/dp_priv.git
+4
View File
@@ -165,6 +165,10 @@ else:
ccflags = []
ldflags = []
if len(os.listdir(Dir(f"#dp_priv/").abspath)) > 2:
cflags += ["-DDP"]
cxxflags += ["-DDP"]
# no --as-needed on mac linker
if arch != "Darwin":
ldflags += ["-Wl,--as-needed", "-Wl,--no-undefined"]
+1
View File
@@ -0,0 +1 @@
../dp_priv/
+5
View File
@@ -3,6 +3,11 @@ import json
Import('qt_env', 'arch', 'common', 'messaging', 'visionipc',
'cereal', 'transformations')
def insert_src(list, after_src, src):
return list[:list.index(after_src)+1] + src + list[list.index(after_src)+1:]
dp_priv = len(os.listdir(Dir(f"#dp_priv/").abspath)) > 2
base_libs = [common, messaging, cereal, visionipc, transformations, 'zmq',
'capnp', 'kj', 'm', 'OpenCL', 'ssl', 'crypto', 'pthread'] + qt_env["LIBS"]