ports/devel/electron35/files/patch-chrome_app_chrome__main.cc
Hiroki Tagato 3fe2f64857 devel/electron35: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.

It's easier than you think.

If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.

WWW: https://electronjs.org/
2025-04-08 21:01:02 +09:00

43 lines
1.2 KiB
C++

--- chrome/app/chrome_main.cc.orig 2025-01-27 17:37:37 UTC
+++ chrome/app/chrome_main.cc
@@ -28,11 +28,11 @@
#include "chrome/app/chrome_main_mac.h"
#endif
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "base/base_switches.h"
#endif
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "chrome/app/chrome_main_linux.h"
#endif
@@ -57,7 +57,7 @@
// sometime after old headless code is removed from Chrome.
// See https://crbug.com/373672160.
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
- BUILDFLAG(IS_WIN)
+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
#define ENABLE_OLD_HEADLESS_INFO
#endif
@@ -115,7 +115,7 @@ int ChromeMain(int argc, const char** argv) {
#error Unknown platform.
#endif
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
PossiblyDetermineFallbackChromeChannel(argv[0]);
#endif
@@ -181,7 +181,7 @@ int ChromeMain(int argc, const char** argv) {
SetUpBundleOverrides();
#endif
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
AppendExtraArgumentsToCommandLine(command_line);
#endif