build: remove the vendor directory (#28883)
The `vendor` directory is a remnant of times long since gone when we had brightray and libchromiumcontent (never forget). It is currently the hope to a single header file that afaics we do not need anymore and randomly pyyaml gets cloned there but that is easily movable. This commit removes all references to the vendor directory from scripts, docs, helpers, etc. and removes the directory itself.
This commit is contained in:
parent
ea6d3fae98
commit
3879e9e065
9 changed files with 6 additions and 4544 deletions
17
.gitignore
vendored
17
.gitignore
vendored
|
@ -17,23 +17,6 @@
|
||||||
*.xcodeproj
|
*.xcodeproj
|
||||||
/.idea/
|
/.idea/
|
||||||
/dist/
|
/dist/
|
||||||
/out/
|
|
||||||
/vendor/.gclient
|
|
||||||
/vendor/debian_jessie_mips64-sysroot/
|
|
||||||
/vendor/debian_stretch_amd64-sysroot/
|
|
||||||
/vendor/debian_stretch_arm-sysroot/
|
|
||||||
/vendor/debian_stretch_arm64-sysroot/
|
|
||||||
/vendor/debian_stretch_i386-sysroot/
|
|
||||||
/vendor/gcc-4.8.3-d197-n64-loongson/
|
|
||||||
/vendor/readme-gcc483-loongson.txt
|
|
||||||
/vendor/download/
|
|
||||||
/vendor/llvm-build/
|
|
||||||
/vendor/llvm/
|
|
||||||
/vendor/npm/
|
|
||||||
/vendor/python_26/
|
|
||||||
/vendor/native_mksnapshot
|
|
||||||
/vendor/LICENSES.chromium.html
|
|
||||||
/vendor/pyyaml
|
|
||||||
node_modules/
|
node_modules/
|
||||||
SHASUMS256.txt
|
SHASUMS256.txt
|
||||||
**/package-lock.json
|
**/package-lock.json
|
||||||
|
|
2
DEPS
2
DEPS
|
@ -88,7 +88,7 @@ deps = {
|
||||||
'url': (Var("nodejs_git")) + '/node.git@' + (Var("node_version")),
|
'url': (Var("nodejs_git")) + '/node.git@' + (Var("node_version")),
|
||||||
'condition': 'checkout_node and process_deps',
|
'condition': 'checkout_node and process_deps',
|
||||||
},
|
},
|
||||||
'src/electron/vendor/pyyaml': {
|
'src/third_party/pyyaml': {
|
||||||
'url': (Var("yaml_git")) + '/pyyaml.git@' + (Var("pyyaml_version")),
|
'url': (Var("yaml_git")) + '/pyyaml.git@' + (Var("pyyaml_version")),
|
||||||
'condition': 'checkout_pyyaml and process_deps',
|
'condition': 'checkout_pyyaml and process_deps',
|
||||||
},
|
},
|
||||||
|
|
|
@ -106,7 +106,6 @@ Common prefixes:
|
||||||
* perf: A code change that improves performance
|
* perf: A code change that improves performance
|
||||||
* refactor: A code change that neither fixes a bug nor adds a feature
|
* refactor: A code change that neither fixes a bug nor adds a feature
|
||||||
* style: Changes that do not affect the meaning of the code (linting)
|
* style: Changes that do not affect the meaning of the code (linting)
|
||||||
* vendor: Bumping a dependency like libchromiumcontent or node
|
|
||||||
|
|
||||||
Other things to keep in mind when writing a commit message:
|
Other things to keep in mind when writing a commit message:
|
||||||
|
|
||||||
|
|
|
@ -99,4 +99,3 @@ script/ - The set of all scripts Electron runs for a variety of purposes.
|
||||||
```
|
```
|
||||||
|
|
||||||
* **typings** - TypeScript typings for Electron's internal code.
|
* **typings** - TypeScript typings for Electron's internal code.
|
||||||
* **vendor** - Source code for some third party dependencies.
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ match a public release, instruct `npm` to use the version of Node you have bundl
|
||||||
with your custom build.
|
with your custom build.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm rebuild --nodedir=/path/to/electron/vendor/node
|
npm rebuild --nodedir=/path/to/src/out/Default/gen/node_headers
|
||||||
```
|
```
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
|
@ -4,18 +4,6 @@ from __future__ import print_function
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# URL to the mips64el sysroot image.
|
|
||||||
MIPS64EL_SYSROOT_URL = 'https://github.com/electron' \
|
|
||||||
+ '/debian-sysroot-image-creator/releases/download' \
|
|
||||||
+ '/v0.5.0/debian_jessie_mips64-sysroot.tar.bz2'
|
|
||||||
# URL to the mips64el toolchain.
|
|
||||||
MIPS64EL_GCC = 'gcc-4.8.3-d197-n64-loongson'
|
|
||||||
MIPS64EL_GCC_URL = 'http://ftp.loongnix.org/toolchain/gcc/release/' \
|
|
||||||
+ MIPS64EL_GCC + '.tar.gz'
|
|
||||||
|
|
||||||
BASE_URL = os.getenv('LIBCHROMIUMCONTENT_MIRROR') or \
|
|
||||||
'https://s3.amazonaws.com/github-janky-artifacts/libchromiumcontent'
|
|
||||||
|
|
||||||
PLATFORM = {
|
PLATFORM = {
|
||||||
'cygwin': 'win32',
|
'cygwin': 'win32',
|
||||||
'darwin': 'darwin',
|
'darwin': 'darwin',
|
||||||
|
@ -92,22 +80,3 @@ def get_zip_name(name, version, suffix=''):
|
||||||
if suffix:
|
if suffix:
|
||||||
zip_name += '-' + suffix
|
zip_name += '-' + suffix
|
||||||
return zip_name + '.zip'
|
return zip_name + '.zip'
|
||||||
|
|
||||||
|
|
||||||
def build_env():
|
|
||||||
env = os.environ.copy()
|
|
||||||
if get_target_arch() == "mips64el":
|
|
||||||
SOURCE_ROOT = os.path.abspath(os.path.dirname(
|
|
||||||
os.path.dirname(os.path.dirname(__file__))))
|
|
||||||
VENDOR_DIR = os.path.join(SOURCE_ROOT, 'vendor')
|
|
||||||
gcc_dir = os.path.join(VENDOR_DIR, MIPS64EL_GCC)
|
|
||||||
ldlib_dirs = [
|
|
||||||
gcc_dir + '/usr/x86_64-unknown-linux-gnu/mips64el-redhat-linux/lib',
|
|
||||||
gcc_dir + '/usr/lib64',
|
|
||||||
gcc_dir + '/usr/mips64el-redhat-linux/lib64',
|
|
||||||
gcc_dir + '/usr/mips64el-redhat-linux/sysroot/lib64',
|
|
||||||
gcc_dir + '/usr/mips64el-redhat-linux/sysroot/usr/lib64',
|
|
||||||
]
|
|
||||||
env['LD_LIBRARY_PATH'] = os.pathsep.join(ldlib_dirs)
|
|
||||||
env['PATH'] = os.pathsep.join([gcc_dir + '/usr/bin', env['PATH']])
|
|
||||||
return env
|
|
||||||
|
|
|
@ -4,10 +4,9 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
SOURCE_ROOT = os.path.abspath(
|
from util import SRC_DIR
|
||||||
os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
|
|
||||||
VENDOR_DIR = os.path.join(SOURCE_ROOT, 'vendor')
|
PYYAML_LIB_DIR = os.path.join(SRC_DIR, 'third_party', 'pyyaml', 'lib')
|
||||||
PYYAML_LIB_DIR = os.path.join(VENDOR_DIR, 'pyyaml', 'lib')
|
|
||||||
sys.path.append(PYYAML_LIB_DIR)
|
sys.path.append(PYYAML_LIB_DIR)
|
||||||
import yaml #pylint: disable=wrong-import-position,wrong-import-order
|
import yaml #pylint: disable=wrong-import-position,wrong-import-order
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ const NO_NOTES = 'No notes';
|
||||||
const docTypes = new Set(['doc', 'docs']);
|
const docTypes = new Set(['doc', 'docs']);
|
||||||
const featTypes = new Set(['feat', 'feature']);
|
const featTypes = new Set(['feat', 'feature']);
|
||||||
const fixTypes = new Set(['fix']);
|
const fixTypes = new Set(['fix']);
|
||||||
const otherTypes = new Set(['spec', 'build', 'test', 'chore', 'deps', 'refactor', 'tools', 'vendor', 'perf', 'style', 'ci']);
|
const otherTypes = new Set(['spec', 'build', 'test', 'chore', 'deps', 'refactor', 'tools', 'perf', 'style', 'ci']);
|
||||||
const knownTypes = new Set([...docTypes.keys(), ...featTypes.keys(), ...fixTypes.keys(), ...otherTypes.keys()]);
|
const knownTypes = new Set([...docTypes.keys(), ...featTypes.keys(), ...fixTypes.keys(), ...otherTypes.keys()]);
|
||||||
|
|
||||||
const getCacheDir = () => process.env.NOTES_CACHE_PATH || path.resolve(__dirname, '.cache');
|
const getCacheDir = () => process.env.NOTES_CACHE_PATH || path.resolve(__dirname, '.cache');
|
||||||
|
|
4487
vendor/third_party/lss/linux_syscall_support.h
vendored
4487
vendor/third_party/lss/linux_syscall_support.h
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue