Skip to content

Commit

Permalink
Clean up shell/platform/tizen/BUILD.gn
Browse files Browse the repository at this point in the history
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
  • Loading branch information
bwikbs committed Jul 1, 2021
1 parent eec4e15 commit b63b3d2
Showing 1 changed file with 61 additions and 69 deletions.
130 changes: 61 additions & 69 deletions shell/platform/tizen/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -227,99 +227,91 @@ test_fixtures("flutter_tizen_fixtures") {
fixtures = []
}

executable("flutter_tizen_unittests") {
testonly = true
template("embedder_executable") {
forward_variables_from(invoker, [ "unit_test" ])

public = _public_headers
if (!defined(unit_test)) {
unit_test = false
}

sources = _flutter_tizen_source
executable("${target_name}") {
if (unit_test) {
testonly = true
}

sources += [
"flutter_tizen_engine_test.cc",
"testing/mock_engine.cc",
"tizen_renderer_evas_gl.cc",
]
public = _public_headers

libs = _libs_minimum
sources = _flutter_tizen_source

libs += [
"ecore_evas",
"elementary",
"evas",
]
sources += [ "tizen_renderer_evas_gl.cc" ]

defines = [ "TIZEN_RENDERER_EVAS_GL" ]
if (defined(invoker.sources)) {
sources += invoker.sources
}

cflags_cc = [
"-Wno-newline-eof",
"-Wno-macro-redefined",
]
libs = _libs_minimum

public_configs = [ "//flutter:config" ]
libs += [
"ecore_evas",
"elementary",
"evas",
]

configs += [
":tizen_rootstrap_include_dirs",
"//flutter/shell/platform/common:desktop_library_implementation",
]
defines = [ "TIZEN_RENDERER_EVAS_GL" ]

public_deps = [ "//third_party/googletest:gtest" ]
cflags_cc = [
"-Wno-newline-eof",
"-Wno-macro-redefined",
]

deps = [
":flutter_tizen_fixtures",
"//flutter/runtime:libdart",
"//flutter/shell/platform/common:common_cpp",
"//flutter/shell/platform/common:common_cpp_input",
"//flutter/shell/platform/common:common_cpp_library_headers",
"//flutter/shell/platform/common/client_wrapper:client_wrapper",
"//flutter/shell/platform/embedder:embedder_headers",
"//flutter/shell/platform/embedder:embedder_test_utils",
"//flutter/testing",
"//third_party/rapidjson",
]
}
public_configs = [ "//flutter:config" ]

executable("flutter_tizen_shell") {
public = _public_headers
configs += [
":tizen_rootstrap_include_dirs",
"//flutter/shell/platform/common:desktop_library_implementation",
]

sources = _flutter_tizen_source
deps = [
"//flutter/runtime:libdart",
"//flutter/shell/platform/common:common_cpp",
"//flutter/shell/platform/common:common_cpp_input",
"//flutter/shell/platform/common:common_cpp_library_headers",
"//flutter/shell/platform/common/client_wrapper:client_wrapper",
"//flutter/shell/platform/embedder:embedder_headers",
"//third_party/rapidjson",
]

sources += [ "tizen_renderer_evas_gl.cc" ]
if (defined(invoker.deps)) {
deps += invoker.deps
}

sources += [ "flutter_tizen_shell.cc" ]
if (defined(invoker.public_deps)) {
public_deps = invoker.public_deps
}
}
}

libs = _libs_minimum
embedder_executable("flutter_tizen_unittests") {
unit_test = true

libs += [
"ecore_evas",
"elementary",
"evas",
sources = [
"flutter_tizen_engine_test.cc",
"testing/mock_engine.cc",
]

defines = [ "TIZEN_RENDERER_EVAS_GL" ]
public_deps = [ "//third_party/googletest:gtest" ]

cflags_cc = [
"-Wno-newline-eof",
"-Wno-macro-redefined",
deps = [
":flutter_tizen_fixtures",
"//flutter/shell/platform/embedder:embedder_test_utils",
"//flutter/testing",
]
}

public_configs = [ "//flutter:config" ]

configs += [
":tizen_rootstrap_include_dirs",
"//flutter/shell/platform/common:desktop_library_implementation",
]
embedder_executable("flutter_tizen_shell") {
sources = [ "flutter_tizen_shell.cc" ]

public_deps = [ ":flutter_engine" ]

deps = [
"//flutter/runtime:libdart",
"//flutter/shell/platform/common:common_cpp",
"//flutter/shell/platform/common:common_cpp_input",
"//flutter/shell/platform/common:common_cpp_library_headers",
"//flutter/shell/platform/common/client_wrapper:client_wrapper",
"//flutter/shell/platform/embedder:embedder_headers",
"//third_party/rapidjson",
]
}

publish_client_wrapper_core("publish_cpp_client_wrapper") {
Expand Down

0 comments on commit b63b3d2

Please sign in to comment.