electron.gyp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. {
  2. 'variables': {
  3. 'project_name%': 'electron',
  4. 'product_name%': 'Electron',
  5. 'company_name%': 'GitHub, Inc',
  6. 'company_abbr%': 'github',
  7. 'version%': '1.5.1',
  8. 'js2c_input_dir': '<(SHARED_INTERMEDIATE_DIR)/js2c',
  9. },
  10. 'includes': [
  11. 'filenames.gypi',
  12. 'vendor/native_mate/native_mate_files.gypi',
  13. ],
  14. 'target_defaults': {
  15. 'defines': [
  16. 'ATOM_PRODUCT_NAME="<(product_name)"',
  17. 'ATOM_PROJECT_NAME="<(project_name)"',
  18. ],
  19. 'conditions': [
  20. ['OS=="mac"', {
  21. 'mac_framework_dirs': [
  22. '<(source_root)/external_binaries',
  23. ],
  24. }],
  25. ],
  26. },
  27. 'targets': [
  28. {
  29. 'target_name': '<(project_name)',
  30. 'type': 'executable',
  31. 'dependencies': [
  32. 'js2asar',
  33. 'app2asar',
  34. '<(project_name)_lib',
  35. ],
  36. 'sources': [
  37. '<@(app_sources)',
  38. ],
  39. 'include_dirs': [
  40. '.',
  41. ],
  42. 'conditions': [
  43. ['OS=="mac"', {
  44. 'product_name': '<(product_name)',
  45. 'mac_bundle': 1,
  46. 'dependencies!': [
  47. '<(project_name)_lib',
  48. ],
  49. 'dependencies': [
  50. '<(project_name)_framework',
  51. '<(project_name)_helper',
  52. ],
  53. 'xcode_settings': {
  54. 'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name)',
  55. 'INFOPLIST_FILE': 'atom/browser/resources/mac/Info.plist',
  56. 'LD_RUNPATH_SEARCH_PATHS': [
  57. '@executable_path/../Frameworks',
  58. ],
  59. },
  60. 'mac_bundle_resources': [
  61. '<@(bundle_sources)',
  62. ],
  63. 'copies': [
  64. {
  65. 'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Frameworks',
  66. 'files': [
  67. '<(PRODUCT_DIR)/<(product_name) Helper.app',
  68. '<(PRODUCT_DIR)/<(product_name) Framework.framework',
  69. ],
  70. },
  71. ],
  72. 'postbuilds': [
  73. {
  74. # This postbuid step is responsible for creating the following
  75. # helpers:
  76. #
  77. # <(product_name) EH.app and <(product_name) NP.app are created
  78. # from <(product_name).app.
  79. #
  80. # The EH helper is marked for an executable heap. The NP helper
  81. # is marked for no PIE (ASLR).
  82. 'postbuild_name': 'Make More Helpers',
  83. 'action': [
  84. 'vendor/brightray/tools/mac/make_more_helpers.sh',
  85. 'Frameworks',
  86. '<(product_name)',
  87. ],
  88. },
  89. # The application doesn't have real localizations, it just has
  90. # empty .lproj directories, which is enough to convince Cocoa
  91. # that Electron supports those languages.
  92. {
  93. 'postbuild_name': 'Make Empty Localizations',
  94. 'variables': {
  95. 'apply_locales_cmd': ['python', 'tools/mac/apply_locales.py'],
  96. 'locale_dirs': [
  97. '>!@(<(apply_locales_cmd) -d ZZLOCALE.lproj <(locales))',
  98. ],
  99. },
  100. 'action': [
  101. 'tools/mac/make_locale_dirs.sh',
  102. '<@(locale_dirs)',
  103. ],
  104. },
  105. ],
  106. 'conditions': [
  107. ['mas_build==0', {
  108. 'copies': [
  109. {
  110. 'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Frameworks',
  111. 'files': [
  112. 'external_binaries/Squirrel.framework',
  113. 'external_binaries/ReactiveCocoa.framework',
  114. 'external_binaries/Mantle.framework',
  115. ],
  116. },
  117. ],
  118. }],
  119. ],
  120. }], # OS!="mac"
  121. ['OS=="win"', {
  122. 'include_dirs': [
  123. '<(libchromiumcontent_dir)/gen/ui/resources',
  124. ],
  125. 'msvs_settings': {
  126. 'VCManifestTool': {
  127. 'EmbedManifest': 'true',
  128. 'AdditionalManifestFiles': 'atom/browser/resources/win/atom.manifest',
  129. }
  130. },
  131. 'copies': [
  132. {
  133. 'variables': {
  134. 'conditions': [
  135. ['libchromiumcontent_component', {
  136. 'copied_libraries': [
  137. '<@(libchromiumcontent_shared_libraries)',
  138. '<@(libchromiumcontent_shared_v8_libraries)',
  139. ],
  140. }, {
  141. 'copied_libraries': [
  142. '<(libchromiumcontent_dir)/ffmpeg.dll',
  143. ],
  144. }],
  145. ],
  146. },
  147. 'destination': '<(PRODUCT_DIR)',
  148. 'files': [
  149. '<@(copied_libraries)',
  150. '<(libchromiumcontent_dir)/locales',
  151. '<(libchromiumcontent_dir)/libEGL.dll',
  152. '<(libchromiumcontent_dir)/libGLESv2.dll',
  153. '<(libchromiumcontent_dir)/icudtl.dat',
  154. '<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak',
  155. '<(libchromiumcontent_dir)/content_resources_200_percent.pak',
  156. '<(libchromiumcontent_dir)/content_shell.pak',
  157. '<(libchromiumcontent_dir)/ui_resources_200_percent.pak',
  158. '<(libchromiumcontent_dir)/views_resources_200_percent.pak',
  159. '<(libchromiumcontent_dir)/natives_blob.bin',
  160. '<(libchromiumcontent_dir)/snapshot_blob.bin',
  161. 'external_binaries/d3dcompiler_47.dll',
  162. 'external_binaries/xinput1_3.dll',
  163. ],
  164. },
  165. ],
  166. }, {
  167. 'dependencies': [
  168. 'vendor/breakpad/breakpad.gyp:dump_syms#host',
  169. ],
  170. }], # OS=="win"
  171. ['OS=="linux"', {
  172. 'copies': [
  173. {
  174. 'variables': {
  175. 'conditions': [
  176. ['libchromiumcontent_component', {
  177. 'copied_libraries': [
  178. '<(PRODUCT_DIR)/lib/libnode.so',
  179. '<@(libchromiumcontent_shared_libraries)',
  180. '<@(libchromiumcontent_shared_v8_libraries)',
  181. ],
  182. }, {
  183. 'copied_libraries': [
  184. '<(PRODUCT_DIR)/lib/libnode.so',
  185. '<(libchromiumcontent_dir)/libffmpeg.so',
  186. ],
  187. }],
  188. ],
  189. },
  190. 'destination': '<(PRODUCT_DIR)',
  191. 'files': [
  192. '<@(copied_libraries)',
  193. '<(libchromiumcontent_dir)/locales',
  194. '<(libchromiumcontent_dir)/icudtl.dat',
  195. '<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak',
  196. '<(libchromiumcontent_dir)/content_resources_200_percent.pak',
  197. '<(libchromiumcontent_dir)/content_shell.pak',
  198. '<(libchromiumcontent_dir)/ui_resources_200_percent.pak',
  199. '<(libchromiumcontent_dir)/views_resources_200_percent.pak',
  200. '<(libchromiumcontent_dir)/natives_blob.bin',
  201. '<(libchromiumcontent_dir)/snapshot_blob.bin',
  202. ],
  203. },
  204. ],
  205. }], # OS=="linux"
  206. ],
  207. }, # target <(project_name)
  208. {
  209. 'target_name': '<(project_name)_lib',
  210. 'type': 'static_library',
  211. 'dependencies': [
  212. 'atom_js2c',
  213. 'vendor/brightray/brightray.gyp:brightray',
  214. 'vendor/node/node.gyp:node',
  215. ],
  216. 'defines': [
  217. # We need to access internal implementations of Node.
  218. 'NODE_WANT_INTERNALS=1',
  219. 'NODE_SHARED_MODE',
  220. # This is defined in skia/skia_common.gypi.
  221. 'SK_SUPPORT_LEGACY_GETTOPDEVICE',
  222. # Disable warnings for g_settings_list_schemas.
  223. 'GLIB_DISABLE_DEPRECATION_WARNINGS',
  224. # Defined in Chromium but not exposed in its gyp file.
  225. 'V8_USE_EXTERNAL_STARTUP_DATA',
  226. 'V8_SHARED',
  227. 'USING_V8_SHARED',
  228. 'ENABLE_PLUGINS',
  229. 'ENABLE_PEPPER_CDMS',
  230. 'USE_PROPRIETARY_CODECS',
  231. ],
  232. 'sources': [
  233. '<@(lib_sources)',
  234. ],
  235. 'include_dirs': [
  236. '.',
  237. 'chromium_src',
  238. 'vendor/brightray',
  239. 'vendor/native_mate',
  240. # Include atom_natives.h.
  241. '<(SHARED_INTERMEDIATE_DIR)',
  242. # Include directories for uv and node.
  243. 'vendor/node/src',
  244. 'vendor/node/deps/http_parser',
  245. 'vendor/node/deps/uv/include',
  246. # The `node.h` is using `#include"v8.h"`.
  247. '<(libchromiumcontent_src_dir)/v8/include',
  248. # The `node.h` is using `#include"ares.h"`.
  249. 'vendor/node/deps/cares/include',
  250. # The `third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h` is using `platform/PlatformExport.h`.
  251. '<(libchromiumcontent_src_dir)/third_party/WebKit/Source',
  252. # The 'third_party/libyuv/include/libyuv/scale_argb.h' is using 'libyuv/basic_types.h'.
  253. '<(libchromiumcontent_src_dir)/third_party/libyuv/include',
  254. # The 'third_party/webrtc/modules/desktop_capture/desktop_frame.h' is using 'webrtc/base/scoped_ptr.h'.
  255. '<(libchromiumcontent_src_dir)/third_party/',
  256. '<(libchromiumcontent_src_dir)/components/cdm',
  257. '<(libchromiumcontent_src_dir)/third_party/widevine',
  258. ],
  259. 'direct_dependent_settings': {
  260. 'include_dirs': [
  261. '.',
  262. ],
  263. },
  264. 'export_dependent_settings': [
  265. 'vendor/brightray/brightray.gyp:brightray',
  266. ],
  267. 'conditions': [
  268. ['libchromiumcontent_component', {
  269. 'link_settings': {
  270. 'libraries': [ '<@(libchromiumcontent_v8_libraries)' ],
  271. },
  272. }],
  273. ['OS=="win"', {
  274. 'sources': [
  275. '<@(lib_sources_win)',
  276. ],
  277. 'link_settings': {
  278. 'libraries': [
  279. '-limm32.lib',
  280. '-loleacc.lib',
  281. '-lcomctl32.lib',
  282. '-lcomdlg32.lib',
  283. '-lwininet.lib',
  284. '-lwinmm.lib',
  285. '-lcrypt32.lib',
  286. '-luiautomationcore.lib',
  287. ],
  288. },
  289. 'dependencies': [
  290. # Node is built as static_library on Windows, so we also need to
  291. # include its dependencies here.
  292. 'vendor/node/deps/cares/cares.gyp:cares',
  293. 'vendor/node/deps/http_parser/http_parser.gyp:http_parser',
  294. 'vendor/node/deps/uv/uv.gyp:libuv',
  295. 'vendor/node/deps/zlib/zlib.gyp:zlib',
  296. # Build with breakpad support.
  297. 'vendor/breakpad/breakpad.gyp:breakpad_handler',
  298. 'vendor/breakpad/breakpad.gyp:breakpad_sender',
  299. ],
  300. }], # OS=="win"
  301. ['OS=="mac" and mas_build==0', {
  302. 'dependencies': [
  303. 'vendor/crashpad/client/client.gyp:crashpad_client',
  304. 'vendor/crashpad/handler/handler.gyp:crashpad_handler',
  305. ],
  306. 'link_settings': {
  307. # Do not link with QTKit for mas build.
  308. 'libraries': [
  309. '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
  310. ],
  311. },
  312. 'xcode_settings': {
  313. # ReactiveCocoa which is used by Squirrel requires using __weak.
  314. 'CLANG_ENABLE_OBJC_WEAK': 'YES',
  315. },
  316. }], # OS=="mac" and mas_build==0
  317. ['OS=="mac" and mas_build==1', {
  318. 'defines': [
  319. 'MAS_BUILD',
  320. ],
  321. 'sources!': [
  322. 'atom/browser/auto_updater_mac.mm',
  323. 'atom/common/crash_reporter/crash_reporter_mac.h',
  324. 'atom/common/crash_reporter/crash_reporter_mac.mm',
  325. ],
  326. }], # OS=="mac" and mas_build==1
  327. ['OS=="linux"', {
  328. 'sources': [
  329. '<@(lib_sources_nss)',
  330. ],
  331. 'link_settings': {
  332. 'ldflags': [
  333. # Make binary search for libraries under current directory, so we
  334. # don't have to manually set $LD_LIBRARY_PATH:
  335. # http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable
  336. '-rpath \$$ORIGIN',
  337. # Make native module dynamic loading work.
  338. '-rdynamic',
  339. ],
  340. },
  341. # Required settings of using breakpad.
  342. 'cflags_cc': [
  343. '-Wno-empty-body',
  344. '-Wno-reserved-user-defined-literal',
  345. ],
  346. 'include_dirs': [
  347. 'vendor/breakpad/src',
  348. ],
  349. 'dependencies': [
  350. 'vendor/breakpad/breakpad.gyp:breakpad_client',
  351. ],
  352. }], # OS=="linux"
  353. ],
  354. }, # target <(product_name)_lib
  355. {
  356. 'target_name': 'js2asar',
  357. 'type': 'none',
  358. 'actions': [
  359. {
  360. 'action_name': 'js2asar',
  361. 'variables': {
  362. 'conditions': [
  363. ['OS=="mac"', {
  364. 'resources_path': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources',
  365. },{
  366. 'resources_path': '<(PRODUCT_DIR)/resources',
  367. }],
  368. ],
  369. },
  370. 'inputs': [
  371. '<@(js_sources)',
  372. ],
  373. 'outputs': [
  374. '<(resources_path)/electron.asar',
  375. ],
  376. 'action': [
  377. 'python',
  378. 'tools/js2asar.py',
  379. '<@(_outputs)',
  380. 'lib',
  381. '<@(_inputs)',
  382. ],
  383. }
  384. ],
  385. }, # target js2asar
  386. {
  387. 'target_name': 'app2asar',
  388. 'type': 'none',
  389. 'actions': [
  390. {
  391. 'action_name': 'app2asar',
  392. 'variables': {
  393. 'conditions': [
  394. ['OS=="mac"', {
  395. 'resources_path': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources',
  396. },{
  397. 'resources_path': '<(PRODUCT_DIR)/resources',
  398. }],
  399. ],
  400. },
  401. 'inputs': [
  402. '<@(default_app_sources)',
  403. ],
  404. 'outputs': [
  405. '<(resources_path)/default_app.asar',
  406. ],
  407. 'action': [
  408. 'python',
  409. 'tools/js2asar.py',
  410. '<@(_outputs)',
  411. 'default_app',
  412. '<@(_inputs)',
  413. ],
  414. }
  415. ],
  416. }, # target app2asar
  417. {
  418. 'target_name': 'atom_js2c_copy',
  419. 'type': 'none',
  420. 'copies': [
  421. {
  422. 'destination': '<(js2c_input_dir)',
  423. 'files': [
  424. '<@(js2c_sources)',
  425. ],
  426. },
  427. ],
  428. }, # target atom_js2c_copy
  429. {
  430. 'target_name': 'atom_browserify',
  431. 'type': 'none',
  432. 'dependencies': [
  433. # depend on this target to ensure the '<(js2c_input_dir)' is created
  434. 'atom_js2c_copy',
  435. ],
  436. 'actions': [
  437. {
  438. 'action_name': 'atom_browserify_sandbox',
  439. 'inputs': [
  440. '<@(browserify_entries)',
  441. ],
  442. 'outputs': [
  443. '<(js2c_input_dir)/preload_bundle.js',
  444. ],
  445. 'action': [
  446. 'npm',
  447. 'run',
  448. '--silent',
  449. 'browserify',
  450. '--',
  451. 'lib/sandboxed_renderer/init.js',
  452. '-o',
  453. '<@(_outputs)',
  454. ],
  455. },
  456. {
  457. 'action_name': 'atom_browserify_isolated_context',
  458. 'inputs': [
  459. '<@(isolated_context_browserify_entries)',
  460. ],
  461. 'outputs': [
  462. '<(js2c_input_dir)/isolated_bundle.js',
  463. ],
  464. 'action': [
  465. 'npm',
  466. 'run',
  467. '--silent',
  468. 'browserify',
  469. '--',
  470. 'lib/isolated_renderer/init.js',
  471. '-o',
  472. '<@(_outputs)',
  473. ],
  474. },
  475. ],
  476. }, # target atom_browserify
  477. {
  478. 'target_name': 'atom_js2c',
  479. 'type': 'none',
  480. 'dependencies': [
  481. 'atom_js2c_copy',
  482. 'atom_browserify',
  483. ],
  484. 'actions': [
  485. {
  486. 'action_name': 'atom_js2c',
  487. 'inputs': [
  488. # List all input files that should trigger a rebuild with js2c
  489. '<@(js2c_sources)',
  490. '<(js2c_input_dir)/preload_bundle.js',
  491. '<(js2c_input_dir)/isolated_bundle.js',
  492. ],
  493. 'outputs': [
  494. '<(SHARED_INTERMEDIATE_DIR)/atom_natives.h',
  495. ],
  496. 'action': [
  497. 'python',
  498. 'tools/js2c.py',
  499. '<@(_outputs)',
  500. '<(js2c_input_dir)',
  501. ],
  502. }
  503. ],
  504. }, # target atom_js2c
  505. ],
  506. 'conditions': [
  507. ['OS=="mac"', {
  508. 'targets': [
  509. {
  510. 'target_name': '<(project_name)_framework',
  511. 'product_name': '<(product_name) Framework',
  512. 'type': 'shared_library',
  513. 'dependencies': [
  514. '<(project_name)_lib',
  515. ],
  516. 'sources': [
  517. '<@(framework_sources)',
  518. ],
  519. 'include_dirs': [
  520. '.',
  521. 'vendor',
  522. '<(libchromiumcontent_src_dir)',
  523. ],
  524. 'export_dependent_settings': [
  525. '<(project_name)_lib',
  526. ],
  527. 'link_settings': {
  528. 'libraries': [
  529. '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
  530. '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
  531. '$(SDKROOT)/System/Library/Frameworks/Quartz.framework',
  532. ],
  533. },
  534. 'mac_bundle': 1,
  535. 'mac_bundle_resources': [
  536. 'atom/common/resources/mac/MainMenu.xib',
  537. '<(libchromiumcontent_dir)/content_shell.pak',
  538. '<(libchromiumcontent_dir)/icudtl.dat',
  539. '<(libchromiumcontent_dir)/natives_blob.bin',
  540. '<(libchromiumcontent_dir)/snapshot_blob.bin',
  541. ],
  542. 'xcode_settings': {
  543. 'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name).framework',
  544. 'INFOPLIST_FILE': 'atom/common/resources/mac/Info.plist',
  545. 'LD_DYLIB_INSTALL_NAME': '@rpath/<(product_name) Framework.framework/<(product_name) Framework',
  546. 'LD_RUNPATH_SEARCH_PATHS': [
  547. '@loader_path/Libraries',
  548. ],
  549. 'OTHER_LDFLAGS': [
  550. '-ObjC',
  551. ],
  552. },
  553. 'copies': [
  554. {
  555. 'variables': {
  556. 'conditions': [
  557. ['libchromiumcontent_component', {
  558. 'copied_libraries': [
  559. '<(PRODUCT_DIR)/libnode.dylib',
  560. '<@(libchromiumcontent_shared_libraries)',
  561. '<@(libchromiumcontent_shared_v8_libraries)',
  562. ],
  563. }, {
  564. 'copied_libraries': [
  565. '<(PRODUCT_DIR)/libnode.dylib',
  566. '<(libchromiumcontent_dir)/libffmpeg.dylib',
  567. ],
  568. }],
  569. ],
  570. },
  571. 'destination': '<(PRODUCT_DIR)/<(product_name) Framework.framework/Versions/A/Libraries',
  572. 'files': [
  573. '<@(copied_libraries)',
  574. ],
  575. },
  576. ],
  577. 'postbuilds': [
  578. {
  579. 'postbuild_name': 'Fix path of libnode',
  580. 'action': [
  581. 'install_name_tool',
  582. '-change',
  583. '/usr/local/lib/libnode.dylib',
  584. '@rpath/libnode.dylib',
  585. '${BUILT_PRODUCTS_DIR}/<(product_name) Framework.framework/Versions/A/<(product_name) Framework',
  586. ],
  587. },
  588. {
  589. 'postbuild_name': 'Add symlinks for framework subdirectories',
  590. 'action': [
  591. 'tools/mac/create-framework-subdir-symlinks.sh',
  592. '<(product_name) Framework',
  593. 'Libraries',
  594. ],
  595. },
  596. {
  597. 'postbuild_name': 'Copy locales',
  598. 'action': [
  599. 'tools/mac/copy-locales.py',
  600. '-d',
  601. '<(libchromiumcontent_dir)/locales',
  602. '${BUILT_PRODUCTS_DIR}/<(product_name) Framework.framework/Resources',
  603. '<@(locales)',
  604. ],
  605. },
  606. ],
  607. 'conditions': [
  608. ['mas_build==0', {
  609. 'link_settings': {
  610. 'libraries': [
  611. 'external_binaries/Squirrel.framework',
  612. 'external_binaries/ReactiveCocoa.framework',
  613. 'external_binaries/Mantle.framework',
  614. ],
  615. },
  616. 'copies': [
  617. {
  618. 'destination': '<(PRODUCT_DIR)/<(product_name) Framework.framework/Versions/A/Resources',
  619. 'files': [
  620. '<(PRODUCT_DIR)/crashpad_handler',
  621. ],
  622. },
  623. ],
  624. }],
  625. ],
  626. }, # target framework
  627. {
  628. 'target_name': '<(project_name)_helper',
  629. 'product_name': '<(product_name) Helper',
  630. 'type': 'executable',
  631. 'dependencies': [
  632. '<(project_name)_framework',
  633. ],
  634. 'sources': [
  635. '<@(app_sources)',
  636. ],
  637. 'include_dirs': [
  638. '.',
  639. ],
  640. 'mac_bundle': 1,
  641. 'xcode_settings': {
  642. 'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name).helper',
  643. 'INFOPLIST_FILE': 'atom/renderer/resources/mac/Info.plist',
  644. 'LD_RUNPATH_SEARCH_PATHS': [
  645. '@executable_path/../../..',
  646. ],
  647. },
  648. }, # target helper
  649. ],
  650. }], # OS!="mac"
  651. ],
  652. }