frameworks/
node/
node_modules/
+out/
vendor/
*.xcodeproj
*.swp
'${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
],
},
- 'includes': [
- 'vendor/brightray/brightray.gypi'
- ],
'target_defaults': {
- 'mac_framework_dirs': [ 'frameworks' ],
+ 'mac_framework_dirs': [
+ '<(source_root)/frameworks',
+ ],
},
'targets': [
{
],
'xcode_settings': {
'INFOPLIST_FILE': 'browser/mac/Info.plist',
- 'LD_RUNPATH_SEARCH_PATHS': '@executable_path/../Frameworks',
+ 'LD_RUNPATH_SEARCH_PATHS': [
+ '@executable_path/../Frameworks',
+ ],
},
'copies': [
{
'<(libchromiumcontent_resources_dir)/content_shell.pak',
],
'xcode_settings': {
- 'LIBRARY_SEARCH_PATHS': '<(libchromiumcontent_library_dir)',
+ 'LIBRARY_SEARCH_PATHS': [
+ '<(libchromiumcontent_library_dir)',
+ ],
'LD_DYLIB_INSTALL_NAME': '@rpath/<(product_name).framework/<(product_name)',
- 'LD_RUNPATH_SEARCH_PATHS': '@loader_path/Libraries',
- 'OTHER_LDFLAGS': [
- '-ObjC',
+ 'LD_RUNPATH_SEARCH_PATHS': [
+ '@loader_path/Libraries',
],
},
'copies': [
'mac_bundle': 1,
'xcode_settings': {
'INFOPLIST_FILE': 'renderer/mac/Info.plist',
- 'LD_RUNPATH_SEARCH_PATHS': '@executable_path/../../..',
+ 'LD_RUNPATH_SEARCH_PATHS': [
+ '@executable_path/../../..',
+ ],
},
'postbuilds': [
{
],
}, # target helper
],
- }],
+ }], # OS==Mac
],
}
<string>com.github.atom</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
<key>CFBundleIconFile</key>
<string>atom.icns</string>
<key>CFBundleVersion</key>
--- /dev/null
+{
+ 'variables': {
+ 'clang': 0,
+ 'source_root': '<!(python tools/mac/source_root.py)',
+ 'conditions': [
+ ['OS=="mac"', {
+ 'clang': 1,
+ 'mac_sdk%': '<!(python tools/mac/find_sdk.py 10.8)',
+ }],
+ ],
+ },
+ 'conditions': [
+ ['clang==1', {
+ 'make_global_settings': [
+ ['CC', '/usr/bin/clang'],
+ ['CXX', '/usr/bin/clang++'],
+ ['LINK', '$(CXX)'],
+ ['CC.host', '$(CC)'],
+ ['CXX.host', '$(CXX)'],
+ ['LINK.host', '$(LINK)'],
+ ],
+ 'target_defaults': {
+ 'cflags_cc': [
+ '-std=c++11',
+ ],
+ 'xcode_settings': {
+ 'CC': '/usr/bin/clang',
+ 'LDPLUSPLUS': '/usr/bin/clang++',
+ 'OTHER_CPLUSPLUSFLAGS': [
+ '$(inherited)', '-std=gnu++11'
+ ],
+ 'OTHER_CFLAGS': [
+ '-fcolor-diagnostics',
+ ],
+
+ 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
+ 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99
+ },
+ },
+ }], # clang==1
+ ],
+}
<string>com.github.atom.helper</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
<key>LSUIElement</key>
<true/>
</dict>
./script/update-frameworks
./script/update-node v0.10.9
-gyp --depth . atom.gyp \
+gyp -f ninja --depth . atom.gyp \
+ -Icommon.gypi \
-Ivendor/brightray/brightray.gypi \
-Dtarget_arch=ia32 \
-Dlibrary=static_library
--- /dev/null
+#!/usr/bin/env python
+
+import os
+
+"""Prints the absolute path of the root of atom-shell's source tree.
+"""
+
+
+relative_source_root = os.path.join(__file__, '..', '..', '..')
+print os.path.abspath(relative_source_root)