| 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 static_library("mac_installer_base") { | 7 static_library("mac_installer_base") { |
| 8 sources = [ | 8 sources = [ |
| 9 "Downloader.m", | 9 "Downloader.m", |
| 10 "MainDelegate.m", | 10 "MainDelegate.m", |
| 11 "NetworkCommunication.m", | 11 "NetworkCommunication.m", |
| 12 "OmahaCommunication.m", | 12 "OmahaCommunication.m", |
| 13 "OmahaXMLParser.m", | 13 "OmahaXMLParser.m", |
| 14 "OmahaXMLRequest.m", | 14 "OmahaXMLRequest.m", |
| 15 "SystemInfo.m", | 15 "SystemInfo.m", |
| 16 "Unpacker.m", |
| 16 ] | 17 ] |
| 17 } | 18 } |
| 18 | 19 |
| 19 executable("mac_installer") { | 20 executable("mac_installer") { |
| 20 sources = [ | 21 sources = [ |
| 21 "main.m", | 22 "main.m", |
| 22 ] | 23 ] |
| 23 deps = [ | 24 deps = [ |
| 24 ":mac_installer_base", | 25 ":mac_installer_base", |
| 25 ] | 26 ] |
| 26 libs = [ "Foundation.framework" ] | 27 libs = [ |
| 28 "CoreFoundation.framework", |
| 29 "DiskArbitration.framework", |
| 30 "Foundation.framework", |
| 31 ] |
| 27 } | 32 } |
| 28 | 33 |
| 29 test("mac_installer_test") { | 34 test("mac_installer_test") { |
| 30 sources = [ | 35 sources = [ |
| 31 "testing/OmahaXMLRequest_test.mm", | 36 "testing/OmahaXMLRequest_test.mm", |
| 32 "testing/SystemInfo_test.mm", | 37 "testing/SystemInfo_test.mm", |
| 33 ] | 38 ] |
| 34 deps = [ | 39 deps = [ |
| 35 ":mac_installer_base", | 40 ":mac_installer_base", |
| 36 "//base:base", | 41 "//base:base", |
| 37 "//base/test:run_all_unittests", | 42 "//base/test:run_all_unittests", |
| 38 "//testing/gtest:gtest", | 43 "//testing/gtest:gtest", |
| 39 ] | 44 ] |
| 40 libs = [ "Foundation.framework" ] | 45 libs = [ "Foundation.framework" ] |
| 41 } | 46 } |
| OLD | NEW |