1 # Copyright (C) 2013 Google Inc. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 { 15 'variables': { 16 'grit_dir%': '<(DEPTH)/../externals/grit', 17 }, 18 'targets': [ 19 { 20 'target_name': 'generated_messages', 21 'type': 'none', 22 'sources': [ 23 'res/messages.grd', 24 ], 25 'actions': [ 26 { 27 'action_name': 'generate_messages', 28 'inputs': [ 29 '<(grit_dir)/grit.py', 30 'res/messages.grd', 31 'res/messages.grdp', 32 ], 33 'outputs': [ 34 '<(SHARED_INTERMEDIATE_DIR)/en_messages.cc', 35 '<(SHARED_INTERMEDIATE_DIR)/messages.h', 36 ], 37 'action': [ 38 'python', 39 '<(grit_dir)/grit.py', 40 '-i', 41 'res/messages.grd', 42 'build', 43 '-o', 44 '<(SHARED_INTERMEDIATE_DIR)', 45 ], 46 }, 47 ], 48 'all_dependent_settings': { 49 'include_dirs': [ 50 '<(SHARED_INTERMEDIATE_DIR)', 51 ], 52 }, 53 }, 54 ], 55 } 56