blob: e6711783e38b9b297df158ef83a9afe5776a48e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
--- a/app/low_config.h
+++ b/app/low_config.h
@@ -25,4 +25,8 @@
#define LOW_ESP32_LWIP_SPECIALITIES 0
+#ifndef LOW_LIB_PATH
+#define LOW_LIB_PATH "../lib/"
+#endif
+
#endif /* __LOW_CONFIG_H__ */
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -37,7 +37,7 @@
if(*argc < 2)
return;
- const char postfix[] = "../lib/low-exe";
+ const char postfix[] = LOW_LIB_PATH "/low-exe";
int len = strlen((*argv)[0]);
if(len < sizeof(postfix) || strcmp((*argv)[0] + len - (sizeof(postfix) - 1), postfix) != 0)
return;
--- a/src/low_system.cpp
+++ b/src/low_system.cpp
@@ -129,7 +129,7 @@
g_low_system.lib_path = NULL;
- const char lib_add_path[] = "../lib/";
+ const char lib_add_path[] = LOW_LIB_PATH;
int lib_add_path_len = sizeof(lib_add_path) - 1;
#ifdef __APPLE__
|