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

Unified Diff: content/app/strings/content_strings.gyp

Issue 423613003: Move strings from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: action Created 6 years, 4 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 | « content/app/strings/content_strings.grd ('k') | content/app/strings/translations/content_strings_am.xtb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/strings/content_strings.gyp
diff --git a/content/app/strings/content_strings.gyp b/content/app/strings/content_strings.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..0ee5d0666d2f8fedd8f9d9a71fee45f0a472080f
--- /dev/null
+++ b/content/app/strings/content_strings.gyp
@@ -0,0 +1,41 @@
+# 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.
+
+{
+ 'targets': [
+ {
+ # GN version: //content/app/strings
+ 'target_name': 'content_strings',
+ 'type': 'none',
+ 'variables': {
+ 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content/app/strings',
+ },
+ 'actions': [
+ {
+ 'action_name': 'generate_content_strings',
+ 'variables': {
+ 'grit_grd_file': 'content_strings.grd',
+ },
+ 'includes': [ '../../../build/grit_action.gypi' ],
+ },
+ {
+ 'action_name': 'rm_old_file',
tfarina 2014/08/03 14:16:57 is it fine to have it here?
jochen (gone - plz use gerrit) 2014/08/04 08:32:38 i don't think we should have such magic in our gyp
Nico 2014/08/04 16:57:41 How is a PSA better than things Just Working autom
Ken Russell (switch to Gerrit) 2014/08/05 01:07:10 I think whatever magic is needed to make this work
+ 'inputs': [
+ '<(DEPTH)/build/whitespace_file.txt', # Dummy input.
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/dummy_stamp',
tfarina 2014/08/03 14:16:57 this is necessary, otherwise the ninja rule will b
tfarina 2014/08/03 14:17:32 s/will build/will be
+ ],
+ 'action': [
+ 'python',
+ '-c',
+ 'import os, sys; os.remove(sys.argv[1])',
tfarina 2014/08/03 14:30:12 we also need os.path.exists(sys.argv[1]), otherwis
+ '<(SHARED_INTERMEDIATE_DIR)/webkit/grit/webkit_strings.h'
+ ],
+ },
+ ],
+ 'includes': [ '../../../build/grit_target.gypi' ],
+ },
+ ]
+}
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | content/app/strings/translations/content_strings_am.xtb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698