'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',
],
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);
}
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());
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"