forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up repack.py and repack_locale.py usage.
- Creates repack_pack.gypi action - Updates all the call-sites of repack.py - Removes chrome_repack_pseudo_locales.gypi to instead use chrome_repack_locales.gypi - Remove unused repack_locales_cmd list BUG=338759 R=tfarina@chromium.org, thakis@chromium.org TBR=asargent@chromium.org, benm@chromium.org, blundell@chromium.org Review URL: https://codereview.chromium.org/216013003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260279 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
aurimas@google.com
committed
Mar 28, 2014
1 parent
65486ad
commit 01bdc92
Showing
14 changed files
with
70 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2014 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. | ||
|
||
# This file is meant to be included into an action to invoke grit repack in a | ||
# consistent manner. To use this the following variables need to be | ||
# defined: | ||
# pak_inputs: list: paths of pak files that need to be combined. | ||
# pak_output: string: the output pak file path. | ||
|
||
{ | ||
'variables': { | ||
'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py', | ||
}, | ||
'inputs': [ | ||
'<(repack_path)', | ||
'<@(pak_inputs)', | ||
], | ||
'outputs': [ | ||
'<(pak_output)' | ||
], | ||
'action': ['python', '<(repack_path)', '<(pak_output)', '<@(pak_inputs)'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
# 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. | ||
|
||
# To use this the following variables need to be defined: | ||
# pak_locales: string: the list of all the locales that need repacking | ||
{ | ||
'action_name': 'repack_locales', | ||
'variables': { | ||
'repack_locales_path': 'tools/build/repack_locales.py', | ||
'conditions': [ | ||
['branding=="Chrome"', { | ||
'branding_flag': ['-b', 'google_chrome',], | ||
}, { # else: branding!="Chrome" | ||
'branding_flag': ['-b', 'chromium',], | ||
}], | ||
], | ||
'repack_extra_flags%': [], | ||
'repack_output_dir%': '<(SHARED_INTERMEDIATE_DIR)', | ||
}, | ||
'inputs': [ | ||
'tools/build/repack_locales.py', | ||
'<!@pymod_do_main(repack_locales -i -p <(OS) <(branding_flag) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(repack_output_dir) --use-ash <(use_ash) <(repack_extra_flags) <(locales))' | ||
'<(repack_locales_path)', | ||
'<!@pymod_do_main(repack_locales -i -p <(OS) <(branding_flag) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) --use-ash <(use_ash) <(pak_locales))' | ||
], | ||
'outputs': [ | ||
'<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(repack_output_dir) <(locales))' | ||
'<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pak_locales))' | ||
], | ||
'action': [ | ||
'<@(repack_locales_cmd)', | ||
'python', | ||
'<(repack_locales_path)', | ||
'<@(branding_flag)', | ||
'-p', '<(OS)', | ||
'-g', '<(grit_out_dir)', | ||
'-s', '<(SHARED_INTERMEDIATE_DIR)', | ||
'-x', '<(repack_output_dir)/.', | ||
'-x', '<(SHARED_INTERMEDIATE_DIR)/.', | ||
'--use-ash', '<(use_ash)', | ||
'<@(repack_extra_flags)', | ||
'<@(locales)', | ||
'<@(pak_locales)', | ||
], | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.