This enables is_official_build and disables COMPONENT_BUILD for tizen port
to reduce libchromium-ewk.so binary size and to improve memory usage.
Improvement:
Code segement reduced by ~1MB
libchromium-ewk.so size reduced by ~1.56MB
Reference:
https://review.tizen.org/gerrit/#/c/147774/
Change-Id: Iec89b8c041841f7ad223f029fee6c1c14255eada
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
config("tizen_feature_flags") {
defines = [
# TODO: Check if those defines are still necessary. If they are add an explanation why.
- "COMPONENT_BUILD",
"SKIA_DLL",
"BUILDING_V8_SHARED",
"V8_SHARED",
is_win = false
is_tizen = true
use_efl = true
- is_official_build = false
} else if (current_os == "nacl") {
# current_os == "nacl" will be passed by the nacl toolchain definition.
# It is not set by default or on the command line. We treat is as a
is_win = false
is_tizen = false
use_efl = true
- is_official_build = false
}
# =============================================================================
external_ozone_platforms = [ "efl" ]
}
-is_official_build = false
-
treat_warnings_as_errors = werror
use_x11 = false
python_ver=\"$(getPythonVersion)\"
enable_basic_printing=true
is_clang=false
+ is_official_build=true
linux_use_bundled_binutils=false
enable_nacl=false
tizen_multimedia_eme_support=false
SHIM_TEMPLATE = """
-#if defined(OFFICIAL_BUILD)
+#if defined(OFFICIAL_BUILD) && !defined(OS_TIZEN)
#error shim headers must not be used in official builds!
#endif
"""