template: Update build and default app settings

better out-of-the-box experience for a new app.
This commit is contained in:
Andy Williams 2016-09-09 18:29:06 +01:00
parent 08de4c3af1
commit 1e556d275e
3 changed files with 14 additions and 5 deletions

View File

@ -6,11 +6,13 @@
* Always put system first, then EFL, then your public header, * Always put system first, then EFL, then your public header,
* and finally your private one. */ * and finally your private one. */
#if ENABLE_NLS
# include <libintl.h>
#endif
#include <Ecore_Getopt.h> #include <Ecore_Getopt.h>
#include <Elementary.h> #include <Elementary.h>
#include "gettext.h"
#include "${Edi_Name}.h" #include "${Edi_Name}.h"
#include "${edi_name}_private.h" #include "${edi_name}_private.h"
@ -37,11 +39,13 @@ ${edi_name}_win_setup(void)
label = elm_label_add(win); label = elm_label_add(win);
elm_object_text_set(label, " Hello World !"); elm_object_text_set(label, " Hello World !");
evas_object_size_hint_weight_set(label, 0.0, EVAS_HINT_EXPAND); evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(label, 0.0, EVAS_HINT_FILL); evas_object_size_hint_align_set(label, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(label); evas_object_show(label);
elm_win_resize_object_add(win, label); elm_win_resize_object_add(win, label);
evas_object_resize(win, 300 * elm_config_scale_get(),
200 * elm_config_scale_get());
evas_object_show(win); evas_object_show(win);

View File

@ -13,6 +13,8 @@ lib_LTLIBRARIES = lib${edi_name}.la
includes_HEADERS = ${Edi_Name}.h includes_HEADERS = ${Edi_Name}.h
includesdir = $(includedir)/${edi_name}-@VMAJ@ includesdir = $(includedir)/${edi_name}-@VMAJ@
lib${edi_name}_la_SOURCES = ${edi_name}.c lib${edi_name}_la_SOURCES = \
${efl_name}_private.h \
${edi_name}.c
lib${edi_name}_la_LIBADD = @EFL_LIBS@ -lm lib${edi_name}_la_LIBADD = @EFL_LIBS@ -lm
lib${edi_name}_la_LDFLAGS = -no-undefined @EFL_LTLIBRARY_FLAGS@ lib${edi_name}_la_LDFLAGS = -no-undefined @EFL_LTLIBRARY_FLAGS@

View File

@ -1,3 +1,5 @@
MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = check-results.xml
if EFL_HAVE_TESTS if EFL_HAVE_TESTS
@ -5,6 +7,7 @@ check_PROGRAMS = ${edi_name}_tests
${edi_name}_tests_SOURCES = test_${edi_name}.c ${edi_name}_tests_SOURCES = test_${edi_name}.c
${edi_name}_tests_CPPFLAGS = -I$(top_builddir)/src/lib/ \ ${edi_name}_tests_CPPFLAGS = -I$(top_builddir)/src/lib/ \
-I$(top_srcdir)/src/lib \
-DPACKAGE_TESTS_DIR=\"$(top_srcdir)/src/tests/\" \ -DPACKAGE_TESTS_DIR=\"$(top_srcdir)/src/tests/\" \
-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)/src/tests/\" \ -DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)/src/tests/\" \
@EFL_CFLAGS@ \ @EFL_CFLAGS@ \