7ed9a88277
* build: [gn] fix linking against base_static * chore: run 'gn format' over brightray/BUILD.gn
45 lines
1 KiB
Text
45 lines
1 KiB
Text
import("//build/config/ui.gni")
|
|
|
|
filenames_gypi = exec_script("//build/gypi_to_gn.py",
|
|
[ rebase_path("filenames.gypi") ],
|
|
"scope",
|
|
[ "filenames.gypi" ])
|
|
|
|
static_library("brightray") {
|
|
deps = [
|
|
"//base",
|
|
"//base:base_static",
|
|
"//components/network_session_configurator/common",
|
|
"//components/prefs",
|
|
"//content/public/browser",
|
|
"//content/shell:resources",
|
|
"//net:net_with_v8",
|
|
"//skia",
|
|
"//ui/views",
|
|
]
|
|
|
|
include_dirs = [ ".." ]
|
|
|
|
defines = [
|
|
"DISABLE_NACL=1",
|
|
"ELECTRON_GN_BUILD",
|
|
]
|
|
|
|
if (is_linux) {
|
|
deps += [ "//build/config/linux/gtk" ]
|
|
}
|
|
|
|
extra_source_filters = []
|
|
if (is_mac) {
|
|
extra_source_filters += [
|
|
"*_views.cc",
|
|
"*_views.h",
|
|
"*\bviews/*",
|
|
]
|
|
}
|
|
|
|
set_sources_assignment_filter(
|
|
sources_assignment_filter + extra_source_filters)
|
|
sources = filenames_gypi.brightray_sources
|
|
set_sources_assignment_filter(sources_assignment_filter)
|
|
}
|