mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
Changes: https://github.com/electron/electron/releases/tag/v4.2.12 Changes: https://github.com/electron/electron/releases/tag/v4.2.11 Changes: https://github.com/electron/electron/releases/tag/v4.2.10 Submitted by: maintainer (via github)
33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
--- tools/gn/build/gen.py.orig 2019-08-26 19:07:16 UTC
|
|
+++ tools/gn/build/gen.py
|
|
@@ -46,7 +46,7 @@ class Platform(object):
|
|
|
|
@staticmethod
|
|
def known_platforms():
|
|
- return ['linux', 'darwin', 'msvc', 'aix', 'fuchsia', 'openbsd']
|
|
+ return ['linux', 'darwin', 'msvc', 'aix', 'fuchsia', 'openbsd', 'freebsd']
|
|
|
|
def platform(self):
|
|
return self._platform
|
|
@@ -69,6 +69,9 @@ class Platform(object):
|
|
def is_aix(self):
|
|
return self._platform == 'aix'
|
|
|
|
+ def is_freebsd(self):
|
|
+ return self._platform == 'freebsd'
|
|
+
|
|
def is_posix(self):
|
|
return self._platform in ['linux', 'freebsd', 'darwin', 'aix', 'openbsd']
|
|
|
|
@@ -335,6 +338,11 @@ def WriteGNNinja(path, platform, host, options):
|
|
elif platform.is_aix():
|
|
cflags_cc.append('-maix64')
|
|
ldflags.append('-maix64')
|
|
+ elif platform.is_freebsd():
|
|
+ cflags.extend(['-Wno-deprecated-register', '-Wno-parentheses-equality'])
|
|
+ ldflags.extend(['-pthread'])
|
|
+ libs.extend(['-lexecinfo', '-lkvm', '-lutil'])
|
|
+ include_dirs += ['/usr/local/include']
|
|
|
|
if platform.is_posix():
|
|
ldflags.append('-pthread')
|