a24ad6bc14
* build: define compile time features with buildflag header * refactor: switch to BUILDFLAG(ENABLE_DESKTOP_CAPTURER) * refactor: switch to BUILDFLAG(ENABLE_RUN_AS_NODE) * refactor: switch to BUILDFLAG(ENABLE_OSR) * refactor: switch to BUILDFLAG(ENABLE_VIEW_API) * refactor: switch to BUILDFLAG(ENABLE_PEPPER_FLASH) * refactor: switch to BUILDFLAG(OVERRIDE_LOCATION_PROVIDER) * refactor: switch to BUILDFLAG(ENABLE_PDF_VIEWER)
20 lines
627 B
Text
20 lines
627 B
Text
# Copyright (c) 2018 GitHub, Inc.
|
|
# Use of this source code is governed by the MIT license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/buildflag_header.gni")
|
|
import("//electron/buildflags/buildflags.gni")
|
|
|
|
buildflag_header("buildflags") {
|
|
header = "buildflags.h"
|
|
|
|
flags = [
|
|
"ENABLE_DESKTOP_CAPTURER=$enable_desktop_capturer",
|
|
"ENABLE_RUN_AS_NODE=$enable_run_as_node",
|
|
"ENABLE_OSR=$enable_osr",
|
|
"ENABLE_VIEW_API=$enable_view_api",
|
|
"ENABLE_PEPPER_FLASH=$enable_pepper_flash",
|
|
"ENABLE_PDF_VIEWER=$enable_pdf_viewer",
|
|
"OVERRIDE_LOCATION_PROVIDER=$enable_fake_location_provider",
|
|
]
|
|
}
|