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 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 ] |
| 19 configs += [ "//build/config/compiler:enable_arc" ] | |
|
Sidney San Martín
2016/08/19 22:06:04
\o/
Anna Zeng
2016/08/23 03:13:43
Acknowledged.
| |
| 18 } | 20 } |
| 19 | 21 |
| 20 mac_app_bundle("mac_installer_app") { | 22 mac_app_bundle("mac_installer_app") { |
| 21 info_plist = "Info.plist" | 23 info_plist = "Info.plist" |
| 22 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.9" ] | 24 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.9" ] |
| 23 sources = [ | 25 sources = [ |
| 24 "AppDelegate.m", | 26 "AppDelegate.m", |
| 25 "InstallerWindowController.m", | 27 "InstallerWindowController.m", |
| 26 "main.m", | 28 "main.m", |
| 27 ] | 29 ] |
| 28 | 30 |
| 29 deps = [ | 31 deps = [ |
| 30 ":mac_installer_base", | 32 ":mac_installer_base", |
| 31 ":mac_installer_xibs", | 33 ":mac_installer_xibs", |
| 32 ] | 34 ] |
| 33 | 35 |
| 34 libs = [ | 36 libs = [ |
| 35 "AppKit.framework", | 37 "Cocoa.framework", |
| 36 "CoreFoundation.framework", | 38 "DiskArbitration.framework", |
| 37 ] | 39 ] |
| 38 } | 40 } |
| 39 | 41 |
| 40 mac_xib_bundle_data("mac_installer_xibs") { | 42 mac_xib_bundle_data("mac_installer_xibs") { |
| 41 sources = [ | 43 sources = [ |
| 42 "MainMenu.xib", | 44 "MainMenu.xib", |
| 43 ] | 45 ] |
| 44 } | 46 } |
| 45 | 47 |
| 46 test("mac_installer_unittests") { | 48 test("mac_installer_unittests") { |
| 47 sources = [ | 49 sources = [ |
| 48 "testing/OmahaXMLRequest_test.mm", | 50 "testing/OmahaXMLRequest_test.mm", |
| 49 "testing/SystemInfo_test.mm", | 51 "testing/SystemInfo_test.mm", |
| 52 "testing/Unpacker_test.mm", | |
| 50 ] | 53 ] |
| 51 deps = [ | 54 deps = [ |
| 52 ":mac_installer_base", | 55 ":mac_installer_base", |
| 53 "//base:base", | 56 "//base:base", |
| 54 "//base/test:run_all_unittests", | 57 "//base/test:run_all_unittests", |
| 55 "//testing/gtest:gtest", | 58 "//testing/gtest:gtest", |
| 56 ] | 59 ] |
| 57 libs = [ "Foundation.framework" ] | 60 libs = [ |
| 61 "Cocoa.framework", | |
| 62 "DiskArbitration.framework", | |
| 63 ] | |
| 58 data = [ | 64 data = [ |
| 59 "testing/requestCheck.dtd", | 65 "testing/requestCheck.dtd", |
| 60 "testing/requestSample.xml", | 66 "testing/requestSample.xml", |
| 61 "testing/responseExample.xml", | 67 "testing/responseExample.xml", |
| 62 ] | 68 ] |
| 63 } | 69 } |
| OLD | NEW |