OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # This file contains resources for the main Mac chromium bundle. | 5 # This file contains resources for the main Mac chromium bundle. |
6 { | 6 { |
7 # The main browser executable's name is <(mac_product_name). | 7 # The main browser executable's name is <(mac_product_name). |
8 # Certain things will get confused if two modules in the | 8 # Certain things will get confused if two modules in the |
9 # executable share the same name, so append " Framework" to the | 9 # executable share the same name, so append " Framework" to the |
10 # product_name used for the framework. This will result in | 10 # product_name used for the framework. This will result in |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 # but this seems like a really good place to store them. | 121 # but this seems like a really good place to store them. |
122 'postbuild_name': 'Tweak Info.plist', | 122 'postbuild_name': 'Tweak Info.plist', |
123 'action': ['<(tweak_info_plist_path)', | 123 'action': ['<(tweak_info_plist_path)', |
124 '--breakpad=<(mac_breakpad_compiled_in)', | 124 '--breakpad=<(mac_breakpad_compiled_in)', |
125 '--breakpad_uploads=<(mac_breakpad_uploads)', | 125 '--breakpad_uploads=<(mac_breakpad_uploads)', |
126 '--keystone=0', | 126 '--keystone=0', |
127 '--scm=1', | 127 '--scm=1', |
128 '--branding=<(branding)'], | 128 '--branding=<(branding)'], |
129 }, | 129 }, |
130 { | 130 { |
131 # Copy libmojo_system.dylib explicitly. The copies section does a | |
132 # hard link, and since we modify it we would end up with the wrong | |
133 # load command in things linked afterward. | |
134 'postbuild_name': 'Copy libmojo_system.dylib', | |
135 'action': ['cp', | |
136 '-p', | |
137 '${BUILT_PRODUCTS_DIR}/libmojo_system.dylib', | |
138 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Libraries'], | |
139 }, | |
140 { | |
141 # Changes the id of libmojo_system.dylib to come from the Libraries folder | |
142 # to be consistent with the load command. | |
143 'postbuild_name': 'Update id of libmojo_system.dylib', | |
144 'action': ['install_name_tool', | |
145 '-id', | |
146 '@loader_path/Libraries/libmojo_system.dylib', | |
147 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Libraries/libmoj o_system.dylib'], | |
148 }, | |
149 { | |
150 # Changes the load command of libmojo_system.dylib to come from | |
151 # the Libraries folder. | |
152 'postbuild_name': 'Update load of libmojo_system.dylib', | |
153 'action': ['install_name_tool', | |
154 '-change', | |
155 '@loader_path/libmojo_system.dylib', | |
156 '@loader_path/Libraries/libmojo_system.dylib', | |
157 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'], | |
158 }, | |
159 { | |
131 'postbuild_name': 'Symlink Libraries', | 160 'postbuild_name': 'Symlink Libraries', |
132 'action': [ | 161 'action': [ |
133 'ln', | 162 'ln', |
134 '-fns', | 163 '-fns', |
135 'Versions/Current/Libraries', | 164 'Versions/Current/Libraries', |
136 '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Libraries' | 165 '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Libraries' |
137 ], | 166 ], |
138 }, | 167 }, |
139 ], | 168 ], |
140 'copies': [ | 169 'copies': [ |
141 { | 170 { |
142 # Copy FFmpeg binaries for audio/video support. | 171 # Copy FFmpeg binaries for audio/video support and mojo. |
Mark Mentovai
2014/04/01 18:38:21
Fix comment. This doesn’t handle mojo anymore.
| |
143 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', | 172 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', |
144 'files': [ | 173 'files': [ |
145 '<(PRODUCT_DIR)/ffmpegsumo.so', | 174 '<(PRODUCT_DIR)/ffmpegsumo.so', |
146 ], | 175 ], |
147 }, | 176 }, |
148 { | 177 { |
149 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Internet Plug-Ins', | 178 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Internet Plug-Ins', |
150 'files': [], | 179 'files': [], |
151 'conditions': [ | 180 'conditions': [ |
152 ['internal_pdf', { | 181 ['internal_pdf', { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
308 ], | 337 ], |
309 }], | 338 }], |
310 }], | 339 }], |
311 ['icu_use_data_file_flag==1', { | 340 ['icu_use_data_file_flag==1', { |
312 'mac_bundle_resources': [ | 341 'mac_bundle_resources': [ |
313 '<(PRODUCT_DIR)/icudtl.dat', | 342 '<(PRODUCT_DIR)/icudtl.dat', |
314 ], | 343 ], |
315 }], | 344 }], |
316 ], # conditions | 345 ], # conditions |
317 } | 346 } |
OLD | NEW |