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