electron.gyp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. {
  2. 'variables': {
  3. 'project_name%': 'electron',
  4. 'product_name%': 'Electron',
  5. 'company_name%': 'GitHub, Inc',
  6. 'company_abbr%': 'github',
  7. 'version%': '1.4.16',
  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. 'ENABLE_PLUGINS',
  227. 'ENABLE_PEPPER_CDMS',
  228. 'USE_PROPRIETARY_CODECS',
  229. ],
  230. 'sources': [
  231. '<@(lib_sources)',
  232. ],
  233. 'include_dirs': [
  234. '.',
  235. 'chromium_src',
  236. 'vendor/brightray',
  237. 'vendor/native_mate',
  238. # Include atom_natives.h.
  239. '<(SHARED_INTERMEDIATE_DIR)',
  240. # Include directories for uv and node.
  241. 'vendor/node/src',
  242. 'vendor/node/deps/http_parser',
  243. 'vendor/node/deps/uv/include',
  244. # The `node.h` is using `#include"v8.h"`.
  245. '<(libchromiumcontent_src_dir)/v8/include',
  246. # The `node.h` is using `#include"ares.h"`.
  247. 'vendor/node/deps/cares/include',
  248. # The `third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h` is using `platform/PlatformExport.h`.
  249. '<(libchromiumcontent_src_dir)/third_party/WebKit/Source',
  250. # The 'third_party/libyuv/include/libyuv/scale_argb.h' is using 'libyuv/basic_types.h'.
  251. '<(libchromiumcontent_src_dir)/third_party/libyuv/include',
  252. # The 'third_party/webrtc/modules/desktop_capture/desktop_frame.h' is using 'webrtc/base/scoped_ptr.h'.
  253. '<(libchromiumcontent_src_dir)/third_party/',
  254. '<(libchromiumcontent_src_dir)/components/cdm',
  255. '<(libchromiumcontent_src_dir)/third_party/widevine',
  256. ],
  257. 'direct_dependent_settings': {
  258. 'include_dirs': [
  259. '.',
  260. ],
  261. },
  262. 'export_dependent_settings': [
  263. 'vendor/brightray/brightray.gyp:brightray',
  264. ],
  265. 'conditions': [
  266. ['libchromiumcontent_component', {
  267. 'link_settings': {
  268. 'libraries': [ '<@(libchromiumcontent_v8_libraries)' ],
  269. },
  270. }],
  271. ['OS=="win"', {
  272. 'sources': [
  273. '<@(lib_sources_win)',
  274. ],
  275. 'link_settings': {
  276. 'libraries': [
  277. '-limm32.lib',
  278. '-loleacc.lib',
  279. '-lcomctl32.lib',
  280. '-lcomdlg32.lib',
  281. '-lwininet.lib',
  282. '-lwinmm.lib',
  283. '-lcrypt32.lib',
  284. '-luiautomationcore.lib',
  285. ],
  286. },
  287. 'dependencies': [
  288. # Node is built as static_library on Windows, so we also need to
  289. # include its dependencies here.
  290. 'vendor/node/deps/cares/cares.gyp:cares',
  291. 'vendor/node/deps/http_parser/http_parser.gyp:http_parser',
  292. 'vendor/node/deps/uv/uv.gyp:libuv',
  293. 'vendor/node/deps/zlib/zlib.gyp:zlib',
  294. # Build with breakpad support.
  295. 'vendor/breakpad/breakpad.gyp:breakpad_handler',
  296. 'vendor/breakpad/breakpad.gyp:breakpad_sender',
  297. ],
  298. }], # OS=="win"
  299. ['OS=="mac" and mas_build==0', {
  300. 'dependencies': [
  301. 'vendor/crashpad/client/client.gyp:crashpad_client',
  302. 'vendor/crashpad/handler/handler.gyp:crashpad_handler',
  303. ],
  304. 'link_settings': {
  305. # Do not link with QTKit for mas build.
  306. 'libraries': [
  307. '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
  308. ],
  309. },
  310. 'xcode_settings': {
  311. # ReactiveCocoa which is used by Squirrel requires using __weak.
  312. 'CLANG_ENABLE_OBJC_WEAK': 'YES',
  313. },
  314. }], # OS=="mac" and mas_build==0
  315. ['OS=="mac" and mas_build==1', {
  316. 'defines': [
  317. 'MAS_BUILD',
  318. ],
  319. 'sources!': [
  320. 'atom/browser/auto_updater_mac.mm',
  321. 'atom/common/crash_reporter/crash_reporter_mac.h',
  322. 'atom/common/crash_reporter/crash_reporter_mac.mm',
  323. ],
  324. }], # OS=="mac" and mas_build==1
  325. ['OS=="linux"', {
  326. 'sources': [
  327. '<@(lib_sources_nss)',
  328. ],
  329. 'link_settings': {
  330. 'ldflags': [
  331. # Make binary search for libraries under current directory, so we
  332. # don't have to manually set $LD_LIBRARY_PATH:
  333. # http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable
  334. '-rpath \$$ORIGIN',
  335. # Make native module dynamic loading work.
  336. '-rdynamic',
  337. ],
  338. },
  339. # Required settings of using breakpad.
  340. 'cflags_cc': [
  341. '-Wno-empty-body',
  342. '-Wno-reserved-user-defined-literal',
  343. ],
  344. 'include_dirs': [
  345. 'vendor/breakpad/src',
  346. ],
  347. 'dependencies': [
  348. 'vendor/breakpad/breakpad.gyp:breakpad_client',
  349. ],
  350. }], # OS=="linux"
  351. ],
  352. }, # target <(product_name)_lib
  353. {
  354. 'target_name': 'js2asar',
  355. 'type': 'none',
  356. 'actions': [
  357. {
  358. 'action_name': 'js2asar',
  359. 'variables': {
  360. 'conditions': [
  361. ['OS=="mac"', {
  362. 'resources_path': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources',
  363. },{
  364. 'resources_path': '<(PRODUCT_DIR)/resources',
  365. }],
  366. ],
  367. },
  368. 'inputs': [
  369. '<@(js_sources)',
  370. ],
  371. 'outputs': [
  372. '<(resources_path)/electron.asar',
  373. ],
  374. 'action': [
  375. 'python',
  376. 'tools/js2asar.py',
  377. '<@(_outputs)',
  378. 'lib',
  379. '<@(_inputs)',
  380. ],
  381. }
  382. ],
  383. }, # target js2asar
  384. {
  385. 'target_name': 'app2asar',
  386. 'type': 'none',
  387. 'actions': [
  388. {
  389. 'action_name': 'app2asar',
  390. 'variables': {
  391. 'conditions': [
  392. ['OS=="mac"', {
  393. 'resources_path': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources',
  394. },{
  395. 'resources_path': '<(PRODUCT_DIR)/resources',
  396. }],
  397. ],
  398. },
  399. 'inputs': [
  400. '<@(default_app_sources)',
  401. ],
  402. 'outputs': [
  403. '<(resources_path)/default_app.asar',
  404. ],
  405. 'action': [
  406. 'python',
  407. 'tools/js2asar.py',
  408. '<@(_outputs)',
  409. 'default_app',
  410. '<@(_inputs)',
  411. ],
  412. }
  413. ],
  414. }, # target app2asar
  415. {
  416. 'target_name': 'atom_js2c_copy',
  417. 'type': 'none',
  418. 'copies': [
  419. {
  420. 'destination': '<(js2c_input_dir)',
  421. 'files': [
  422. '<@(js2c_sources)',
  423. ],
  424. },
  425. ],
  426. }, # target atom_js2c_copy
  427. {
  428. 'target_name': 'atom_browserify',
  429. 'type': 'none',
  430. 'dependencies': [
  431. # depend on this target to ensure the '<(js2c_input_dir)' is created
  432. 'atom_js2c_copy',
  433. ],
  434. 'actions': [
  435. {
  436. 'action_name': 'atom_browserify_sandbox',
  437. 'inputs': [
  438. '<@(browserify_entries)',
  439. ],
  440. 'outputs': [
  441. '<(js2c_input_dir)/preload_bundle.js',
  442. ],
  443. 'action': [
  444. 'npm',
  445. 'run',
  446. '--silent',
  447. 'browserify',
  448. '--',
  449. 'lib/sandboxed_renderer/init.js',
  450. '-o',
  451. '<@(_outputs)',
  452. ],
  453. },
  454. {
  455. 'action_name': 'atom_browserify_isolated_context',
  456. 'inputs': [
  457. '<@(isolated_context_browserify_entries)',
  458. ],
  459. 'outputs': [
  460. '<(js2c_input_dir)/isolated_bundle.js',
  461. ],
  462. 'action': [
  463. 'npm',
  464. 'run',
  465. '--silent',
  466. 'browserify',
  467. '--',
  468. 'lib/isolated_renderer/init.js',
  469. '-o',
  470. '<@(_outputs)',
  471. ],
  472. },
  473. ],
  474. }, # target atom_browserify
  475. {
  476. 'target_name': 'atom_js2c',
  477. 'type': 'none',
  478. 'dependencies': [
  479. 'atom_js2c_copy',
  480. 'atom_browserify',
  481. ],
  482. 'actions': [
  483. {
  484. 'action_name': 'atom_js2c',
  485. 'inputs': [
  486. # List all input files that should trigger a rebuild with js2c
  487. '<@(js2c_sources)',
  488. '<(js2c_input_dir)/preload_bundle.js',
  489. '<(js2c_input_dir)/isolated_bundle.js',
  490. ],
  491. 'outputs': [
  492. '<(SHARED_INTERMEDIATE_DIR)/atom_natives.h',
  493. ],
  494. 'action': [
  495. 'python',
  496. 'tools/js2c.py',
  497. '<@(_outputs)',
  498. '<(js2c_input_dir)',
  499. ],
  500. }
  501. ],
  502. }, # target atom_js2c
  503. ],
  504. 'conditions': [
  505. ['OS=="mac"', {
  506. 'targets': [
  507. {
  508. 'target_name': '<(project_name)_framework',
  509. 'product_name': '<(product_name) Framework',
  510. 'type': 'shared_library',
  511. 'dependencies': [
  512. '<(project_name)_lib',
  513. ],
  514. 'sources': [
  515. '<@(framework_sources)',
  516. ],
  517. 'include_dirs': [
  518. '.',
  519. 'vendor',
  520. '<(libchromiumcontent_src_dir)',
  521. ],
  522. 'export_dependent_settings': [
  523. '<(project_name)_lib',
  524. ],
  525. 'link_settings': {
  526. 'libraries': [
  527. '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
  528. '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
  529. '$(SDKROOT)/System/Library/Frameworks/Quartz.framework',
  530. ],
  531. },
  532. 'mac_bundle': 1,
  533. 'mac_bundle_resources': [
  534. 'atom/common/resources/mac/MainMenu.xib',
  535. '<(libchromiumcontent_dir)/content_shell.pak',
  536. '<(libchromiumcontent_dir)/icudtl.dat',
  537. '<(libchromiumcontent_dir)/natives_blob.bin',
  538. '<(libchromiumcontent_dir)/snapshot_blob.bin',
  539. ],
  540. 'xcode_settings': {
  541. 'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name).framework',
  542. 'INFOPLIST_FILE': 'atom/common/resources/mac/Info.plist',
  543. 'LD_DYLIB_INSTALL_NAME': '@rpath/<(product_name) Framework.framework/<(product_name) Framework',
  544. 'LD_RUNPATH_SEARCH_PATHS': [
  545. '@loader_path/Libraries',
  546. ],
  547. 'OTHER_LDFLAGS': [
  548. '-ObjC',
  549. ],
  550. },
  551. 'copies': [
  552. {
  553. 'variables': {
  554. 'conditions': [
  555. ['libchromiumcontent_component', {
  556. 'copied_libraries': [
  557. '<(PRODUCT_DIR)/libnode.dylib',
  558. '<@(libchromiumcontent_shared_libraries)',
  559. '<@(libchromiumcontent_shared_v8_libraries)',
  560. ],
  561. }, {
  562. 'copied_libraries': [
  563. '<(PRODUCT_DIR)/libnode.dylib',
  564. '<(libchromiumcontent_dir)/libffmpeg.dylib',
  565. ],
  566. }],
  567. ],
  568. },
  569. 'destination': '<(PRODUCT_DIR)/<(product_name) Framework.framework/Versions/A/Libraries',
  570. 'files': [
  571. '<@(copied_libraries)',
  572. ],
  573. },
  574. ],
  575. 'postbuilds': [
  576. {
  577. 'postbuild_name': 'Fix path of libnode',
  578. 'action': [
  579. 'install_name_tool',
  580. '-change',
  581. '/usr/local/lib/libnode.dylib',
  582. '@rpath/libnode.dylib',
  583. '${BUILT_PRODUCTS_DIR}/<(product_name) Framework.framework/Versions/A/<(product_name) Framework',
  584. ],
  585. },
  586. {
  587. 'postbuild_name': 'Fix path of ffmpeg',
  588. 'action': [
  589. 'install_name_tool',
  590. '-change',
  591. '/usr/local/lib/libffmpeg.dylib',
  592. '@rpath/libffmpeg.dylib',
  593. '${BUILT_PRODUCTS_DIR}/<(product_name) Framework.framework/Versions/A/<(product_name) Framework',
  594. ],
  595. },
  596. {
  597. 'postbuild_name': 'Add symlinks for framework subdirectories',
  598. 'action': [
  599. 'tools/mac/create-framework-subdir-symlinks.sh',
  600. '<(product_name) Framework',
  601. 'Libraries',
  602. ],
  603. },
  604. {
  605. 'postbuild_name': 'Copy locales',
  606. 'action': [
  607. 'tools/mac/copy-locales.py',
  608. '-d',
  609. '<(libchromiumcontent_dir)/locales',
  610. '${BUILT_PRODUCTS_DIR}/<(product_name) Framework.framework/Resources',
  611. '<@(locales)',
  612. ],
  613. },
  614. ],
  615. 'conditions': [
  616. ['mas_build==0', {
  617. 'link_settings': {
  618. 'libraries': [
  619. 'external_binaries/Squirrel.framework',
  620. 'external_binaries/ReactiveCocoa.framework',
  621. 'external_binaries/Mantle.framework',
  622. ],
  623. },
  624. 'copies': [
  625. {
  626. 'destination': '<(PRODUCT_DIR)/<(product_name) Framework.framework/Versions/A/Resources',
  627. 'files': [
  628. '<(PRODUCT_DIR)/crashpad_handler',
  629. ],
  630. },
  631. ],
  632. }],
  633. ],
  634. }, # target framework
  635. {
  636. 'target_name': '<(project_name)_helper',
  637. 'product_name': '<(product_name) Helper',
  638. 'type': 'executable',
  639. 'dependencies': [
  640. '<(project_name)_framework',
  641. ],
  642. 'sources': [
  643. '<@(app_sources)',
  644. ],
  645. 'include_dirs': [
  646. '.',
  647. ],
  648. 'mac_bundle': 1,
  649. 'xcode_settings': {
  650. 'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name).helper',
  651. 'INFOPLIST_FILE': 'atom/renderer/resources/mac/Info.plist',
  652. 'LD_RUNPATH_SEARCH_PATHS': [
  653. '@executable_path/../../..',
  654. ],
  655. },
  656. }, # target helper
  657. ],
  658. }], # OS!="mac"
  659. ],
  660. }