[3.0] Put third party source files in separate folder & exclude from coverage 61/78361/3 accepted/tizen/common/20160705.170833 accepted/tizen/ivi/20160706.014131 accepted/tizen/mobile/20160706.014016 accepted/tizen/tv/20160706.014043 accepted/tizen/wearable/20160706.014107 submit/tizen/20160705.094122
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 22 Jun 2016 11:36:31 +0000 (12:36 +0100)
committertaeyoon <taeyoon0.lee@samsung.com>
Tue, 5 Jul 2016 09:13:43 +0000 (18:13 +0900)
Change-Id: Iaa1333b06aaf596d47b901b28cafd4f19ab1613b

14 files changed:
automated-tests/src/dali-toolkit-third-party/facebook-flexbox/layout-test-utils.h
build/tizen/Makefile.am
build/tizen/dali-toolkit/Makefile.am
dali-toolkit/internal/controls/flex-container/flex-container-impl.h
dali-toolkit/internal/controls/renderers/svg/svg-rasterize-thread.cpp
dali-toolkit/internal/controls/renderers/svg/svg-renderer.cpp
dali-toolkit/internal/file.list
dali-toolkit/third-party/facebook-flexbox/layout.c [moved from dali-toolkit/internal/controls/flex-container/layout.c with 100% similarity]
dali-toolkit/third-party/facebook-flexbox/layout.h [moved from dali-toolkit/internal/controls/flex-container/layout.h with 100% similarity]
dali-toolkit/third-party/file.list [new file with mode: 0644]
dali-toolkit/third-party/nanosvg/nanosvg.cc [moved from dali-toolkit/internal/controls/renderers/svg/nanosvg/nanosvg.cc with 100% similarity]
dali-toolkit/third-party/nanosvg/nanosvg.h [moved from dali-toolkit/internal/controls/renderers/svg/nanosvg/nanosvg.h with 100% similarity]
dali-toolkit/third-party/nanosvg/nanosvgrast.cc [moved from dali-toolkit/internal/controls/renderers/svg/nanosvg/nanosvgrast.cc with 100% similarity]
dali-toolkit/third-party/nanosvg/nanosvgrast.h [moved from dali-toolkit/internal/controls/renderers/svg/nanosvg/nanosvgrast.h with 100% similarity]

index 9c8a903..7513141 100644 (file)
@@ -10,7 +10,7 @@
 #include <stdio.h>
 #include <string.h>
 
-#include <dali-toolkit/internal/controls/flex-container/layout.h>
+#include <dali-toolkit/third-party/facebook-flexbox/layout.h>
 
 void test(const char *name, css_node_t *style, css_node_t *expected_layout);
 bool tests_finished(void);
index e116401..18faf8d 100644 (file)
@@ -55,7 +55,7 @@ cov_data:
        @for i in `find $(COVERAGE_DIR) -name "libdali_toolkit_la-*.gcda" -o -name "libdali_toolkit_la-*.gcno"` ;\
                do mv $$i `echo $$i | sed s/libdali_toolkit_la-//` ; echo $$i ; done
        @cd $(COVERAGE_DIR) ; lcov $(LCOV_OPTS) --base-directory . --directory . -c -o dali.info
-       @cd $(COVERAGE_DIR) ; lcov $(LCOV_OPTS) --remove dali.info "/usr/include/*" "*/dali-env/*" -o dali.info
+       @cd $(COVERAGE_DIR) ; lcov $(LCOV_OPTS) --remove dali.info "/usr/include/*" "*/dali-env/*" "*/dali-toolkit/third-party/*" -o dali.info
        @test -z $(COVERAGE_OUTPUT_DIR) || mkdir -p $(COVERAGE_OUTPUT_DIR)
 
 coverage: cov_data
index 2cc6de7..7383ebe 100644 (file)
 
 # Build the Dali Toolkit library
 
-toolkit_images_dir = ../../../dali-toolkit/styles/images-common
-toolkit_sounds_dir = ../../../dali-toolkit/sounds
-toolkit_src_dir    = ../../../dali-toolkit/internal
-public_api_src_dir = ../../../dali-toolkit/public-api
-devel_api_src_dir  = ../../../dali-toolkit/devel-api
+toolkit_images_dir  = ../../../dali-toolkit/styles/images-common
+toolkit_sounds_dir  = ../../../dali-toolkit/sounds
+toolkit_src_dir     = ../../../dali-toolkit/internal
+public_api_src_dir  = ../../../dali-toolkit/public-api
+devel_api_src_dir   = ../../../dali-toolkit/devel-api
+third_party_src_dir = ../../../dali-toolkit/third-party
 
 toolkit_styles_dir = $(STYLE_DIR)
 toolkit_style_images_dir = $(STYLE_DIR)/images
@@ -31,6 +32,7 @@ include ../../../dali-toolkit/styles/images-common/file.list
 include ../../../dali-toolkit/internal/file.list
 include ../../../dali-toolkit/public-api/file.list
 include ../../../dali-toolkit/devel-api/file.list
+include ../../../dali-toolkit/third-party/file.list
 
 vector_based_text_src_dir = ../../../dali-toolkit/internal/text/rendering/vector-based
 include ../../../dali-toolkit/internal/text/rendering/vector-based/file.list
@@ -56,7 +58,8 @@ lib_LTLIBRARIES = libdali-toolkit.la
 libdali_toolkit_la_SOURCES = \
                      $(toolkit_src_files) \
                      $(public_api_src_files) \
-                     $(devel_api_src_files)
+                     $(devel_api_src_files) \
+                     $(third_party_src_files)
 
 dalistyledir = ${dataReadOnlyDir}/toolkit/styles/
 dalistyle_DATA = ${dali_toolkit_style_files}
index 2005f9c..f89c1f4 100644 (file)
@@ -26,7 +26,7 @@
 #include <dali-toolkit/public-api/controls/flex-container/flex-container.h>
 extern "C"
 {
-#include "layout.h"
+#include <dali-toolkit/third-party/facebook-flexbox/layout.h>
 }
 
 namespace Dali
index a2c1ad7..9e2e707 100644 (file)
@@ -19,8 +19,8 @@
 #include "svg-rasterize-thread.h"
 
 // INTERNAL INCLUDES
-#include "nanosvg/nanosvgrast.h"
-#include "svg-renderer.h"
+#include <dali-toolkit/third-party/nanosvg/nanosvgrast.h>
+#include <dali-toolkit/internal/controls/renderers/svg/svg-renderer.h>
 
 namespace Dali
 {
index ce3dbc0..8fbf70a 100644 (file)
@@ -26,8 +26,8 @@
 #include <dali/integration-api/debug.h>
 
 // INTERNAL INCLUDES
-#include "nanosvg/nanosvg.h"
-#include "svg-rasterize-thread.h"
+#include <dali-toolkit/third-party/nanosvg/nanosvg.h>
+#include <dali-toolkit/internal/controls/renderers/svg/svg-rasterize-thread.h>
 #include <dali-toolkit/internal/controls/renderers/image/image-renderer.h>
 #include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
 #include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
index f9edbdd..e5d0dc1 100644 (file)
@@ -25,8 +25,6 @@ toolkit_src_files = \
    $(toolkit_src_dir)/controls/renderers/gradient/linear-gradient.cpp \
    $(toolkit_src_dir)/controls/renderers/gradient/radial-gradient.cpp \
    $(toolkit_src_dir)/controls/renderers/gradient/gradient-renderer.cpp \
-   $(toolkit_src_dir)/controls/renderers/svg/nanosvg/nanosvg.cc \
-   $(toolkit_src_dir)/controls/renderers/svg/nanosvg/nanosvgrast.cc \
    $(toolkit_src_dir)/controls/renderers/svg/svg-rasterize-thread.cpp \
    $(toolkit_src_dir)/controls/renderers/svg/svg-renderer.cpp \
    $(toolkit_src_dir)/controls/alignment/alignment-impl.cpp \
@@ -38,7 +36,6 @@ toolkit_src_files = \
    $(toolkit_src_dir)/controls/buttons/push-button-impl.cpp \
    $(toolkit_src_dir)/controls/buttons/radio-button-impl.cpp \
    $(toolkit_src_dir)/controls/effects-view/effects-view-impl.cpp \
-   $(toolkit_src_dir)/controls/flex-container/layout.c \
    $(toolkit_src_dir)/controls/flex-container/flex-container-impl.cpp \
    $(toolkit_src_dir)/controls/gaussian-blur-view/gaussian-blur-view-impl.cpp \
    $(toolkit_src_dir)/controls/image-view/image-view-impl.cpp \
diff --git a/dali-toolkit/third-party/file.list b/dali-toolkit/third-party/file.list
new file mode 100644 (file)
index 0000000..53e027f
--- /dev/null
@@ -0,0 +1,4 @@
+third_party_src_files = \
+   $(third_party_src_dir)/nanosvg/nanosvg.cc \
+   $(third_party_src_dir)/nanosvg/nanosvgrast.cc \
+   $(third_party_src_dir)/facebook-flexbox/layout.c