2018-05-03 22:44:29 +00:00
|
|
|
import("//build/config/ui.gni")
|
|
|
|
|
2018-07-26 15:30:37 +00:00
|
|
|
filenames_gypi = exec_script("//build/gypi_to_gn.py",
|
|
|
|
[ rebase_path("filenames.gypi") ],
|
|
|
|
"scope",
|
|
|
|
[ "filenames.gypi" ])
|
2018-05-03 22:44:29 +00:00
|
|
|
|
|
|
|
static_library("brightray") {
|
|
|
|
deps = [
|
|
|
|
"//base",
|
2018-07-26 15:30:37 +00:00
|
|
|
"//base:base_static",
|
2018-05-03 22:44:29 +00:00
|
|
|
"//components/network_session_configurator/common",
|
|
|
|
"//components/prefs",
|
|
|
|
"//content/public/browser",
|
|
|
|
"//content/shell:resources",
|
|
|
|
"//net:net_with_v8",
|
|
|
|
"//skia",
|
|
|
|
"//ui/views",
|
|
|
|
]
|
|
|
|
|
2018-07-26 15:30:37 +00:00
|
|
|
include_dirs = [ ".." ]
|
2018-05-03 22:44:29 +00:00
|
|
|
|
|
|
|
defines = [
|
|
|
|
"DISABLE_NACL=1",
|
2018-07-17 22:34:19 +00:00
|
|
|
"ELECTRON_GN_BUILD",
|
2018-05-03 22:44:29 +00:00
|
|
|
]
|
|
|
|
|
2018-05-16 19:51:11 +00:00
|
|
|
if (is_linux) {
|
2018-07-26 15:30:37 +00:00
|
|
|
deps += [ "//build/config/linux/gtk" ]
|
2018-05-16 19:51:11 +00:00
|
|
|
}
|
|
|
|
|
2018-05-03 22:44:29 +00:00
|
|
|
extra_source_filters = []
|
|
|
|
if (is_mac) {
|
|
|
|
extra_source_filters += [
|
|
|
|
"*_views.cc",
|
|
|
|
"*_views.h",
|
|
|
|
"*\bviews/*",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-07-26 15:30:37 +00:00
|
|
|
set_sources_assignment_filter(
|
|
|
|
sources_assignment_filter + extra_source_filters)
|
2018-05-03 22:44:29 +00:00
|
|
|
sources = filenames_gypi.brightray_sources
|
|
|
|
set_sources_assignment_filter(sources_assignment_filter)
|
|
|
|
}
|