[M67 Dev][API] Switch ewk_export.h with tizen.h 53/190953/1
authorYoungsoo Choi <kenshin.choi@samsung.com>
Thu, 2 Feb 2017 04:46:46 +0000 (13:46 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Wed, 10 Oct 2018 01:39:21 +0000 (01:39 +0000)
By the request of platform team, the 'ewk_export.h' is not allowed
to export ewk_* APIs. This switches 'ewk_export.h' with 'tizen.h' for that.

Btw, the desktop build can't use 'tizen.h' because it is
only provided by tizen snapshot. So, this contains the 'tizen.h'
and exports the C_INCLUDE_PATH and CPLUS_INCLUDE_PATH in desktop build.

Reference:
https://review.tizen.org/gerrit/#/c/173291/

Change-Id: I2d20dd2d6cae17517305decf08a80f2a741322bc
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
39 files changed:
tizen_src/build/build_desktop.sh
tizen_src/build/desktop/tizen_include/tizen.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/BUILD.gn
tizen_src/ewk/efl_integration/private/ewk_context_form_autofill_profile_private.h
tizen_src/ewk/efl_integration/private/ewk_main_private.h
tizen_src/ewk/efl_integration/private/ewk_private.h
tizen_src/ewk/efl_integration/public/ewk_application_cache_manager.h
tizen_src/ewk/efl_integration/public/ewk_auth_challenge.h
tizen_src/ewk/efl_integration/public/ewk_auth_request.h
tizen_src/ewk/efl_integration/public/ewk_autofill_profile.h
tizen_src/ewk/efl_integration/public/ewk_back_forward_list.h
tizen_src/ewk/efl_integration/public/ewk_back_forward_list_item.h
tizen_src/ewk/efl_integration/public/ewk_certificate.h
tizen_src/ewk/efl_integration/public/ewk_console_message.h
tizen_src/ewk/efl_integration/public/ewk_content_screening_detection.h
tizen_src/ewk/efl_integration/public/ewk_context_menu.h
tizen_src/ewk/efl_integration/public/ewk_custom_handlers.h
tizen_src/ewk/efl_integration/public/ewk_dispatcher.h
tizen_src/ewk/efl_integration/public/ewk_error.h
tizen_src/ewk/efl_integration/public/ewk_favicon_database.h
tizen_src/ewk/efl_integration/public/ewk_frame.h
tizen_src/ewk/efl_integration/public/ewk_geolocation.h
tizen_src/ewk/efl_integration/public/ewk_history.h
tizen_src/ewk/efl_integration/public/ewk_hit_test.h
tizen_src/ewk/efl_integration/public/ewk_intercept_request.h
tizen_src/ewk/efl_integration/public/ewk_main.h
tizen_src/ewk/efl_integration/public/ewk_object.h
tizen_src/ewk/efl_integration/public/ewk_page_group.h
tizen_src/ewk/efl_integration/public/ewk_popup_menu_item.h
tizen_src/ewk/efl_integration/public/ewk_quota_permission_request.h
tizen_src/ewk/efl_integration/public/ewk_security_origin.h
tizen_src/ewk/efl_integration/public/ewk_settings.h
tizen_src/ewk/efl_integration/public/ewk_storage_manager.h
tizen_src/ewk/efl_integration/public/ewk_text_style.h
tizen_src/ewk/efl_integration/public/ewk_tracing.h
tizen_src/ewk/efl_integration/public/ewk_user_media.h
tizen_src/ewk/efl_integration/public/ewk_web_application_icon_data.h
tizen_src/ewk/efl_integration/public/ewk_window_features.h
tizen_src/ewk/unittest/utc_blink_ewk_base.h

index 34b9406..95d6432 100755 (executable)
@@ -48,6 +48,9 @@ fi
 
 export __GN_CHROMIUMEFL_TARGET=desktop
 
+export C_INCLUDE_PATH="${SCRIPTDIR}/desktop/tizen_include:$C_INCLUDE_PATH"
+export CPLUS_INCLUDE_PATH="${SCRIPTDIR}/desktop/tizen_include:$CPLUS_INCLUDE_PATH"
+
 hostGnChromiumEfl "deps_include_path=\"${JHBUILD_DEPS}/include\" deps_lib_path=\"${JHBUILD_DEPS}/${_LIBDIR}\""
 
 export LD_LIBRARY_PATH="${JHBUILD_DEPS}/${_LIBDIR}:$LD_LIBRARY_PATH"
diff --git a/tizen_src/build/desktop/tizen_include/tizen.h b/tizen_src/build/desktop/tizen_include/tizen.h
new file mode 100644 (file)
index 0000000..a7a008c
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef __TIZEN_H__
+#define __TIZEN_H__
+
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((__visibility__("default")))
+#endif
+
+#ifndef TIZEN_DEPRECATED_API
+#ifdef TIZEN_DEPRECATION
+#define TIZEN_DEPRECATED_API \
+__attribute__((__visibility__("default"), deprecated))
+#else
+#define TIZEN_DEPRECATED_API
+#endif
+#endif
+
+#endif // __TIZEN_H__
index e8f04ed..38ced16 100644 (file)
@@ -426,7 +426,6 @@ shared_library("chromium-ewk") {
     "public/ewk_enums.h",
     "public/ewk_error.cc",
     "public/ewk_error.h",
-    "public/ewk_export.h",
     "public/ewk_favicon_database.cc",
     "public/ewk_favicon_database.h",
     "public/ewk_frame.cc",
index 28722f7..0fba387 100644 (file)
@@ -5,8 +5,8 @@
 #ifndef ewk_main_private_h
 #define ewk_main_private_h
 
-#include "ewk_export.h"
 #include <string>
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index a26f19b..6447045 100644 (file)
@@ -6,12 +6,12 @@
 #ifndef ewk_private_h
 #define ewk_private_h
 
-#include "public/ewk_export.h"
+#include <tizen.h>
 
 #define COMPILE_ASSERT_MATCHING_ENUM(ewkName, webcoreName) \
         COMPILE_ASSERT(int(ewkName) == int(webcoreName), mismatchingEnums)
 
-// Temporarily added in order to track not-yet-implemented ewk api calls. 
+// Temporarily added in order to track not-yet-implemented ewk api calls.
 #include <stdio.h>
 #define LOG_EWK_API_MOCKUP(msg, ...) printf("[EWK_API_MOCKUP] %s:%d %s ", __FILE__, __LINE__, __PRETTY_FUNCTION__); printf(msg "\n", ##__VA_ARGS__)
 #endif
index cd5d360..5c92511 100644 (file)
@@ -11,7 +11,7 @@
 #define ewk_application_cache_manager_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 4dba0ad..8443e9c 100644 (file)
@@ -11,7 +11,7 @@
 #define ewk_auth_challenge_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 5cbc912..239fe97 100644 (file)
@@ -12,7 +12,7 @@
 #define ewk_auth_request_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 9b66fe7..78f80f6 100644 (file)
@@ -11,7 +11,7 @@
 #define ewk_autofill_profile_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index dd01a2e..4104cf2 100644 (file)
@@ -33,7 +33,7 @@
 #define ewk_back_forward_list_h
 
 #include "ewk_back_forward_list_item.h"
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 8578ac1..db4b13c 100644 (file)
@@ -33,7 +33,7 @@
 #define ewk_back_forward_list_item_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index f6a39cf..a0f33ae 100644 (file)
@@ -6,7 +6,7 @@
 #define ewk_certificate_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 2b1c48a..d1c6dab 100644 (file)
@@ -11,7 +11,7 @@
 #define ewk_console_message_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 446911a..52f2b4b 100644 (file)
@@ -27,7 +27,7 @@
 #define ewk_context_menu_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 036d51d..af19813 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <Eina.h>
 #include <Evas.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 024cecc..760adba 100644 (file)
@@ -5,7 +5,7 @@
 #ifndef ewk_chromium_h
 #define ewk_chromium_h
 
-#include "ewk_export.h"
+#include <tizen.h>
 
 typedef void (*ewk_dispatch_callback)(void *);
 
index 119fa1f..7d5bede 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2012 Intel Corporation.
  * Copyright (C) 2013 Samsung Electronics. All rights reserved.
  * 
@@ -33,7 +33,7 @@
 #define ewk_error_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 2a97f2f..1a16f38 100644 (file)
@@ -33,7 +33,7 @@
 #define ewk_favicon_database_h
 
 #include <Evas.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 107dcf1..7e5ed53 100644 (file)
@@ -6,7 +6,7 @@
 #define ewk_frame_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index c420f3a..745e26f 100644 (file)
@@ -6,7 +6,7 @@
 #define ewk_geolocation_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 #include "ewk_security_origin.h"
 
 #ifdef __cplusplus
index dc67c39..66582d2 100644 (file)
@@ -11,7 +11,7 @@
 #define ewk_history
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 15c0ce9..24b7c96 100644 (file)
@@ -6,7 +6,7 @@
 #define ewk_hit_test_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 8ece705..8c0c2c5 100644 (file)
@@ -6,7 +6,7 @@
 #define ewk_intercept_request_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 1982e48..1285d4a 100644 (file)
@@ -29,7 +29,7 @@
 #define ewk_main_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 2609f1c..225329b 100644 (file)
@@ -12,7 +12,7 @@
 #define ewk_object_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 78c801f..183ef70 100644 (file)
@@ -11,7 +11,7 @@
 #define ewk_page_group_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 012d778..2dfaeef 100644 (file)
@@ -32,7 +32,7 @@
 #define ewk_popup_menu_item_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 #include "ewk_view.h"
 
 #ifdef __cplusplus
index 8d3b364..b310377 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <stdint.h>
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index d1450bc..697c763 100644 (file)
@@ -14,7 +14,7 @@
 #define ewk_settings_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 1df7720..c86dfeb 100644 (file)
@@ -13,7 +13,7 @@
 #define ewk_storage_manager_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 166c809..31d3b04 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <Eina.h>
 #include <Evas.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index f60911f..3f8e8d3 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <Eina.h>
 
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 799db05..2060d82 100644 (file)
@@ -6,8 +6,7 @@
 #define ewk_user_media_h
 
 #include <Eina.h>
-
-#include "ewk_export.h"
+#include <tizen.h>
 #include "ewk_security_origin.h"
 
 #ifdef __cplusplus
index e785713..588e0e0 100644 (file)
@@ -6,7 +6,7 @@
 #define ewk_web_application_icon_data_h
 
 #include <Eina.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 27d2130..bfdb63d 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <Eina.h>
 #include <Evas.h>
-#include "ewk_export.h"
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index 8a5bae6..2b84992 100644 (file)
@@ -42,7 +42,6 @@
 #include "ewk_custom_handlers.h"
 #include "ewk_enums.h"
 #include "ewk_error.h"
-#include "ewk_export.h"
 #include "ewk_geolocation.h"
 #include "ewk_log.h"
 #include "ewk_main.h"