mirror of
https://github.com/atom/atom.git
synced 2026-01-15 01:48:15 -05:00
Remove RESOURCE_PATH macro
This commit is contained in:
2
atom.gyp
2
atom.gyp
@@ -25,7 +25,7 @@
|
||||
'default_configuration': 'Debug',
|
||||
'configurations': {
|
||||
'Debug': {
|
||||
'defines': ['DEBUG=1', 'RESOURCE_PATH="$PROJECT_DIR"'],
|
||||
'defines': ['DEBUG=1'],
|
||||
'xcode_settings': { 'GCC_OPTIMIZATION_LEVEL' : '0' },
|
||||
},
|
||||
'Release': {
|
||||
|
||||
@@ -25,10 +25,6 @@
|
||||
+ (NSDictionary *)parseArguments:(char **)argv count:(int)argc {
|
||||
NSMutableDictionary *arguments = [[NSMutableDictionary alloc] init];
|
||||
|
||||
#ifdef RESOURCE_PATH
|
||||
[arguments setObject:[NSString stringWithUTF8String:RESOURCE_PATH] forKey:@"resource-path"];
|
||||
#endif
|
||||
|
||||
// Remove non-posix (i.e. -long_argument_with_one_leading_hyphen) added by OS X from the command line
|
||||
int cleanArgc = argc;
|
||||
size_t argvSize = argc * sizeof(char *);
|
||||
@@ -210,12 +206,6 @@
|
||||
- (void)applicationDidFinishLaunching:(NSNotification *)notification {
|
||||
if (!_filesOpened && [self shouldOpenFiles]) {
|
||||
NSString *path = [self.arguments objectForKey:@"path"];
|
||||
|
||||
// Just a hack to open the Atom src by default when we run from xcode
|
||||
#ifdef RESOURCE_PATH
|
||||
if (!path) path = [NSString stringWithUTF8String:RESOURCE_PATH];
|
||||
#endif
|
||||
|
||||
NSNumber *pid = [self.arguments objectForKey:@"wait"] ? [self.arguments objectForKey:@"pid"] : nil;
|
||||
[self open:path pidToKillWhenWindowCloses:pid];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user