Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: device/BUILD.gn

Issue 1415783003: Add more test binaries to GN Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/config/features.gni") 5 import("//build/config/features.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/rules.gni") # For generate_jni(). 9 import("//build/config/android/rules.gni") # For generate_jni().
10 } 10 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 "nfc/nfc_chromeos_unittest.cc", 58 "nfc/nfc_chromeos_unittest.cc",
59 "nfc/nfc_ndef_record_unittest.cc", 59 "nfc/nfc_ndef_record_unittest.cc",
60 "test/run_all_unittests.cc", 60 "test/run_all_unittests.cc",
61 ] 61 ]
62 62
63 deps = [ 63 deps = [
64 "//base/test:test_support", 64 "//base/test:test_support",
65 "//device/battery", 65 "//device/battery",
66 "//device/battery:mojo_bindings", 66 "//device/battery:mojo_bindings",
67 "//device/bluetooth", 67 "//device/bluetooth",
68 "//device/bluetooth:mocks",
68 "//device/nfc", 69 "//device/nfc",
69 "//mojo/environment:chromium", 70 "//mojo/environment:chromium",
70 "//net", 71 "//net",
71 "//testing/gmock", 72 "//testing/gmock",
72 "//testing/gtest", 73 "//testing/gtest",
73 "//third_party/mojo/src/mojo/edk/system", 74 "//third_party/mojo/src/mojo/edk/system",
74 "//third_party/mojo/src/mojo/public/cpp/bindings", 75 "//third_party/mojo/src/mojo/public/cpp/bindings",
75 "//url", 76 "//url",
76 ] 77 ]
77 78
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 if (is_mac) { 162 if (is_mac) {
162 deps += [ "//third_party/ocmock" ] 163 deps += [ "//third_party/ocmock" ]
163 ldflags = [ "-ObjC" ] 164 ldflags = [ "-ObjC" ]
164 libs = [ "IOBluetooth.framework" ] 165 libs = [ "IOBluetooth.framework" ]
165 166
166 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. 167 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework.
167 # Previously, it was nested in IOBluetooth. In order for Chrome to run on 168 # Previously, it was nested in IOBluetooth. In order for Chrome to run on
168 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be 169 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be
169 # weakly linked. 170 # weakly linked.
170 if (mac_sdk_version == "10.10") { 171 if (mac_sdk_version == "10.10") {
171 ldflags += [ "-weak_framework CoreBluetooth" ] 172 ldflags += [ "-weak_framework", "CoreBluetooth" ]
172 } 173 }
173 } 174 }
174 } 175 }
175 176
176 if (is_android) { 177 if (is_android) {
177 bluetooth_java_sources_needing_jni = [ "bluetooth/test/android/java/src/org/ch romium/device/bluetooth/Fakes.java" ] 178 bluetooth_java_sources_needing_jni = [ "bluetooth/test/android/java/src/org/ch romium/device/bluetooth/Fakes.java" ]
178 179
179 generate_jni("bluetooth_test_jni_headers") { 180 generate_jni("bluetooth_test_jni_headers") {
180 sources = bluetooth_java_sources_needing_jni 181 sources = bluetooth_java_sources_needing_jni
181 jni_package = "bluetooth" 182 jni_package = "bluetooth"
182 } 183 }
183 184
184 android_library("bluetooth_test_java") { 185 android_library("bluetooth_test_java") {
185 java_files = bluetooth_java_sources_needing_jni 186 java_files = bluetooth_java_sources_needing_jni
186 deps = [ 187 deps = [
187 "//base:base_java", 188 "//base:base_java",
188 "//device/bluetooth:java", 189 "//device/bluetooth:java",
189 ] 190 ]
190 } 191 }
191 } 192 }
OLDNEW
« no previous file with comments | « content/test/BUILD.gn ('k') | mojo/package_manager/capability_filter_content_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698