electron.gyp 22 KB

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