]> khamidou — GitHub mirrors - electron.git/commitdiff
PRODUCT_NAME => ATOM_PRODUCT_NAME
authorCheng Zhao <zcbenz@gmail.com>
Tue, 14 Apr 2015 06:13:03 +0000 (14:13 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 14 Apr 2015 06:13:03 +0000 (14:13 +0800)
atom.gyp
atom/app/atom_library_main.mm
atom/app/atom_main_delegate_mac.mm
atom/browser/atom_browser_main_parts_mac.mm

index f516a0dd1c1c54f57db4674a247eee9f6e198c42..3d581e052208fc7c6852edb771102b0bf154e849 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
     'vendor/native_mate/native_mate_files.gypi',
   ],
   'target_defaults': {
+    'defines': [
+      'ATOM_PRODUCT_NAME="<(product_name)"',
+      'ATOM_PROJECT_NAME="<(project_name)"',
+    ],
     'mac_framework_dirs': [
       '<(atom_source_root)/external_binaries',
     ],
         'vendor/node/node.gyp:node',
       ],
       'defines': [
-        'PRODUCT_NAME="<(product_name)"',
         # This is defined in skia/skia_common.gypi.
         'SK_SUPPORT_LEGACY_GETTOPDEVICE',
         # Disable warnings for g_settings_list_schemas.
             'vendor',
             '<(libchromiumcontent_src_dir)',
           ],
-          'defines': [
-            'PRODUCT_NAME="<(product_name)"',
-          ],
           'export_dependent_settings': [
             '<(project_name)_lib',
           ],
index 9f3af06897285c38f63f4a901b65518fc0c28d1a..5cf910b2369a9fd3a7fa956f99df0b33fbe92275 100644 (file)
@@ -29,7 +29,7 @@ int AtomInitializeICUandStartNode(int argc, char *argv[]) {
       brightray::MainApplicationBundlePath()
           .Append("Contents")
           .Append("Frameworks")
-          .Append(PRODUCT_NAME " Framework.framework"));
+          .Append(ATOM_PRODUCT_NAME " Framework.framework"));
   base::i18n::InitializeICU();
   return atom::NodeMain(argc, argv);
 }
index c158a117164cda1f1ff5bfd5f5b6260368cb7f2f..d52a9d768c21dd33797b0bffdf409dda662efd81 100644 (file)
@@ -33,12 +33,13 @@ base::FilePath GetHeleprAppPath(const base::FilePath& frameworks_path,
 
 void AtomMainDelegate::OverrideFrameworkBundlePath() {
   base::mac::SetOverrideFrameworkBundlePath(
-      GetFrameworksPath().Append(PRODUCT_NAME " Framework.framework"));
+      GetFrameworksPath().Append(ATOM_PRODUCT_NAME " Framework.framework"));
 }
 
 void AtomMainDelegate::OverrideChildProcessPath() {
   base::FilePath frameworks_path = GetFrameworksPath();
-  base::FilePath helper_path = GetHeleprAppPath(frameworks_path, PRODUCT_NAME);
+  base::FilePath helper_path = GetHeleprAppPath(frameworks_path,
+                                                ATOM_PRODUCT_NAME);
   if (!base::PathExists(helper_path))
     helper_path = GetHeleprAppPath(frameworks_path,
                                    brightray::GetApplicationName());
index 3e80eac223a5f8ebfee1d05420a8bf1f7088624a..fe72beb5b9d75a8c7396cdbb3fcd3fda89703766 100644 (file)
@@ -26,7 +26,7 @@ void AtomBrowserMainParts::PreMainMessageLoopStart() {
   base::FilePath frameworkPath = brightray::MainApplicationBundlePath()
       .Append("Contents")
       .Append("Frameworks")
-      .Append(PRODUCT_NAME " Framework.framework");
+      .Append(ATOM_PRODUCT_NAME " Framework.framework");
   NSBundle* frameworkBundle = [NSBundle
        bundleWithPath:base::mac::FilePathToNSString(frameworkPath)];
   NSNib* mainNib = [[NSNib alloc] initWithNibNamed:@"MainMenu"