| 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 source_set("utility") { | 5 import("../../mojo_sdk.gni") |
| 6 |
| 7 mojo_sdk_source_set("utility") { |
| 6 sources = [ | 8 sources = [ |
| 7 "mutex.h", | 9 "mutex.h", |
| 8 "run_loop.h", | 10 "run_loop.h", |
| 9 "run_loop_handler.h", | 11 "run_loop_handler.h", |
| 10 "thread.h", | 12 "thread.h", |
| 11 "lib/mutex.cc", | 13 "lib/mutex.cc", |
| 12 "lib/run_loop.cc", | 14 "lib/run_loop.cc", |
| 13 "lib/thread.cc", | 15 "lib/thread.cc", |
| 14 "lib/thread_local.h", | 16 "lib/thread_local.h", |
| 15 "lib/thread_local_posix.cc", | 17 "lib/thread_local_posix.cc", |
| 16 "lib/thread_local_win.cc", | 18 "lib/thread_local_win.cc", |
| 17 ] | 19 ] |
| 18 | 20 |
| 19 deps = [ | 21 mojo_sdk_deps = [ |
| 20 "//mojo/public/cpp/bindings:callback", | 22 "mojo/public/cpp/bindings:callback", |
| 21 "//mojo/public/cpp/system", | 23 "mojo/public/cpp/system", |
| 22 ] | 24 ] |
| 23 | 25 |
| 24 if (is_win) { | 26 if (is_win) { |
| 25 # See crbug.com/342893: | 27 # See crbug.com/342893: |
| 26 sources -= [ | 28 sources -= [ |
| 27 "mutex.h", | 29 "mutex.h", |
| 28 "thread.h", | 30 "thread.h", |
| 29 "lib/mutex.cc", | 31 "lib/mutex.cc", |
| 30 "lib/thread.cc", | 32 "lib/thread.cc", |
| 31 ] | 33 ] |
| 32 } | 34 } |
| 33 } | 35 } |
| OLD | NEW |