| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 | 8 |
| 9 gypi_values = exec_script( | 9 gypi_values = exec_script( |
| 10 "//build/gypi_to_gn.py", | 10 "//build/gypi_to_gn.py", |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 288 |
| 289 if (is_mac) { | 289 if (is_mac) { |
| 290 sources += rebase_path(gypi_values.chrome_browser_ui_mac_sources, | 290 sources += rebase_path(gypi_values.chrome_browser_ui_mac_sources, |
| 291 ".", "//chrome") | 291 ".", "//chrome") |
| 292 sources -= [ | 292 sources -= [ |
| 293 # Mac has its own way of drawing tabs. | 293 # Mac has its own way of drawing tabs. |
| 294 "tabs/tab_resources.cc", | 294 "tabs/tab_resources.cc", |
| 295 "tabs/tab_resources.h", | 295 "tabs/tab_resources.h", |
| 296 ] | 296 ] |
| 297 deps += [ | 297 deps += [ |
| 298 "//third_party/google_toolbox_for_mac", |
| 299 ":generate_localizer", |
| 298 #'../third_party/apple_sample_code/apple_sample_code.gyp:apple_sample_code
', TODO(GYP) | 300 #'../third_party/apple_sample_code/apple_sample_code.gyp:apple_sample_code
', TODO(GYP) |
| 299 #'../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_
toolbox_for_mac', TODO(GYP) | |
| 300 #'../third_party/molokocacao/molokocacao.gyp:molokocacao', TODO(GYP) | 301 #'../third_party/molokocacao/molokocacao.gyp:molokocacao', TODO(GYP) |
| 301 #'../third_party/mozilla/mozilla.gyp:mozilla', TODO(GYP) | 302 #'../third_party/mozilla/mozilla.gyp:mozilla', TODO(GYP) |
| 302 ] | 303 ] |
| 304 include_dirs = [ "$target_gen_dir" ] |
| 303 libs += [ "Quartz.framework" ] | 305 libs += [ "Quartz.framework" ] |
| 304 # TODO(GYP) | 306 configs += [ |
| 305 #'actions': [ | 307 "//third_party/google_toolbox_for_mac:google_toolbox_for_mac_config", |
| 306 # { | 308 ] |
| 307 # # This action is used to extract the localization data from xib | |
| 308 # # files and generate table for the ui localizer from it. | |
| 309 # 'variables': { | |
| 310 # 'xib_localizer_tool_path': | |
| 311 # 'tools/build/mac/generate_localizer', | |
| 312 # }, | |
| 313 # 'includes': [ | |
| 314 # 'chrome_nibs.gypi', | |
| 315 # ], | |
| 316 # 'action_name': 'Process xibs for localization', | |
| 317 # 'inputs': [ | |
| 318 # '<(xib_localizer_tool_path)', | |
| 319 # '<@(mac_translated_xibs)', | |
| 320 # ], | |
| 321 # 'outputs': [ | |
| 322 # '<(INTERMEDIATE_DIR)/ui_localizer_table.h', | |
| 323 # ], | |
| 324 # 'action': ['<(xib_localizer_tool_path)', | |
| 325 # '<@(_outputs)', | |
| 326 # '<@(mac_translated_xibs)'], | |
| 327 # }, | |
| 328 #] | |
| 329 } else { # non-Mac. | 309 } else { # non-Mac. |
| 330 sources += rebase_path(gypi_values.chrome_browser_ui_non_mac_sources, | 310 sources += rebase_path(gypi_values.chrome_browser_ui_non_mac_sources, |
| 331 ".", "//chrome") | 311 ".", "//chrome") |
| 332 } | 312 } |
| 333 | 313 |
| 334 if (is_win) { | 314 if (is_win) { |
| 335 sources += rebase_path(gypi_values.chrome_browser_ui_win_sources, | 315 sources += rebase_path(gypi_values.chrome_browser_ui_win_sources, |
| 336 ".", "//chrome") | 316 ".", "//chrome") |
| 337 deps += [ | 317 deps += [ |
| 338 "//third_party/wtl", | 318 "//third_party/wtl", |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 } | 390 } |
| 411 if (enable_service_discovery) { | 391 if (enable_service_discovery) { |
| 412 sources += rebase_path( | 392 sources += rebase_path( |
| 413 gypi_values.chrome_browser_ui_service_discovery_sources, | 393 gypi_values.chrome_browser_ui_service_discovery_sources, |
| 414 ".", "//chrome") | 394 ".", "//chrome") |
| 415 } | 395 } |
| 416 if (enable_spellcheck) { | 396 if (enable_spellcheck) { |
| 417 deps += [ "//third_party/hunspell" ] | 397 deps += [ "//third_party/hunspell" ] |
| 418 } | 398 } |
| 419 } | 399 } |
| 400 |
| 401 if (is_mac) { |
| 402 nib_gypi_values = exec_script( |
| 403 "//build/gypi_to_gn.py", |
| 404 [ rebase_path("../../chrome_nibs.gypi") ], |
| 405 "scope", |
| 406 [ "../../chrome_nibs.gypi" ]) |
| 407 |
| 408 action("generate_localizer") { |
| 409 script = "//chrome/tools/build/mac/generate_localizer" |
| 410 sources = [ ] |
| 411 table_path = "$target_gen_dir/ui_localizer_table.h" |
| 412 outputs = [ table_path ] |
| 413 args = [ rebase_path(table_path, root_build_dir) ] + |
| 414 rebase_path(nib_gypi_values.mac_translated_xibs, root_build_dir, "/
/chrome") |
| 415 } |
| 416 } |
| OLD | NEW |