summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile_Cxx.am23
-rw-r--r--src/tests/elementary_cxx/cxx_compile_test.cc4
-rw-r--r--src/tests/elementary_cxx/cxx_dummy_compile_test.cc5
3 files changed, 21 insertions, 11 deletions
diff --git a/src/Makefile_Cxx.am b/src/Makefile_Cxx.am
index 16317c8751..f564d4fa1e 100644
--- a/src/Makefile_Cxx.am
+++ b/src/Makefile_Cxx.am
@@ -348,20 +348,29 @@ tests_evas_cxx_cxx_compile_test_LDADD = @CHECK_LIBS@ @USE_EVAS_LIBS@
348tests_evas_cxx_cxx_compile_test_DEPENDENCIES = @USE_EVAS_INTERNAL_LIBS@ 348tests_evas_cxx_cxx_compile_test_DEPENDENCIES = @USE_EVAS_INTERNAL_LIBS@
349 349
350### Tests for Elementary 350### Tests for Elementary
351check_PROGRAMS += tests/elementary_cxx/cxx_compile_test 351check_PROGRAMS += tests/elementary_cxx/cxx_dummy_compile_test
352TESTS += tests/elementary_cxx/cxx_compile_test 352TESTS += tests/elementary_cxx/cxx_dummy_compile_test
353 353
354tests_elementary_cxx_cxx_compile_test_SOURCES = tests/elementary_cxx/cxx_compile_test.cc 354check_LIBRARIES = tests/elementary_cxx/libcxx_compile_test.a
355tests_elementary_cxx_cxx_compile_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl \ 355tests_elementary_cxx_libcxx_compile_test_a_SOURCES = tests/elementary_cxx/cxx_compile_test.cc
356tests_elementary_cxx_libcxx_compile_test_a_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
357-I$(top_builddir)/src/lib/evas/canvas/ \
358-I$(top_builddir)/src/lib/efl/interfaces/ \
359-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/elementary_cxx\" \
360-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/elementary_cxx\" \
361@CHECK_CFLAGS@ @ECORE_CXX_CFLAGS@ @EINA_CXX_CFLAGS@ @EVAS_CXX_CFLAGS@ @ELEMENTARY_CXX_CFLAGS@ @EO_CXX_CFLAGS@ \
362@ECORE_CFLAGS@ @EINA_CFLAGS@ @EVAS_CFLAGS@ @ELEMENTARY_CFLAGS@ @EO_CFLAGS@
363
364tests/elementary_cxx/tests_elementary_cxx_cxx_dummy_compile_test-cxx_dummy_compile_test.$(OBJEXT): tests/elementary_cxx/libcxx_compile_test.a
365
366tests_elementary_cxx_cxx_dummy_compile_test_SOURCES = tests/elementary_cxx/cxx_dummy_compile_test.cc
367tests_elementary_cxx_cxx_dummy_compile_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
356-I$(top_builddir)/src/lib/evas/canvas/ \ 368-I$(top_builddir)/src/lib/evas/canvas/ \
357-I$(top_builddir)/src/lib/efl/interfaces/ \ 369-I$(top_builddir)/src/lib/efl/interfaces/ \
358-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/elementary_cxx\" \ 370-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/elementary_cxx\" \
359-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/elementary_cxx\" \ 371-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/elementary_cxx\" \
360@CHECK_CFLAGS@ @ECORE_CXX_CFLAGS@ @EINA_CXX_CFLAGS@ @EVAS_CXX_CFLAGS@ @ELEMENTARY_CXX_CFLAGS@ @EO_CXX_CFLAGS@ \ 372@CHECK_CFLAGS@ @ECORE_CXX_CFLAGS@ @EINA_CXX_CFLAGS@ @EVAS_CXX_CFLAGS@ @ELEMENTARY_CXX_CFLAGS@ @EO_CXX_CFLAGS@ \
361@ECORE_CFLAGS@ @EINA_CFLAGS@ @EVAS_CFLAGS@ @ELEMENTARY_CFLAGS@ @EO_CFLAGS@ 373@ECORE_CFLAGS@ @EINA_CFLAGS@ @EVAS_CFLAGS@ @ELEMENTARY_CFLAGS@ @EO_CFLAGS@
362# No function is called, so we don't need to link to elementary
363tests_elementary_cxx_cxx_compile_test_LDADD = @CHECK_LIBS@
364tests_elementary_cxx_cxx_compile_test_DEPENDENCIES =
365 374
366endif 375endif
367 376
diff --git a/src/tests/elementary_cxx/cxx_compile_test.cc b/src/tests/elementary_cxx/cxx_compile_test.cc
index 0ff0f2af14..62b9460bf0 100644
--- a/src/tests/elementary_cxx/cxx_compile_test.cc
+++ b/src/tests/elementary_cxx/cxx_compile_test.cc
@@ -8,7 +8,3 @@
8 8
9#include <iostream> 9#include <iostream>
10 10
11int main()
12{
13 return 0;
14}
diff --git a/src/tests/elementary_cxx/cxx_dummy_compile_test.cc b/src/tests/elementary_cxx/cxx_dummy_compile_test.cc
new file mode 100644
index 0000000000..a25e6296a3
--- /dev/null
+++ b/src/tests/elementary_cxx/cxx_dummy_compile_test.cc
@@ -0,0 +1,5 @@
1
2int main()
3{
4 return 0;
5}