mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-27 00:42:05 +08:00
added dp_priv submodule
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../dp_priv/
|
||||
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user