| OLD | NEW | 
|    1 # Copyright 2015 The Chromium Authors. All rights reserved. |    1 # Copyright 2015 The Chromium Authors. All rights reserved. | 
|    2 # Use of this source code is governed by a BSD-style license that can be |    2 # Use of this source code is governed by a BSD-style license that can be | 
|    3 # found in the LICENSE file. |    3 # found in the LICENSE file. | 
|    4  |    4  | 
|    5 # Generates a header with preprocessor defines specified by the build file. |    5 # Generates a header with preprocessor defines specified by the build file. | 
|    6 # |    6 # | 
|    7 # The canonical documentation is in build/buildflag_header.gni. You should |    7 # The canonical documentation is in build/buildflag_header.gni. You should | 
|    8 # write the GN build, get it working, and then transform it into GYP. |    8 # write the GN build, get it working, and then transform it into GYP. | 
|    9 # |    9 # | 
|   10 # In every target that uses your generated header you must include a dependency |   10 # In every target that uses your generated header you must include a dependency | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
|   24 #   } |   24 #   } | 
|   25 # |   25 # | 
|   26 # Write a GYP target like this: |   26 # Write a GYP target like this: | 
|   27 # |   27 # | 
|   28 #  { |   28 #  { | 
|   29 #    # GN version: //foo:foo_features |   29 #    # GN version: //foo:foo_features | 
|   30 #    'target_name': 'foo_foo_features', |   30 #    'target_name': 'foo_foo_features', | 
|   31 #    'includes': [ '../build/buildflag_header.gypi' ], |   31 #    'includes': [ '../build/buildflag_header.gypi' ], | 
|   32 #    'variables': { |   32 #    'variables': { | 
|   33 #       'buildflag_header_path': 'foo/foo_features.h', |   33 #       'buildflag_header_path': 'foo/foo_features.h', | 
|   34 #       'buildflag_header_flags': [ |   34 #       'buildflag_flags': [ | 
|   35 #         'ENABLE_DOOM_MELON=<(enable_doom_melon)', |   35 #         'ENABLE_DOOM_MELON=<(enable_doom_melon)', | 
|   36 #         'ENABLE_SPACE_LASER=true', |   36 #         'ENABLE_SPACE_LASER=true', | 
|   37 #         'SPAM_SERVER_URL="http://www.example.com/"', |   37 #         'SPAM_SERVER_URL="http://www.example.com/"', | 
|   38 #       ], |   38 #       ], | 
|   39 #     }, |   39 #     }, | 
|   40 #   } |   40 #   } | 
|   41 # |   41 # | 
|   42 # Variables |   42 # Variables | 
|   43 # |   43 # | 
|   44 #   target_name |   44 #   target_name | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  109       'action': [ |  109       'action': [ | 
|  110         'python', '<(build_header_script)', |  110         'python', '<(build_header_script)', | 
|  111         '--output', '<(buildflag_header_path)', |  111         '--output', '<(buildflag_header_path)', | 
|  112         '--rulename', '<(_target_name)', |  112         '--rulename', '<(_target_name)', | 
|  113         '--gen-dir', '<(SHARED_INTERMEDIATE_DIR)', |  113         '--gen-dir', '<(SHARED_INTERMEDIATE_DIR)', | 
|  114         '--definitions', '<(response_file_name)', |  114         '--definitions', '<(response_file_name)', | 
|  115       ], |  115       ], | 
|  116     } |  116     } | 
|  117   ], |  117   ], | 
|  118 } |  118 } | 
| OLD | NEW |