Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Separate binaries
  • Loading branch information
swift-kim committed Apr 23, 2021
commit 42b904169df6ede5dfdd979e2ae92e1efa99c2a5
58 changes: 43 additions & 15 deletions shell/platform/tizen/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
# found in the LICENSE file.
import("//flutter/shell/platform/tizen/config.gni")

group("tizen") {
deps = [ ":flutter_tizen_library" ]
}

shared_library("flutter_tizen_library") {
output_name = "flutter_tizen"

ldflags = [ "-Wl,-rpath,\$ORIGIN" ]

deps = [ ":flutter_tizen" ]

public_configs = [ "//flutter:config" ]
}

source_set("flutter_tizen_headers") {
public = [
"public/flutter_platform_view.h",
Expand All @@ -35,6 +21,10 @@ source_set("flutter_tizen_headers") {
[ "//flutter/shell/platform/common/cpp:relative_flutter_library_headers" ]
}

config("flutter_tizen_config") {
ldflags = [ "-Wl,-rpath,\$ORIGIN" ]
}

source_set("flutter_tizen") {
sources = [
"channels/key_event_channel.cc",
Expand All @@ -59,6 +49,11 @@ source_set("flutter_tizen") {
configs +=
[ "//flutter/shell/platform/common/cpp:desktop_library_implementation" ]

public_configs = [
":flutter_tizen_config",
"//flutter:config"
]

deps = [
":flutter_tizen_headers",
"//flutter/shell/platform/common/cpp:common_cpp",
Expand Down Expand Up @@ -89,7 +84,7 @@ source_set("flutter_tizen") {
"$custom_sysroot/usr/include/system",
"$custom_sysroot/usr/include/wayland-extension"
]

lib_dirs = [ root_out_dir, "$custom_sysroot/usr/lib" ]

cflags_cc = [
Expand Down Expand Up @@ -125,3 +120,36 @@ source_set("flutter_tizen") {
libs += [ "ecore_wl2" ]
}
}

shared_library("flutter_tizen_mobile") {
defines = [ "MOBILE_PROFILE" ]

deps = [ ":flutter_tizen" ]
}

shared_library("flutter_tizen_wearable") {
defines = [ "WEARABLE_PROFILE" ]

deps = [ ":flutter_tizen" ]
}

shared_library("flutter_tizen_tv") {
defines = [ "TV_PROFILE" ]

deps = [ ":flutter_tizen" ]
}

shared_library("flutter_tizen_common") {
defines = [ "COMMON_PROFILE" ]

deps = [ ":flutter_tizen" ]
}

group("tizen") {
deps = [
":flutter_tizen_mobile",
":flutter_tizen_wearable",
":flutter_tizen_tv",
":flutter_tizen_common",
]
}