Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 executable("downloader") { | 5 static_library("mac_installer_base") { |
| 6 sources = [ | 6 sources = [ |
| 7 "DownloadDelegate.m", | 7 "DownloadDelegate.m", |
| 8 "Downloader.m", | 8 "Downloader.m", |
| 9 "NetworkCommunication.m", | 9 "NetworkCommunication.m", |
| 10 "OmahaCommunication.m", | 10 "OmahaCommunication.m", |
| 11 "OmahaXMLParser.m", | 11 "OmahaXMLParser.m", |
| 12 "OmahaXMLRequest.m", | 12 "OmahaXMLRequest.m", |
| 13 "SystemInfo.m", | 13 "SystemInfo.m", |
| 14 ] | |
| 15 } | |
| 16 | |
| 17 executable("mac_installer") { | |
| 18 sources = [ | |
| 14 "main.m", | 19 "main.m", |
| 15 ] | 20 ] |
| 21 deps = [ | |
| 22 ":mac_installer_base", | |
| 23 ] | |
| 16 libs = [ "Foundation.framework" ] | 24 libs = [ "Foundation.framework" ] |
| 17 } | 25 } |
| 26 | |
| 27 executable("mac_installer_test") { | |
|
Mark Mentovai
2016/07/19 21:03:49
OK! Got a better answer here.
This should use the
Anna Zeng
2016/07/22 16:58:02
Done.
| |
| 28 testonly = true | |
| 29 sources = [ | |
| 30 # "//testing/gtest/src/gtest_main.cc", | |
| 31 "testing/OmahaXMLRequest_test.mm", | |
| 32 "testing/SystemInfo_test.mm", | |
| 33 ] | |
| 34 deps = [ | |
| 35 ":mac_installer_base", | |
| 36 "//testing/gtest:gtest_main", | |
|
Mark Mentovai
2016/07/19 21:03:49
And the answer on this one is to use //base/test:r
Anna Zeng
2016/07/22 16:58:02
Done.
| |
| 37 ] | |
| 38 libs = [ "Foundation.framework" ] | |
| 39 } | |
| OLD | NEW |