| OLD | NEW | 
|---|
| 1 # Copyright (c) 2014, the Dart project authors.  Please see the AUTHORS file | 1 # Copyright (c) 2014, the Dart project authors.  Please see the AUTHORS file | 
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a | 
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 import("runtime_args.gni") | 5 import("runtime_args.gni") | 
| 6 | 6 | 
| 7 config("dart_public_config") { | 7 config("dart_public_config") { | 
| 8   include_dirs = [ "." ] | 8   include_dirs = [ "." ] | 
| 9 } | 9 } | 
| 10 | 10 | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 57     defines += [ "TARGET_OS_LINUX" ] | 57     defines += [ "TARGET_OS_LINUX" ] | 
| 58   } else if (target_os == "mac") { | 58   } else if (target_os == "mac") { | 
| 59     defines += [ "TARGET_OS_MACOS" ] | 59     defines += [ "TARGET_OS_MACOS" ] | 
| 60   } else if (target_os == "win") { | 60   } else if (target_os == "win") { | 
| 61     defines += [ "TARGET_OS_WINDOWS" ] | 61     defines += [ "TARGET_OS_WINDOWS" ] | 
| 62   } else { | 62   } else { | 
| 63     print("Unknown target_os: $target_os") | 63     print("Unknown target_os: $target_os") | 
| 64     assert(false) | 64     assert(false) | 
| 65   } | 65   } | 
| 66 | 66 | 
| 67   if (dart_target_arch != "") { | 67   if (dart_target_arch == "arm") { | 
| 68     if (dart_target_arch == "arm" || dart_target_arch == "simarm") { | 68     defines += [ "TARGET_ARCH_ARM" ] | 
| 69       defines += [ "TARGET_ARCH_ARM" ] | 69   } else if (dart_target_arch == "armv6") { | 
| 70     } else if (dart_target_arch == "armv6" || dart_target_arch == "simarmv6") { | 70     defines += [ "TARGET_ARCH_ARM" ] | 
| 71       defines += [ "TARGET_ARCH_ARM" ] | 71     defines += [ "TARGET_ARCH_ARM_6" ] | 
| 72       defines += [ "TARGET_ARCH_ARM_6" ] | 72   } else if (dart_target_arch == "armv5te") { | 
| 73     } else if (dart_target_arch == "armv5te" || | 73     defines += [ "TARGET_ARCH_ARM" ] | 
| 74                dart_target_arch == "simarmv5te") { | 74     defines += [ "TARGET_ARCH_ARM_5TE" ] | 
| 75       defines += [ "TARGET_ARCH_ARM" ] | 75   } else if (dart_target_arch == "arm64") { | 
| 76       defines += [ "TARGET_ARCH_ARM_5TE" ] | 76     defines += [ "TARGET_ARCH_ARM64" ] | 
| 77     } else if (dart_target_arch == "arm64" || dart_target_arch == "simarm64") { | 77   } else if (dart_target_arch == "x64") { | 
| 78       defines += [ "TARGET_ARCH_ARM64" ] | 78     defines += [ "TARGET_ARCH_X64" ] | 
| 79     } else if (dart_target_arch == "x64") { | 79   } else if (dart_target_arch == "ia32" || dart_target_arch == "x86") { | 
| 80       defines += [ "TARGET_ARCH_X64" ] | 80     defines += [ "TARGET_ARCH_IA32" ] | 
| 81     } else if (dart_target_arch == "ia32") { | 81   } else if (dart_target_arch == "dbc") { | 
| 82       defines += [ "TARGET_ARCH_IA32" ] | 82     defines += [ "TARGET_ARCH_DBC" ] | 
| 83     } else if (dart_target_arch == "dbc" || dart_target_arch == "simdbc" || | 83     defines += [ "USING_SIMULATOR" ] | 
| 84                dart_target_arch == "simdbc64" || | 84   } else { | 
| 85                dart_target_arch == "armsimdbc" || | 85     print("Invalid dart_target_arch: $dart_target_arch") | 
| 86                dart_target_arch == "armsimdbc64") { | 86     assert(false) | 
| 87       defines += [ "TARGET_ARCH_DBC" ] |  | 
| 88       defines += [ "USING_SIMULATOR" ] |  | 
| 89     } else { |  | 
| 90       print("Invalid dart_target_arch: $dart_target_arch") |  | 
| 91       assert(false) |  | 
| 92     } |  | 
| 93   } | 87   } | 
| 94 | 88 | 
| 95   if (dart_debug) { | 89   if (dart_debug) { | 
| 96     defines += [ "DEBUG" ] | 90     defines += [ "DEBUG" ] | 
| 97   } else { | 91   } else { | 
| 98     defines += [ "NDEBUG" ] | 92     defines += [ "NDEBUG" ] | 
| 99   } | 93   } | 
| 100 | 94 | 
| 101   include_dirs = [] | 95   include_dirs = [] | 
| 102   if (dart_use_tcmalloc) { | 96   if (dart_use_tcmalloc) { | 
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 252 | 246 | 
| 253   script = "../tools/make_version.py" | 247   script = "../tools/make_version.py" | 
| 254   args = [ | 248   args = [ | 
| 255     "--quiet", | 249     "--quiet", | 
| 256     "--output", | 250     "--output", | 
| 257     rebase_path(output, root_build_dir), | 251     rebase_path(output, root_build_dir), | 
| 258     "--input", | 252     "--input", | 
| 259     rebase_path("vm/version_in.cc", root_build_dir), | 253     rebase_path("vm/version_in.cc", root_build_dir), | 
| 260   ] | 254   ] | 
| 261 } | 255 } | 
| OLD | NEW | 
|---|