Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: gn.py

Issue 2167163002: Basic standalone GN configs. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fmt Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | gn/BUILD.gn » ('j') | gn/BUILDCONFIG.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gn.py
diff --git a/gn.py b/gn.py
deleted file mode 100755
index b17280a1b125779af2f178e7653242a469a5eafb..0000000000000000000000000000000000000000
--- a/gn.py
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright 2016 Google Inc.
-#
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import subprocess
-import sys
-
-def quiet(*cmd):
- cmd = ' '.join(cmd).split()
- subprocess.check_output(cmd)
-
-def loud(*cmd):
- cmd = ' '.join(cmd).split()
- ret = subprocess.call(cmd)
- if ret != 0:
- sys.exit(ret)
-
-def gn_path():
- if 'linux' in sys.platform:
- return 'buildtools/linux64/gn'
- if 'darwin' in sys.platform:
- return 'buildtools/mac/gn'
- return 'buildtools/win/gn.exe'
-
-# Make sure we've got an up-to-date GN and Clang, and sysroot on Linux.
-quiet('download_from_google_storage',
- '--no_resume --no_auth --bucket chromium-gn',
- '-s ', gn_path() + '.sha1')
-quiet('python tools/clang/scripts/update.py --if-needed')
-if 'linux' in sys.platform:
- quiet('python build/linux/sysroot_scripts/install-sysroot.py --arch=amd64')
-
-# Pass all our arguments over to the real GN binary.
-loud(gn_path(), *sys.argv[1:])
« no previous file with comments | « DEPS ('k') | gn/BUILD.gn » ('j') | gn/BUILDCONFIG.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698