Use depot_tools to provide ninja binary and cpplint.
This commit is contained in:
parent
3cd910abc6
commit
950c09f2e7
5 changed files with 15 additions and 3996 deletions
5
.gitmodules
vendored
5
.gitmodules
vendored
|
@ -1,9 +1,12 @@
|
||||||
[submodule "vendor/brightray"]
|
[submodule "vendor/brightray"]
|
||||||
path = vendor/brightray
|
path = vendor/brightray
|
||||||
url = https://github.com/aroben/brightray.git
|
url = https://github.com/brightray/brightray.git
|
||||||
[submodule "vendor/node"]
|
[submodule "vendor/node"]
|
||||||
path = vendor/node
|
path = vendor/node
|
||||||
url = https://github.com/atom/cefode-node.git
|
url = https://github.com/atom/cefode-node.git
|
||||||
[submodule "vendor/gyp"]
|
[submodule "vendor/gyp"]
|
||||||
path = vendor/gyp
|
path = vendor/gyp
|
||||||
url = https://github.com/svn2github/gyp.git
|
url = https://github.com/svn2github/gyp.git
|
||||||
|
[submodule "vendor/depot_tools"]
|
||||||
|
path = vendor/depot_tools
|
||||||
|
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||||
|
|
|
@ -7,13 +7,20 @@ import sys
|
||||||
|
|
||||||
|
|
||||||
CONFIGURATIONS = ['Release', 'Debug']
|
CONFIGURATIONS = ['Release', 'Debug']
|
||||||
|
SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
os.chdir(SOURCE_ROOT)
|
||||||
|
|
||||||
|
ninja = os.path.join('vendor', 'depot_tools', 'ninja')
|
||||||
|
if sys.platform == 'win32':
|
||||||
|
ninja += '.exe'
|
||||||
|
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
for config in args.configuration:
|
for config in args.configuration:
|
||||||
build_path = os.path.join('out', config)
|
build_path = os.path.join('out', config)
|
||||||
subprocess.call(['ninja', '-C', build_path])
|
subprocess.call([ninja, '-C', build_path])
|
||||||
|
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
|
|
3
script/cpplint.py
vendored
3
script/cpplint.py
vendored
|
@ -6,6 +6,7 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
OBJC_HEADERS = [
|
OBJC_HEADERS = [
|
||||||
|
'app/win/resource.h',
|
||||||
'browser/atom_event_processing_window.h',
|
'browser/atom_event_processing_window.h',
|
||||||
'browser/atom_application_mac.h',
|
'browser/atom_application_mac.h',
|
||||||
'browser/atom_application_delegate_mac.h',
|
'browser/atom_application_delegate_mac.h',
|
||||||
|
@ -36,7 +37,7 @@ def list_files(directories, filters):
|
||||||
|
|
||||||
|
|
||||||
def call_cpplint(files):
|
def call_cpplint(files):
|
||||||
cpplint = os.path.join(SOURCE_ROOT, 'vendor', 'cpplint.py')
|
cpplint = os.path.join(SOURCE_ROOT, 'vendor', 'depot_tools', 'cpplint.py')
|
||||||
rules = '--filter=-build/header_guard,-build/include_what_you_use'
|
rules = '--filter=-build/header_guard,-build/include_what_you_use'
|
||||||
subprocess.call([sys.executable, cpplint, rules] + files)
|
subprocess.call([sys.executable, cpplint, rules] + files)
|
||||||
|
|
||||||
|
|
3993
vendor/cpplint.py
vendored
3993
vendor/cpplint.py
vendored
File diff suppressed because it is too large
Load diff
1
vendor/depot_tools
vendored
Submodule
1
vendor/depot_tools
vendored
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a926a1eb0412d8c80f6a31ee7c7b6204db5b5270
|
Loading…
Reference in a new issue