Commit Graph

8 Commits

Author SHA1 Message Date
Adam Roben
a3c48df25b Move all code and resources into Atom.framework
All our native code now gets built into Atom.framework. Atom.app and
Atom Helper.app both link against this framework. All resources other
than a couple of main-bundle-only ones (e.g., atom.icns) go into
Atom.framework.

Note that this means that there's no compile- or link-time separation
between main process code and helper process code. We could introduce a
compile-time separation by building main process and helper process code
into separate static libraries with mutually exclusive include paths, if
we want.

Atom.framework exports a single symbol: AtomMain(). Atom.app and Atom
Helper.app contain a single source file: main.cpp. main() just calls
AtomMain().

All frameworks are placed in Atom.app/Contents/Frameworks. We now link
against all frameworks using @rpath-based install names, which allows
Atom.app and Atom Helper.app to find them automatically based on their
own LD_RUNPATH_SEARCH_PATH settings. We use install_name_tool at build
time on each of our three binaries (Atom.app, Atom Helper.app,
Atom.framework) to set the install names.

By reducing duplication of code and resources between Atom.app and Atom
Helper.app (and the EH/NP copies of Atom Helper.app), this reduces the
size of the total installed Atom.app bundle from 145MB to 82MB. By
compiling .coffee and .cson files only once, clean build time drops from
114 seconds to 79 seconds on my MacBook Pro.
2013-03-01 16:35:42 -05:00
Corey Johnson
9c7c95f413 Update C++ headers 2012-08-30 09:11:01 -07:00
Corey Johnson
d2e517f5a3 💄 2012-08-30 08:54:18 -07:00
Nathan Sobo
7882f70c0c Whitespace 💄 2012-08-28 11:58:24 -05:00
Nathan Sobo
f0dbe5db94 Break out AtomCefRenderProcessHandler so it's only included in the helper app
This means that none of the extension code has to be compiled into the browser app, which just seems cleaner.
2012-08-28 11:55:17 -05:00
Corey Johnson & Nathan Sobo
8fcf2af5a6 WIP: Handling reload, but need to put js dialog handler in proper place 2012-08-27 17:27:15 -07:00
Corey Johnson & Nathan Sobo
64a0fd84a7 WIP: sending reload message to render process on meta-r 2012-08-27 18:39:12 -05:00
Corey Johnson & Nathan Sobo
e8aa1524c7 Rename atom folder to native 2012-08-27 13:21:59 -07:00