diff options
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/edje/edje-swallow2.c | 7 | ||||
-rw-r--r-- | src/examples/edje/meson.build | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/examples/edje/edje-swallow2.c b/src/examples/edje/edje-swallow2.c index fe3f95632d..c393ad811c 100644 --- a/src/examples/edje/edje-swallow2.c +++ b/src/examples/edje/edje-swallow2.c @@ -19,6 +19,11 @@ #define PACKAGE_DATA_DIR "." #endif +#ifndef PACKAGE_SOURCE_DATA_DIR +#define PACKAGE_SOURCE_DATA_DIR "." +#endif + + #include <Ecore.h> #include <Ecore_Evas.h> #include <Edje.h> @@ -36,7 +41,7 @@ int main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED) { const char *edje_file = PACKAGE_DATA_DIR"/swallow.edj"; - const char *img_file = PACKAGE_DATA_DIR"/bubble.png"; + const char *img_file = PACKAGE_SOURCE_DATA_DIR"/bubble.png"; Ecore_Evas *ee; Evas *evas; Evas_Object *bg; diff --git a/src/examples/edje/meson.build b/src/examples/edje/meson.build index d73c83a199..a77d9f26fa 100644 --- a/src/examples/edje/meson.build +++ b/src/examples/edje/meson.build @@ -130,6 +130,7 @@ foreach edje_example : edje_examples executable(edje_example, [edje_example + '.c'] + themes, dependencies: [edje, ecore_evas], - c_args: ['-DPACKAGE_DATA_DIR="'+ meson.current_build_dir()+'"',] + c_args: ['-DPACKAGE_DATA_DIR="'+ meson.current_build_dir()+'"', + '-DPACKAGE_SOURCE_DATA_DIR="'+ meson.current_source_dir()+'"',] ) endforeach |