| 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 visibility = [ ":*" ] |
| 9 sources = [ | 10 sources = [ |
| 11 "Downloader.h", |
| 10 "Downloader.m", | 12 "Downloader.m", |
| 13 "NSAlert+ChromeInstallerAdditions.h", |
| 11 "NSAlert+ChromeInstallerAdditions.m", | 14 "NSAlert+ChromeInstallerAdditions.m", |
| 15 "NSError+ChromeInstallerAdditions.h", |
| 12 "NSError+ChromeInstallerAdditions.m", | 16 "NSError+ChromeInstallerAdditions.m", |
| 17 "OmahaCommunication.h", |
| 13 "OmahaCommunication.m", | 18 "OmahaCommunication.m", |
| 19 "OmahaXMLParser.h", |
| 14 "OmahaXMLParser.m", | 20 "OmahaXMLParser.m", |
| 21 "OmahaXMLRequest.h", |
| 15 "OmahaXMLRequest.m", | 22 "OmahaXMLRequest.m", |
| 23 "SystemInfo.h", |
| 16 "SystemInfo.m", | 24 "SystemInfo.m", |
| 25 "Unpacker.h", |
| 26 "Unpacker.m", |
| 17 ] | 27 ] |
| 28 public_configs = [ "//build/config/compiler:enable_arc" ] |
| 18 } | 29 } |
| 19 | 30 |
| 20 mac_app_bundle("mac_installer_app") { | 31 mac_app_bundle("mac_installer_app") { |
| 21 info_plist = "Info.plist" | 32 info_plist = "Info.plist" |
| 22 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.9" ] | 33 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.9" ] |
| 23 sources = [ | 34 sources = [ |
| 35 "AppDelegate.h", |
| 24 "AppDelegate.m", | 36 "AppDelegate.m", |
| 37 "AuthorizedInstall.h", |
| 25 "AuthorizedInstall.m", | 38 "AuthorizedInstall.m", |
| 39 "InstallerWindowController.h", |
| 26 "InstallerWindowController.m", | 40 "InstallerWindowController.m", |
| 27 "main.m", | 41 "main.m", |
| 28 ] | 42 ] |
| 29 | 43 |
| 30 deps = [ | 44 deps = [ |
| 31 ":mac_installer_base", | 45 ":mac_installer_base", |
| 32 ":mac_installer_resources", | 46 ":mac_installer_resources", |
| 33 ":mac_installer_xibs", | 47 ":mac_installer_xibs", |
| 34 ] | 48 ] |
| 35 | 49 |
| 36 libs = [ | 50 libs = [ |
| 37 "AppKit.framework", | 51 "Cocoa.framework", |
| 38 "CoreFoundation.framework", | 52 "DiskArbitration.framework", |
| 39 "Security.framework", | 53 "Security.framework", |
| 40 ] | 54 ] |
| 41 } | 55 } |
| 42 | 56 |
| 43 mac_xib_bundle_data("mac_installer_xibs") { | 57 mac_xib_bundle_data("mac_installer_xibs") { |
| 44 sources = [ | 58 sources = [ |
| 45 "MainMenu.xib", | 59 "MainMenu.xib", |
| 46 ] | 60 ] |
| 47 } | 61 } |
| 48 | 62 |
| 49 bundle_data("mac_installer_resources") { | 63 bundle_data("mac_installer_resources") { |
| 50 sources = [ | 64 sources = [ |
| 51 "copy_to_disk.sh", | 65 "copy_to_disk.sh", |
| 52 ] | 66 ] |
| 53 outputs = [ | 67 outputs = [ |
| 54 "{{bundle_resources_dir}}/copy_to_disk.sh", | 68 "{{bundle_resources_dir}}/copy_to_disk.sh", |
| 55 ] | 69 ] |
| 56 } | 70 } |
| 57 | 71 |
| 58 test("mac_installer_unittests") { | 72 test("mac_installer_unittests") { |
| 59 sources = [ | 73 sources = [ |
| 60 "testing/OmahaXMLRequest_test.mm", | 74 "testing/OmahaXMLRequest_test.mm", |
| 61 "testing/SystemInfo_test.mm", | 75 "testing/SystemInfo_test.mm", |
| 76 "testing/Unpacker_test.mm", |
| 62 ] | 77 ] |
| 63 deps = [ | 78 deps = [ |
| 64 ":mac_installer_base", | 79 ":mac_installer_base", |
| 65 "//base:base", | 80 "//base:base", |
| 66 "//base/test:run_all_unittests", | 81 "//base/test:run_all_unittests", |
| 67 "//testing/gtest:gtest", | 82 "//testing/gtest:gtest", |
| 68 ] | 83 ] |
| 69 libs = [ "Foundation.framework" ] | 84 libs = [ |
| 85 "Cocoa.framework", |
| 86 "DiskArbitration.framework", |
| 87 "Security.framework", |
| 88 ] |
| 70 data = [ | 89 data = [ |
| 71 "testing/requestCheck.dtd", | 90 "//chrome/test/data/mac_installer/requestCheck.dtd", |
| 72 "testing/requestSample.xml", | 91 "//chrome/test/data/mac_installer/requestSample.xml", |
| 73 "testing/responseExample.xml", | 92 "//chrome/test/data/mac_installer/responseExample.xml", |
| 93 "//chrome/test/data/mac_installer/test-dmg.dmg", |
| 74 ] | 94 ] |
| 75 } | 95 } |
| OLD | NEW |