| 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 import("//build/config/mac/rules.gni") | 6 import("//build/config/mac/rules.gni") |
| 7 | 7 |
| 8 source_set("mac_installer_base") { | 8 source_set("mac_installer_base") { |
| 9 sources = [ | 9 sources = [ |
| 10 "Downloader.m", | 10 "Downloader.m", |
| 11 "NSAlert+ChromeInstallerAdditions.m", | 11 "NSAlert+ChromeInstallerAdditions.m", |
| 12 "NSError+ChromeInstallerAdditions.m", | 12 "NSError+ChromeInstallerAdditions.m", |
| 13 "OmahaCommunication.m", | 13 "OmahaCommunication.m", |
| 14 "OmahaXMLParser.m", | 14 "OmahaXMLParser.m", |
| 15 "OmahaXMLRequest.m", | 15 "OmahaXMLRequest.m", |
| 16 "SystemInfo.m", | 16 "SystemInfo.m", |
| 17 "Unpacker.m", |
| 17 ] | 18 ] |
| 18 } | 19 } |
| 19 | 20 |
| 20 mac_app_bundle("mac_installer_app") { | 21 mac_app_bundle("mac_installer_app") { |
| 21 info_plist = "Info.plist" | 22 info_plist = "Info.plist" |
| 22 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.9" ] | 23 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.9" ] |
| 23 sources = [ | 24 sources = [ |
| 24 "AppDelegate.m", | 25 "AppDelegate.m", |
| 25 "InstallerWindowController.m", | 26 "InstallerWindowController.m", |
| 26 "main.m", | 27 "main.m", |
| 27 ] | 28 ] |
| 28 | 29 |
| 29 deps = [ | 30 deps = [ |
| 30 ":mac_installer_base", | 31 ":mac_installer_base", |
| 31 ":mac_installer_xibs", | 32 ":mac_installer_xibs", |
| 32 ] | 33 ] |
| 33 | 34 |
| 34 libs = [ | 35 libs = [ |
| 35 "AppKit.framework", | 36 "Cocoa.framework", |
| 36 "CoreFoundation.framework", | 37 "DiskArbitration.framework", |
| 37 ] | 38 ] |
| 38 } | 39 } |
| 39 | 40 |
| 40 mac_xib_bundle_data("mac_installer_xibs") { | 41 mac_xib_bundle_data("mac_installer_xibs") { |
| 41 sources = [ | 42 sources = [ |
| 42 "MainMenu.xib", | 43 "MainMenu.xib", |
| 43 ] | 44 ] |
| 44 } | 45 } |
| 45 | 46 |
| 46 test("mac_installer_unittests") { | 47 test("mac_installer_unittests") { |
| 47 sources = [ | 48 sources = [ |
| 48 "testing/OmahaXMLRequest_test.mm", | 49 "testing/OmahaXMLRequest_test.mm", |
| 49 "testing/SystemInfo_test.mm", | 50 "testing/SystemInfo_test.mm", |
| 51 "testing/Unpacker_test.mm", |
| 50 ] | 52 ] |
| 51 deps = [ | 53 deps = [ |
| 52 ":mac_installer_base", | 54 ":mac_installer_base", |
| 53 "//base:base", | 55 "//base:base", |
| 54 "//base/test:run_all_unittests", | 56 "//base/test:run_all_unittests", |
| 55 "//testing/gtest:gtest", | 57 "//testing/gtest:gtest", |
| 56 ] | 58 ] |
| 57 libs = [ "Foundation.framework" ] | 59 libs = [ |
| 60 "Cocoa.framework", |
| 61 "DiskArbitration.framework", |
| 62 ] |
| 58 data = [ | 63 data = [ |
| 59 "testing/requestCheck.dtd", | 64 "testing/requestCheck.dtd", |
| 60 "testing/requestSample.xml", | 65 "testing/requestSample.xml", |
| 61 "testing/responseExample.xml", | 66 "testing/responseExample.xml", |
| 62 ] | 67 ] |
| 63 } | 68 } |
| OLD | NEW |