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

Unified Diff: tools/gyp_dart.py

Issue 2992593002: [infra] Begin removing gyp (Closed)
Patch Set: Created 3 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
Index: tools/gyp_dart.py
diff --git a/tools/gyp_dart.py b/tools/gyp_dart.py
deleted file mode 100644
index 708d4036709a88d5b9b43d0fc49c8a419c800431..0000000000000000000000000000000000000000
--- a/tools/gyp_dart.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2012 The Dart Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""
-Invoke gyp to generate build files for building the Dart VM.
-"""
-
-import os
-import subprocess
-import sys
-
-SCRIPT_DIR = os.path.dirname(sys.argv[0])
-DART_ROOT = os.path.realpath(os.path.join(SCRIPT_DIR, '..'))
-
-def execute(args):
- process = subprocess.Popen(args, cwd=DART_ROOT)
- process.wait()
- return process.returncode
-
-def main():
- component = 'all'
- if len(sys.argv) == 2:
- component = sys.argv[1]
-
- component_gyp_files = {
- 'all' : 'dart.gyp',
- 'runtime' : 'runtime/dart-runtime.gyp',
- }
- args = ['python', '-S', 'third_party/gyp/gyp_main.py',
- '--depth=.', '-Itools/gyp/all.gypi',
- component_gyp_files[component]]
-
- sys.exit(execute(args))
-
-if __name__ == '__main__':
- main()

Powered by Google App Engine
This is Rietveld 408576698