forked from enlightenment/efl
Introduction of buildtools!
buildtool is a little static library for the abstraction of buildtool depedend path generation.
This commit is contained in:
parent
c8f32bd770
commit
c93bd1b81b
|
@ -1454,7 +1454,7 @@ _elm_popup_efl_canvas_group_group_add(Eo *obj, Elm_Popup_Data *priv)
|
|||
priv->content_text_wrap_type = ELM_WRAP_MIXED;
|
||||
efl_event_callback_array_add(priv->notify, _notify_cb(), obj);
|
||||
|
||||
elm_widget_can_focus_set(obj, EINA_TRUE);
|
||||
elm_widget_can_focus_set(obj, EINA_FALSE);
|
||||
elm_widget_can_focus_set(priv->main_layout, EINA_TRUE);
|
||||
|
||||
_populate_theme_scroll(priv);
|
||||
|
@ -1853,7 +1853,7 @@ ELM_PART_CONTENT_DEFAULT_GET(elm_popup, "default")
|
|||
#define ELM_POPUP_EXTRA_OPS \
|
||||
ELM_LAYOUT_SIZING_EVAL_OPS(elm_popup), \
|
||||
EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_popup), \
|
||||
ELM_PART_CONTENT_DEFAULT_OPS(elm_popup)
|
||||
ELM_PART_CONTENT_DEFAULT_OPS(elm_popup)
|
||||
|
||||
#include "elm_popup.eo.c"
|
||||
#include "elm_popup_item.eo.c"
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* A little helper library for abstracting the path finding which depends on autotools (or later on other buildsystems)
|
||||
*
|
||||
* Author: Marcel Hollerbach
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <Eina.h>
|
||||
|
||||
/*
|
||||
* Fills the provided buffer with the path to the binary of a given subsystem
|
||||
*/
|
||||
Eina_Bool bs_binary_get(char *path, size_t maxlen, const char *subsystem, const char *bin_name);
|
||||
|
||||
/*
|
||||
* Fills the provided buffer with the path to the data file/dir of a given subsystem
|
||||
*/
|
||||
Eina_Bool bs_data_path_get(char *path, size_t maxlen, const char *subsystem, const char *file);
|
||||
|
||||
/*
|
||||
* Fills the provided buffer with the path to the .so file for modules of a given subsystem
|
||||
*/
|
||||
Eina_Bool bs_mod_get(char *path, size_t maxlen, const char *subsystem, const char *mod_name);
|
||||
|
||||
Eina_Bool bs_mod_dir_get(char *path, size_t maxlen, const char *subsystem, const char *mod_name);
|
|
@ -0,0 +1,50 @@
|
|||
#ifdef _WIN32
|
||||
# define BIN_EXT ".exe"
|
||||
#else
|
||||
# define BIN_EXT ""
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <Eina.h>
|
||||
|
||||
Eina_Bool
|
||||
bs_mod_get(char *path, size_t maxlen, const char *subsystem, const char *mod_name)
|
||||
{
|
||||
if (!getenv("EFL_RUN_IN_TREE")) return EINA_FALSE;
|
||||
|
||||
snprintf(path, maxlen, PACKAGE_BUILD_DIR"/src/modules/%s/%s/.libs/module"SHARED_LIB_SUFFIX, subsystem, mod_name);
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
Eina_Bool
|
||||
bs_mod_dir_get(char *path, size_t maxlen, const char *subsystem, const char *mod_name)
|
||||
{
|
||||
if (!getenv("EFL_RUN_IN_TREE")) return EINA_FALSE;
|
||||
|
||||
snprintf(path, maxlen, PACKAGE_BUILD_DIR"/src/modules/%s/%s/.libs", subsystem, mod_name);
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
Eina_Bool
|
||||
bs_binary_get(char *path, size_t maxlen, const char *subsystem, const char *bin_name)
|
||||
{
|
||||
if (!getenv("EFL_RUN_IN_TREE")) return EINA_FALSE;
|
||||
|
||||
snprintf(path, maxlen, PACKAGE_BUILD_DIR"/src/bin/%s/%s"BIN_EXT, subsystem, bin_name);
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
Eina_Bool
|
||||
bs_data_path_get(char *path, size_t maxlen, const char *subsystem, const char *file)
|
||||
{
|
||||
if (!getenv("EFL_RUN_IN_TREE")) return EINA_FALSE;
|
||||
|
||||
snprintf(path, maxlen, PACKAGE_SRC_DIR"/data/%s/%s", subsystem, file);
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
Loading…
Reference in New Issue