Skip to content

Commit

Permalink
Move grit from DEPS into src.
Browse files Browse the repository at this point in the history
This copies the currently DEPS'd in revision, r201.
No intended behavior change.

BUG=553682
R=primiano@chromium.org
TBR=mnaganov

Review URL: https://codereview.chromium.org/1410853008 .

Cr-Commit-Position: refs/heads/master@{#359352}
  • Loading branch information
nico committed Nov 12, 2015
1 parent 4771dd5 commit 3dbdb83
Show file tree
Hide file tree
Showing 235 changed files with 36,893 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ v8.log
/tools/gn/bin/linux
/tools/gn/bin/mac
/tools/gn/bin/win
/tools/grit
/tools/gyp
/tools/histograms
/tools/json_schema_compiler/test/json_schema_compiler_tests.xml
Expand Down
3 changes: 0 additions & 3 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ deps = {
'src/third_party/snappy/src':
Var('chromium_git') + '/external/snappy.git' + '@' + '762bb32f0c9d2f31ba4958c7c0933d22e80c20bf',

'src/tools/grit':
Var('chromium_git') + '/external/grit-i18n.git' + '@' + '4066463928d64337e6d70046aa4f18b833a2d0e3', # from svn revision 201

'src/tools/gyp':
Var('chromium_git') + '/external/gyp.git' + '@' + '2c1e6cced23554ce84806e570acea637f6473afc',

Expand Down
3 changes: 3 additions & 0 deletions tools/copyright_scanner/third_party_files_whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,6 @@ components/test_runner/helper/layout_test_helper_mac.mm
# Bundles of existing code.
chrome/browser/resources/md_downloads/crisper.js
chrome/browser/resources/md_downloads/vulcanized.html
# Contains "copyright" in a test string.
# TODO(thakis): Change the test string and remove this entry again.
tools/grit/grit/tclib_unittest.py
1 change: 1 addition & 0 deletions tools/grit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pyc
25 changes: 25 additions & 0 deletions tools/grit/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright (c) 2012 The Chromium Authors.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 changes: 22 additions & 0 deletions tools/grit/PRESUBMIT.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""grit unittests presubmit script.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
details on the presubmit API built into gcl.
"""


def RunUnittests(input_api, output_api):
return input_api.canned_checks.RunPythonUnitTests(input_api, output_api,
['grit.test_suite_all'])


def CheckChangeOnUpload(input_api, output_api):
return RunUnittests(input_api, output_api)


def CheckChangeOnCommit(input_api, output_api):
return RunUnittests(input_api, output_api)
2 changes: 2 additions & 0 deletions tools/grit/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GRIT (Google Resource and Internationalization Tool) is a tool for Windows
projects to manage resources and simplify the localization workflow.
6 changes: 6 additions & 0 deletions tools/grit/codereview.settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This file is used by gcl to get repository specific information.
CODE_REVIEW_SERVER: codereview.chromium.org
CC_LIST: grit-developer@googlegroups.com
VIEW_VC: http://code.google.com/p/grit-i18n/source/detail?r=
TRY_ON_UPLOAD: False

16 changes: 16 additions & 0 deletions tools/grit/grit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

'''Bootstrapping for GRIT.
'''

import sys

import grit.grit_runner


if __name__ == '__main__':
grit.grit_runner.Main(sys.argv[1:])

10 changes: 10 additions & 0 deletions tools/grit/grit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

'''Package 'grit'
'''

pass

Loading

0 comments on commit 3dbdb83

Please sign in to comment.