| 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 ] | 17 ] |
| 18 } | 18 } |
| 19 | 19 |
| 20 mac_app_bundle("mac_installer_app") { | 20 mac_app_bundle("mac_installer_app") { |
| 21 info_plist = "Info.plist" | 21 info_plist = "Info.plist" |
| 22 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.9" ] | 22 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.9" ] |
| 23 sources = [ | 23 sources = [ |
| 24 "AppDelegate.m", | 24 "AppDelegate.m", |
| 25 "AuthorizedInstall.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", |
| 32 ":mac_installer_resources", |
| 31 ":mac_installer_xibs", | 33 ":mac_installer_xibs", |
| 32 ] | 34 ] |
| 33 | 35 |
| 34 libs = [ | 36 libs = [ |
| 35 "AppKit.framework", | 37 "AppKit.framework", |
| 36 "CoreFoundation.framework", | 38 "CoreFoundation.framework", |
| 39 "Security.framework", |
| 37 ] | 40 ] |
| 38 } | 41 } |
| 39 | 42 |
| 40 mac_xib_bundle_data("mac_installer_xibs") { | 43 mac_xib_bundle_data("mac_installer_xibs") { |
| 41 sources = [ | 44 sources = [ |
| 42 "MainMenu.xib", | 45 "MainMenu.xib", |
| 43 ] | 46 ] |
| 44 } | 47 } |
| 45 | 48 |
| 49 bundle_data("mac_installer_resources") { |
| 50 sources = [ |
| 51 "copy_to_disk.sh", |
| 52 ] |
| 53 outputs = [ |
| 54 "{{bundle_resources_dir}}/copy_to_disk.sh", |
| 55 ] |
| 56 } |
| 57 |
| 46 test("mac_installer_unittests") { | 58 test("mac_installer_unittests") { |
| 47 sources = [ | 59 sources = [ |
| 48 "testing/OmahaXMLRequest_test.mm", | 60 "testing/OmahaXMLRequest_test.mm", |
| 49 "testing/SystemInfo_test.mm", | 61 "testing/SystemInfo_test.mm", |
| 50 ] | 62 ] |
| 51 deps = [ | 63 deps = [ |
| 52 ":mac_installer_base", | 64 ":mac_installer_base", |
| 53 "//base:base", | 65 "//base:base", |
| 54 "//base/test:run_all_unittests", | 66 "//base/test:run_all_unittests", |
| 55 "//testing/gtest:gtest", | 67 "//testing/gtest:gtest", |
| 56 ] | 68 ] |
| 57 libs = [ "Foundation.framework" ] | 69 libs = [ "Foundation.framework" ] |
| 58 data = [ | 70 data = [ |
| 59 "testing/requestCheck.dtd", | 71 "testing/requestCheck.dtd", |
| 60 "testing/requestSample.xml", | 72 "testing/requestSample.xml", |
| 61 "testing/responseExample.xml", | 73 "testing/responseExample.xml", |
| 62 ] | 74 ] |
| 63 } | 75 } |
| OLD | NEW |