| 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 import("//build/toolchain/toolchain.gni") | 5 import("//build/toolchain/toolchain.gni") |
| 6 | 6 |
| 7 if (is_mac) { | 7 if (is_mac) { |
| 8 import("//build/config/sysroot.gni") | 8 import("//build/config/sysroot.gni") |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 outputs = [ | 28 outputs = [ |
| 29 "$target_gen_dir/mach/{{source_name_part}}User.c", | 29 "$target_gen_dir/mach/{{source_name_part}}User.c", |
| 30 "$target_gen_dir/mach/{{source_name_part}}Server.c", | 30 "$target_gen_dir/mach/{{source_name_part}}Server.c", |
| 31 "$target_gen_dir/mach/{{source_name_part}}.h", | 31 "$target_gen_dir/mach/{{source_name_part}}.h", |
| 32 "$target_gen_dir/mach/{{source_name_part}}Server.h", | 32 "$target_gen_dir/mach/{{source_name_part}}Server.h", |
| 33 ] | 33 ] |
| 34 | 34 |
| 35 args = [ "{{source}}" ] | 35 args = [ "{{source}}" ] |
| 36 args += rebase_path(outputs, root_build_dir) | 36 args += rebase_path(outputs, root_build_dir) |
| 37 if (!use_system_xcode) { | 37 if (!use_system_xcode) { |
| 38 args += [ hermetic_xcode_path ] | 38 args += [ |
| 39 "--developer-dir", |
| 40 hermetic_xcode_path, |
| 41 ] |
| 39 } | 42 } |
| 43 args += [ |
| 44 "--sdk", |
| 45 mac_sdk_path, |
| 46 ] |
| 40 } | 47 } |
| 41 } | 48 } |
| 42 | 49 |
| 43 static_library("util") { | 50 static_library("util") { |
| 44 sources = [ | 51 sources = [ |
| 45 "file/file_io.cc", | 52 "file/file_io.cc", |
| 46 "file/file_io.h", | 53 "file/file_io.h", |
| 47 "file/file_io_posix.cc", | 54 "file/file_io_posix.cc", |
| 48 "file/file_io_win.cc", | 55 "file/file_io_win.cc", |
| 49 "file/file_reader.cc", | 56 "file/file_reader.cc", |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 } else if (is_mac) { | 250 } else if (is_mac) { |
| 244 sources += get_target_outputs(":mig") | 251 sources += get_target_outputs(":mig") |
| 245 deps += [ ":mig" ] | 252 deps += [ ":mig" ] |
| 246 libs = [ | 253 libs = [ |
| 247 "CoreFoundation.framework", | 254 "CoreFoundation.framework", |
| 248 "Foundation.framework", | 255 "Foundation.framework", |
| 249 "IOKit.framework", | 256 "IOKit.framework", |
| 250 ] | 257 ] |
| 251 } | 258 } |
| 252 } | 259 } |
| OLD | NEW |