|
@@ -5,6 +5,9 @@
|
|
|
'app_sources': [
|
|
|
'app/atom_main.cc',
|
|
|
],
|
|
|
+ 'coffee_sources': [
|
|
|
+ 'browser/atom/atom.coffee',
|
|
|
+ ],
|
|
|
'lib_sources': [
|
|
|
'app/atom_main_delegate.cc',
|
|
|
'app/atom_main_delegate.h',
|
|
@@ -48,6 +51,7 @@
|
|
|
'target_name': '<(project_name)',
|
|
|
'type': 'executable',
|
|
|
'dependencies': [
|
|
|
+ 'generated_sources',
|
|
|
'<(project_name)_lib',
|
|
|
],
|
|
|
'sources': [
|
|
@@ -79,12 +83,6 @@
|
|
|
'<(PRODUCT_DIR)/<(product_name).framework',
|
|
|
],
|
|
|
},
|
|
|
- {
|
|
|
- 'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources',
|
|
|
- 'files': [
|
|
|
- 'browser/atom',
|
|
|
- ],
|
|
|
- },
|
|
|
],
|
|
|
'postbuilds': [
|
|
|
{
|
|
@@ -122,6 +120,31 @@
|
|
|
'vendor',
|
|
|
],
|
|
|
},
|
|
|
+ {
|
|
|
+ 'target_name': 'generated_sources',
|
|
|
+ 'type': 'none',
|
|
|
+ 'sources': [
|
|
|
+ '<@(coffee_sources)',
|
|
|
+ ],
|
|
|
+ 'rules': [
|
|
|
+ {
|
|
|
+ 'rule_name': 'coffee',
|
|
|
+ 'extension': 'coffee',
|
|
|
+ 'inputs': [
|
|
|
+ 'script/compile-coffee',
|
|
|
+ ],
|
|
|
+ 'outputs': [
|
|
|
+ '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
|
|
|
+ ],
|
|
|
+ 'action': [
|
|
|
+ 'sh',
|
|
|
+ 'script/compile-coffee',
|
|
|
+ '<(RULE_INPUT_PATH)',
|
|
|
+ '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
],
|
|
|
'conditions': [
|
|
|
['OS=="mac"', {
|