summaryrefslogtreecommitdiff
path: root/src/bin/embryo
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2018-02-16 20:35:38 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-02-17 21:17:58 +0100
commit64d671873432d2c99637f46963c16a0233e45746 (patch)
tree05082176a3146014b6c51733fb5e4c2c0d92f2b3 /src/bin/embryo
parent86b4af41c373a5b7d7f47770c05db1a787158e0d (diff)
embryo:use new bs static lib
Diffstat (limited to 'src/bin/embryo')
-rw-r--r--src/bin/embryo/embryo_cc_sc1.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c
index c3443dbc63..7c8283f0c9 100644
--- a/src/bin/embryo/embryo_cc_sc1.c
+++ b/src/bin/embryo/embryo_cc_sc1.c
@@ -44,6 +44,8 @@
44 44
45#include "embryo_cc_sc.h" 45#include "embryo_cc_sc.h"
46#include "embryo_cc_prefix.h" 46#include "embryo_cc_prefix.h"
47#include "../../static_libs/buildsystem/buildsystem.h"
48
47 49
48#define VERSION_STR "2.4" 50#define VERSION_STR "2.4"
49#define VERSION_INT 240 51#define VERSION_INT 240
@@ -568,22 +570,13 @@ static void
568parseoptions(int argc, char **argv, char *iname, char *oname, 570parseoptions(int argc, char **argv, char *iname, char *oname,
569 char *pname EINA_UNUSED, char *rname EINA_UNUSED) 571 char *pname EINA_UNUSED, char *rname EINA_UNUSED)
570{ 572{
571 char str[PATH_MAX]; 573 char str[PATH_MAX] = "";
572 int i, stack_size; 574 int i, stack_size;
573 size_t len; 575 size_t len;
574 576
575#ifdef NEED_RUN_IN_TREE 577 bs_data_path_get(str, sizeof(str), "embryo", "");
576 str[0] = '\0';
577 if (getenv("EFL_RUN_IN_TREE"))
578 {
579 struct stat st;
580 snprintf(str, sizeof(str), "%s/data/embryo", PACKAGE_SRC_DIR);
581 if (stat(str, &st) != 0)
582 str[0] = '\0';
583 }
584 578
585 if (str[0] == '\0') 579 if (str[0] == '\0')
586#endif
587 snprintf(str, sizeof(str), "%s/include/", e_prefix_data_get()); 580 snprintf(str, sizeof(str), "%s/include/", e_prefix_data_get());
588 581
589 /* use embryo include dir always */ 582 /* use embryo include dir always */