| OLD | NEW |
| 1 # Copyright 2014 The Crashpad Authors. All rights reserved. | 1 # Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 # | 2 # |
| 3 # Licensed under the Apache License, Version 2.0 (the "License"); | 3 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 # you may not use this file except in compliance with 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 | 5 # You may obtain a copy of the License at |
| 6 # | 6 # |
| 7 # http://www.apache.org/licenses/LICENSE-2.0 | 7 # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 # | 8 # |
| 9 # Unless required by applicable law or agreed to in writing, software | 9 # Unless required by applicable law or agreed to in writing, software |
| 10 # distributed under the License is distributed on an "AS IS" BASIS, | 10 # distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 'file/string_file_writer.cc', | 33 'file/string_file_writer.cc', |
| 34 'file/string_file_writer.h', | 34 'file/string_file_writer.h', |
| 35 'mac/checked_mach_address_range.cc', | 35 'mac/checked_mach_address_range.cc', |
| 36 'mac/checked_mach_address_range.h', | 36 'mac/checked_mach_address_range.h', |
| 37 'mac/launchd.h', | 37 'mac/launchd.h', |
| 38 'mac/launchd.mm', | 38 'mac/launchd.mm', |
| 39 'mac/mac_util.cc', | 39 'mac/mac_util.cc', |
| 40 'mac/mac_util.h', | 40 'mac/mac_util.h', |
| 41 'mac/service_management.cc', | 41 'mac/service_management.cc', |
| 42 'mac/service_management.h', | 42 'mac/service_management.h', |
| 43 'mach/child_port.defs', |
| 43 'mach/child_port_handshake.cc', | 44 'mach/child_port_handshake.cc', |
| 44 'mach/child_port_handshake.h', | 45 'mach/child_port_handshake.h', |
| 45 'mach/child_port_server.cc', | 46 'mach/child_port_server.cc', |
| 46 'mach/child_port_server.h', | 47 'mach/child_port_server.h', |
| 47 'mach/child_port_types.h', | 48 'mach/child_port_types.h', |
| 48 'mach/composite_mach_message_server.cc', | 49 'mach/composite_mach_message_server.cc', |
| 49 'mach/composite_mach_message_server.h', | 50 'mach/composite_mach_message_server.h', |
| 50 'mach/exc_client_variants.cc', | 51 'mach/exc_client_variants.cc', |
| 51 'mach/exc_client_variants.h', | 52 'mach/exc_client_variants.h', |
| 52 'mach/exc_server_variants.cc', | 53 'mach/exc_server_variants.cc', |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 'stdlib/string_number_conversion.h', | 107 'stdlib/string_number_conversion.h', |
| 107 'stdlib/strlcpy.cc', | 108 'stdlib/strlcpy.cc', |
| 108 'stdlib/strlcpy.h', | 109 'stdlib/strlcpy.h', |
| 109 'stdlib/strnlen.cc', | 110 'stdlib/strnlen.cc', |
| 110 'stdlib/strnlen.h', | 111 'stdlib/strnlen.h', |
| 111 'synchronization/semaphore.cc', | 112 'synchronization/semaphore.cc', |
| 112 'synchronization/semaphore.h', | 113 'synchronization/semaphore.h', |
| 113 ], | 114 ], |
| 114 'conditions': [ | 115 'conditions': [ |
| 115 ['OS=="mac"', { | 116 ['OS=="mac"', { |
| 116 'actions': [ | 117 'conditions': [ |
| 118 ['GENERATOR=="ninja"', { |
| 119 # ninja’s rules can’t deal with sources that have paths relative |
| 120 # to environment variables like SDKROOT. Copy the .defs files out |
| 121 # of SDKROOT and into a place they can be referenced without any |
| 122 # environment variables. |
| 123 'copies': [ |
| 124 { |
| 125 'destination': '<(INTERMEDIATE_DIR)/util/mach', |
| 126 'files': [ |
| 127 '$(SDKROOT)/usr/include/mach/exc.defs', |
| 128 '$(SDKROOT)/usr/include/mach/mach_exc.defs', |
| 129 ], |
| 130 }, |
| 131 ], |
| 132 'sources': [ |
| 133 '<(INTERMEDIATE_DIR)/util/mach/exc.defs', |
| 134 '<(INTERMEDIATE_DIR)/util/mach/mach_exc.defs', |
| 135 ], |
| 136 }, { # else: GENERATOR!="ninja" |
| 137 # The Xcode generator does copies after rules, so the above trick |
| 138 # won’t work, but its rules tolerate sources with SDKROOT-relative |
| 139 # paths. |
| 140 'sources': [ |
| 141 '$(SDKROOT)/usr/include/mach/exc.defs', |
| 142 '$(SDKROOT)/usr/include/mach/mach_exc.defs', |
| 143 ], |
| 144 }], |
| 145 ], |
| 146 'rules': [ |
| 117 { | 147 { |
| 118 'action_name': 'mig child_port.defs', | 148 'rule_name': 'mig', |
| 119 'variables': { | 149 'extension': 'defs', |
| 120 'child_port_defs_file': 'mach/child_port.defs', | |
| 121 }, | |
| 122 'inputs': [ | 150 'inputs': [ |
| 123 'mach/mig.py', | 151 'mach/mig.py', |
| 124 '<(child_port_defs_file)', | |
| 125 ], | 152 ], |
| 126 'outputs': [ | 153 'outputs': [ |
| 127 '<(INTERMEDIATE_DIR)/util/mach/child_portUser.c', | 154 '<(INTERMEDIATE_DIR)/util/mach/<(RULE_INPUT_ROOT)User.c', |
| 128 '<(INTERMEDIATE_DIR)/util/mach/child_portServer.c', | 155 '<(INTERMEDIATE_DIR)/util/mach/<(RULE_INPUT_ROOT)Server.c', |
| 129 '<(INTERMEDIATE_DIR)/util/mach/child_port.h', | 156 '<(INTERMEDIATE_DIR)/util/mach/<(RULE_INPUT_ROOT).h', |
| 130 '<(INTERMEDIATE_DIR)/util/mach/child_portServer.h', | 157 '<(INTERMEDIATE_DIR)/util/mach/<(RULE_INPUT_ROOT)Server.h', |
| 131 ], | 158 ], |
| 132 'action': [ | 159 'action': [ |
| 133 'python', '<@(_inputs)', '<@(_outputs)' | 160 'python', '<@(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)' |
| 134 ], | 161 ], |
| 135 'process_outputs_as_sources': 1, | 162 'process_outputs_as_sources': 1, |
| 136 }, | 163 }, |
| 137 { | |
| 138 'action_name': 'mig exc.defs', | |
| 139 'inputs': [ | |
| 140 'mach/mig.py', | |
| 141 '$(SDKROOT)/usr/include/mach/exc.defs', | |
| 142 ], | |
| 143 'outputs': [ | |
| 144 '<(INTERMEDIATE_DIR)/util/mach/excUser.c', | |
| 145 '<(INTERMEDIATE_DIR)/util/mach/excServer.c', | |
| 146 '<(INTERMEDIATE_DIR)/util/mach/exc.h', | |
| 147 '<(INTERMEDIATE_DIR)/util/mach/excServer.h', | |
| 148 ], | |
| 149 'action': [ | |
| 150 'python', '<@(_inputs)', '<@(_outputs)' | |
| 151 ], | |
| 152 'process_outputs_as_sources': 1, | |
| 153 }, | |
| 154 { | |
| 155 'action_name': 'mig mach_exc.defs', | |
| 156 'inputs': [ | |
| 157 'mach/mig.py', | |
| 158 '$(SDKROOT)/usr/include/mach/mach_exc.defs', | |
| 159 ], | |
| 160 'outputs': [ | |
| 161 '<(INTERMEDIATE_DIR)/util/mach/mach_excUser.c', | |
| 162 '<(INTERMEDIATE_DIR)/util/mach/mach_excServer.c', | |
| 163 '<(INTERMEDIATE_DIR)/util/mach/mach_exc.h', | |
| 164 '<(INTERMEDIATE_DIR)/util/mach/mach_excServer.h', | |
| 165 ], | |
| 166 'action': [ | |
| 167 'python', '<@(_inputs)', '<@(_outputs)' | |
| 168 ], | |
| 169 'process_outputs_as_sources': 1, | |
| 170 }, | |
| 171 ], | 164 ], |
| 172 'link_settings': { | 165 'link_settings': { |
| 173 'libraries': [ | 166 'libraries': [ |
| 174 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | 167 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
| 175 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 168 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 176 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', | 169 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', |
| 177 ], | 170 ], |
| 178 }, | 171 }, |
| 179 }], | 172 }], |
| 180 ], | 173 ], |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 }, | 282 }, |
| 290 { | 283 { |
| 291 'target_name': 'util_test_multiprocess_exec_test_child', | 284 'target_name': 'util_test_multiprocess_exec_test_child', |
| 292 'type': 'executable', | 285 'type': 'executable', |
| 293 'sources': [ | 286 'sources': [ |
| 294 'test/multiprocess_exec_test_child.cc', | 287 'test/multiprocess_exec_test_child.cc', |
| 295 ], | 288 ], |
| 296 }, | 289 }, |
| 297 ], | 290 ], |
| 298 } | 291 } |
| OLD | NEW |